Examples of IncomingPayment


Examples of br.com.visualmidia.persistence.IncomingPayment

   
    //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);
View Full Code Here

Examples of br.com.visualmidia.persistence.IncomingPayment

    }
   
    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");
View Full Code Here

Examples of br.com.visualmidia.persistence.IncomingPayment

    }
   
    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);
View Full Code Here

Examples of br.com.visualmidia.persistence.IncomingPayment

    }
   
    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);
View Full Code Here

Examples of com.expositds.ars.domain.billing.IncomingPayment

    if (source != null) {
      tmp = HibernateHelper.initializeAndUnproxy(source);
    }

    if (tmp instanceof IncomingPaymentEntity) {
      IncomingPayment incomingPayment = new IncomingPayment();

      incomingPayment.setCompleted(tmp.isCompleted());
      incomingPayment.setCreationDate(tmp.getCreationDate());
      incomingPayment.setDirection(EPaymentDirection.INCOMING);
      incomingPayment.setId(tmp.getId());

      CustomerEntity customerEntity = ((IncomingPaymentEntity) tmp).getPayer();
      Customer customer = null;
      if (customerEntity instanceof PersonalCustomerEntity) {
        customer = DozerHelper.map(customerEntity, PersonalCustomer.class);
      }
      if (customerEntity instanceof CorporateCustomerEntity) {
        customer = DozerHelper.map(customerEntity, CorporateCustomer.class);
      }

      incomingPayment.setPayer(customer);
      incomingPayment.setPaymentDate(tmp.getPaymentDate());
      incomingPayment.setSubject(tmp.getSubject());

      Subsidiary subsidiary = DozerHelper.map(tmp.getSubsidiary(),
          Subsidiary.class);
      incomingPayment.setSubsidiary(subsidiary);

      incomingPayment.setTotal(tmp.getTotal());
      incomingPayment.setType(tmp.getType());

      result = incomingPayment;
    }

    if (tmp instanceof OutgoingPaymentEntity) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.