Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Money


      }
      if (!registration.isActive()) {
        child.setForeground(getDisplay().getSystemColor(SWT.COLOR_GRAY));
      }
      child.setText(0, registrationItem.getCourse().getDescription());
      child.setText(1, new Money(registrationItem.getCourseValue()).getFormatedValue());
    }
  }
View Full Code Here


        } else {
          item.setImage(new Image(null, (parcel.isRegistrationTax() ? "img/icoNotPayRegistrationTax.png" : "img/icoNotPay.png")));
        }
        item.setText(0, (i + 1) + "");
        item.setText(1, parcel.getDate());
        item.setText(2, new Money(parcel.getValueBeforeParcelDateExpiration()).getFormatedValue());
        item.setText(3, new Money(parcel.getValueAfterParcelDateExpiration()).getFormatedValue());
        if(parcel.getIdPersonReceived() != null) {
          Person person = (Person) system.query(new GetPerson(parcel.getIdPersonReceived()));
          item.setText(4, person.getName());
        } else {
          item.setText(4, "");
View Full Code Here

          ? ""
              : new GDDate(registration.getInitDate()).getFormatedDate());
      parent.setText(3, (registration.getEndDate() == null)
          ? ""
              : new GDDate(registration.getEndDate()).getFormatedDate());
      parent.setText(4, new Money(registration.getRegistrationValue()).getFormatedValue());
      parent.setText(5, registration.getEmployee().getName());

      List<String> registrationStatus = registration.getEndStatus();
      if (registrationStatus.size() > 0) {
        try {
View Full Code Here

        } else {
          item2.setImage(new Image(null, "img/icoNotPay.png"));
        }
        item2.setText(0, registration.getIdRegistration() + "/"  + (i + 1));
        item2.setText(1, parcel.getDate());
        item2.setText(2, new Money(parcel.getValueBeforeParcelDateExpiration()).getFormatedValue());
        item2.setText(3, new Money(parcel.getValueAfterParcelDateExpiration()).getFormatedValue());
       
      }
     
       
    }
View Full Code Here

                        items = table.getItems();
                        break;
                    }
                } else if (isMoneyTable(index)) {
                  try {
                    Money money1 = new Money(value1);
                    Money money2 = new Money(value2);
                    if ((order == 0) ? money1.getFloatValue()>money2.getFloatValue() : money2.getFloatValue()>money1.getFloatValue()) {
                      String[] values = { items[z].getText(0), items[z].getText(1), items[z].getText(2), items[z].getText(3), items[z].getText(4), items[z].getText(5), items[z].getText(6), items[z].getText(7), items[z].getText(8) };
                      Image[] images = {items[z].getImage(0), items[z].getImage(1), items[z].getImage(2), items[z].getImage(3), items[z].getImage(4), items[z].getImage(5), items[z].getImage(6), items[z].getImage(7), items[z].getImage(8)};
                      Color[] color = { items[z].getForeground(0), items[z].getForeground(1), items[z].getForeground(2), items[z].getForeground(3), items[z].getForeground(4), items[z].getForeground(5), items[z].getForeground(6), items[z].getForeground(7), items[z].getForeground(8)};
                      items[z].dispose();
                      TableItem item = new TableItem(table, SWT.NONE, j);
View Full Code Here

     private boolean isMoneyTable(int index) {
       try {
         for(int i=0; i<table.getItems().length; i++){
           TableItem item = table.getItem(i);
           if (!item.getText(index).equals("")){
             new Money(item.getText(index));
           }
         }
       } catch (Exception e) {
         return false;
       }
View Full Code Here

          String numberOfParcelStr = "";
          GDDate today = new GDDate();
          GDDate parcelDate = new GDDate(parcel.getDate());
         
            if(parcelDate.afterOrEqualsDay(today)) {
              value = new Money(parcel.getValueBeforeParcelDateExpiration()).getFloatValue();
            } else {
              value = new Money(parcel.getValueAfterParcelDateExpiration()).getFloatValue();
            }

          try {
              numberOfParcelStr = idRegistration + "/" + numberOfParcel;
          } catch (Exception e) {
View Full Code Here

         
          GDDate endDate = new GDDate(expenditure.getNextPaymentDate());
          endDate.addDays(3);
         
        if((date.afterDay(incomingDate) && date.beforeDay(endDate))
            && new Money("-"+ expenditure.getValue()).equals(new Money(value)))
        {
          return expenditure;
                }
      }
    } catch (Exception e) {
View Full Code Here

         
          GDDate endDate = new GDDate(incoming.getNextPaymentDate());
          endDate.addDays(3);
         
        if((date.afterDay(incomingDate) && date.beforeDay(endDate))
            && new Money(incoming.getValue()).equals(new Money(value)))
        {
          return incoming;
                }
      }
    } catch (Exception e) {
View Full Code Here

      Map<String, Operation> operationMap = (Map<String, Operation>) system.query(new GetOperation());

      for (Operation operation : operationMap.values()) {
        if(operation.getAccount().isBankAccount()) {
          if((new GDDate(operation.getDateTime()).equals(date)
              && new Money(operation.getValue()).equals(new Money(value)) )
              || operation.getBankOperationNumber().equals(bankOperationNumber))
          {
            return operation;
                  }
        }
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.Money

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.