Examples of PaymentCheck


Examples of br.com.visualmidia.business.PaymentCheck

                    if (item.length == 0) {
                        setErrorMessage("Voc� deve selecionar pelo menos um cheque.");
                    } else if (item.length == 1) {
                        setErrorMessage("");
                        Operation operation  = ((Operation) system.query(new GetOperation(item[0].getText(1))));
                        PaymentCheck check = (PaymentCheck) operation.getPaymentType();
                        new ObservationCheckDialog(mainPanel.getShell(), check, operation, getMySelf()).open();
                    } else {
                      setErrorMessage("");
                      Map<String, PaymentCheck> checkMap = new HashMap<String, PaymentCheck>();
                      for (TableItem it : item) {
                        Operation operation  = ((Operation) system.query(new GetOperation(it.getText(1))));
                            PaymentCheck check = (PaymentCheck) operation.getPaymentType();
                            checkMap.put(operation.getId(), check);
            }
                      new ObservationCheckDialog(mainPanel.getShell(), checkMap, getMySelf()).open();
                    }
                } catch (Exception e) {
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

            if(checkFields()){
              float parentValue = 0f;
              if(!parentText.getText().equals("")){
                parentValue = new Money(parentText.getText()).getFloatValue();
                if(new Money(receivedValueText.getText()).getFloatValue() >= parentValue) {
                  paymentCheck = new PaymentCheck(new GDDate(checkDateText.getText()), getBankText(), getAgencyText(), getAccountNumberText(), getCheckNumberText(), getAccountOwnerText(), getPhoneText(), getObservationText(), localization, new Money(receivedValueText.getText()));
                  parentText.setText(receivedValueText.getText());
                  close();
                } else {
                  setMessage("O valor do cheque tem que ser maior ou igual ao valor a ser pago", IMessageProvider.ERROR);
                }
              }else{
                paymentCheck = new PaymentCheck(new GDDate(checkDateText.getText()), getBankText(), getAgencyText(), getAccountNumberText(), getCheckNumberText(), getAccountOwnerText(), getPhoneText(), getObservationText(), localization, new Money(receivedValueText.getText()));
                parentText.setText(receivedValueText.getText());
                close();
              }
            }else{
                return;
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

    try {
      operations = (Map<String, Operation>) system.query(new GetOperation());
      if(typeOfFilter.equals("Todos")) {
        for (Operation operation : operations.values()) {
          if (operation.getPaymentType() instanceof PaymentCheck) {
            PaymentCheck check = (PaymentCheck) operation.getPaymentType();
            if ((condition(selectedLocalization, check)) && ((nameSearch.equals("")) ? true : match(check.getResponsable(), nameSearch))) {
              TableItem item = new TableItem(checkTable, SWT.NONE | SWT.WRAP | SWT.MULTI);
             
              item.setImage(0, new Image(null,check.isLocalization()?"img/icoCheckIn.png":"img/icoCheckOut.png"));
              item.setText(1, operation.getId());
              item.setText(2, operation.getDescription());
              item.setText(3, check.getBank());
              item.setText(4, check.getAgency());
              item.setText(5, check.getBillnumber());
              item.setText(6, check.getChecknumber());
              item.setText(7, check.getResponsable());
              item.setText(8, check.getPhone());
              item.setText(9, operation.getDateTime().getFormatedDate());
              item.setText(10, check.getDate().getFormatedDate());
              item.setText(11, check.getReceivedValue().getFormatedValue());
              item.setText(12, new Money(operation.getValue()).getFormatedValue());
              item.setText(13, check.getObservation());
            }
          }
        }
      } else if(typeOfFilter.equals("Data de Emiss�o")) {
        for (Operation operation : operations.values()) {
          if (operation.getPaymentType() instanceof PaymentCheck) {
            PaymentCheck check = (PaymentCheck) operation.getPaymentType();
            if ((check.getDate().beforeOrEqualsDay(endDate)) && (check.getDate().afterOrEqualsDay(startDate)) && (condition(selectedLocalization, check)) && ((nameSearch.equals("")) ? true :  match(check.getResponsable(), nameSearch))) {
              TableItem item = new TableItem(checkTable, SWT.NONE | SWT.WRAP | SWT.MULTI);
             
              item.setImage(0, new Image(null,check.isLocalization()?"img/icoCheckIn.png":"img/icoCheckOut.png"));
              item.setText(1, operation.getId());
              item.setText(2, operation.getDescription());
              item.setText(3, check.getBank());
              item.setText(4, check.getAgency());
              item.setText(5, check.getBillnumber());
              item.setText(6, check.getChecknumber());
              item.setText(7, check.getResponsable());
              item.setText(8, check.getPhone());
              item.setText(9, operation.getDateTime().getFormatedDate());
              item.setText(10, check.getDate().getFormatedDate());
              item.setText(11, check.getReceivedValue().getFormatedValue());
              item.setText(12, new Money(operation.getValue()).getFormatedValue());
              item.setText(13, check.getObservation());
            }
          }
        }
      }
      } catch (Exception e) {
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

//                }
                  item.setText(9, String.valueOf(new Money(parcel.getValueReceived().getFloatValue() - parcel.getPayValue()).getFormatedValue()));
                if (parcel.getPayDate() != null)
                    item.setText(10, parcel.getPayDate().getFormatedDate());
                if (parcel.getPayment() instanceof PaymentCheck) {
                    PaymentCheck check = (PaymentCheck) parcel.getPayment();
                   
                    item.setText(11, (parcel.getPayDate().before(check.getDate().getCalendar()) ? parcel.getPaymentType() : "Cheque-pr�"));
                    item.setText(12, check.getDate().getFormatedDate());
                } else {
                    item.setText(11, (parcel.getPaymentType()));
                }
                if(parcel.getIdPersonReceived() != null) {
          Person person = (Person) system.query(new GetPerson(parcel.getIdPersonReceived()));
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

        Registration registration = system.registrations.get(registrationId);
        for (int i = 0; i < registration.getParcels().size(); i++) {
            Parcel parcel = registration.getParcel(i);
            if(parcel != null){
              if(i == Integer.parseInt(parcelId)-1) {
                PaymentCheck check = (PaymentCheck) parcel.getPayment();
                check.setObservation(observation);
                check.setLocalization(localization);
              }
            }
        }
    }
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

      this.localization = localization;
    }

    protected void execute(PrevalentSystem system) throws BusinessException {
      Operation operation = system.getOperations().get(operationId);
      PaymentCheck check = (operation.getPaymentType().getType().equals("Cheque"))? (PaymentCheck) operation.getPaymentType() : null;
      if(check != null){
        check.setObservation(observation);
        check.setLocalization(localization);
      }
    }
View Full Code Here

Examples of br.com.visualmidia.business.PaymentCheck

                  item2.setText(9, String.valueOf(new Money(parcel.getValueReceived().getFloatValue() - parcel.getPayValue()).getFormatedValue()));
                if(parcel.getPayDate() != null)
                    item2.setText(10, new SimpleDateFormat("dd/MM/yyyy").format(parcel.getPayDate().getDate()));
               
                if (parcel.getPayment() instanceof PaymentCheck) {
                    PaymentCheck check = (PaymentCheck) parcel.getPayment();
                   
                    item2.setText(10, (parcel.getPayDate().before(check.getDate().getCalendar()) ? parcel.getPaymentType() "Cheque-pr�"));
                    item2.setText(11, check.getDate().getFormatedDate());
                } else {
                    item2.setText(10, parcel.getPaymentType());
                }
                if(parcel.getIdPersonReceived() != null) {
          Person person;
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.