Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.AccountAmountControl


    //Pagamento de despesas
    public void expendituresPayment(String expenditureId, String accountId, GDDate date, double value) {
        try {
          system = GDSystem.getInstance();
          system.execute(new ExpenditurePayment(expenditureId, accountId, date, value));
          system.execute(new AccountAmountControl(accountId, 0, value));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here


   
    public void expendituresPayment(String expenditureId, String accountId, GDDate date, double value, String idExtractItem) {
        try {
          system = GDSystem.getInstance();
          system.execute(new ExpenditurePayment(expenditureId, accountId, date, value, idExtractItem));
          system.execute(new AccountAmountControl(accountId, 0, value));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

   
    public void expendituresPayment(String expenditureId, String accountId, GDDate date, double value, TypeOfPayment typeOfPayment) {
        try {
          system = GDSystem.getInstance();
          system.execute(new ExpenditurePayment(expenditureId, accountId, date, value, typeOfPayment));
          system.execute(new AccountAmountControl(accountId, 0, value));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

   
    public void expendituresPayment(String expenditureId, String accountId, GDDate date, double value, TypeOfPayment typeOfPayment, ExtractBankItem extractBankItem) {
        try {
          system = GDSystem.getInstance();
          system.execute(new ExpenditurePayment(expenditureId, accountId, date, value, typeOfPayment, extractBankItem));
          system.execute(new AccountAmountControl(accountId, 0, value));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

    //Recebimento de receitas
    public void incomingPayment(String incomingId, String accountId, Calendar date, double value) {
        try {
          system = GDSystem.getInstance();
          system.execute(new IncomingPayment(incomingId, accountId, date, value));
          system.execute(new AccountAmountControl(accountId, value, 0));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

   
    public void incomingPayment(String incomingId, String accountId, Calendar date, double value, String idExtractItem) {
        try {
          system = GDSystem.getInstance();
          system.execute(new IncomingPayment(incomingId, accountId, date, value, idExtractItem));
          system.execute(new AccountAmountControl(accountId, value, 0));
     
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
View Full Code Here

   
    public void incomingPayment(String incomingId, String accountId, Calendar date, double value, TypeOfPayment typeOfPayment) {
        try {
          system = GDSystem.getInstance();
          system.execute(new IncomingPayment(incomingId, accountId, date, value, typeOfPayment));
          system.execute(new AccountAmountControl(accountId, value, 0));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

   
    public void incomingPayment(String incomingId, String accountId, Calendar date, double value, TypeOfPayment typeOfPayment, ExtractBankItem extractBankItem) {
        try {
          system = GDSystem.getInstance();
          system.execute(new IncomingPayment(incomingId, accountId, date, value, typeOfPayment, extractBankItem));
          system.execute(new AccountAmountControl(accountId, value, 0));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

            Parcel parcel = (Parcel) system.executeAndQuery(new ParcelPayment(system.getLogged(), registration.getIdRegistration(), parcelId, ticket, mora, discount, payValue, payDate.getCalendar(), paymentType, receivedValue.getFloatValue()));
            String desc = (parcel.isRegistrationTax() ? "Taxa da matr�cula de " : "Mensalidade de ");
//      if(paymentType instanceof PaymentBankAccountPayed){
//                String accountId = ((PaymentBankAccountPayed)paymentType).getAccountId();
                Operation operation = (Operation) system.executeAndQuery(new AddAndReturnOperation(accountId, parcelPaymenBillPlanCategory, payDate, desc + registration.getStudent().getName(), payValue, parcel, receivedValue.getFloatValue(), registration.getIdRegistration(), parcelId));
                system.execute(new AccountAmountControl(accountId, payValue, 0));
              
                // Quando um desconto for concedido � criado uma nova opera��o sobre o desconto da mensalidade e assim
                // essa opera��o de desconto � adicionado no LinkedOperation como uma despesa
                if(discount != 0.0f){
                  //String parcelPaymenBillPlanCategoryReversal = "2.1.4.4";
View Full Code Here

    public void transferMoneyBetweenAccounts(String tranferMoneyToAccount, Account moneyFromAccount, Money transferValue) {
        try {
            Account accountToTransferMoney = (Account) system.query(new GetAccountByName(tranferMoneyToAccount));

            system.executeAndQuery(new AddAndReturnOperation(accountToTransferMoney, ((BillCategory) system.query(new GetBillCategory("Transfer�ncia entre contas"))).getId(), new GDDate(), "Tranfer�ncia da conta: "+ moneyFromAccount.getName(), transferValue.getFloatValue(), new PaymentMoney()));
            system.execute(new AccountAmountControl(accountToTransferMoney, transferValue, new Money(0)));
           
            system.executeAndQuery(new AddAndReturnOperation(moneyFromAccount, ((BillCategory) system.query(new GetBillCategory("Transfer�ncia entre contas "))).getId(), new GDDate(), "Tranfer�ncia para conta: "+ accountToTransferMoney.getName(), transferValue.getFloatValue(), new PaymentMoney()));
            system.execute(new AccountAmountControl(moneyFromAccount, new Money(0), transferValue));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(GDWindowControl.getInstance().getMainScreen().getShell(), IMessageProvider.INFORMATION);
        box.setText("Data Inv�lida");
        box.setMessage(MessageConstants.TRANSACTION_DATE_EXCEPTION);
        box.open();
View Full Code Here

TOP

Related Classes of br.com.visualmidia.persistence.AccountAmountControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.