Examples of beforeDay()


Examples of br.com.visualmidia.business.GDDate.beforeDay()

            checkControlCenter.setErrorMessage("Per�odo Incorreto.");
        } else {
            GDDate startDate = new GDDate(startPeriodText.getText());
            GDDate endDate = new GDDate(endPeriodText.getText());

            if (endDate.beforeDay(startDate)) {
                checkControlCenter.setErrorMessage("Per�odo Incorreto.");
            } else {
                checkControlCenter.setErrorMessage("");
                checkControlCenter.updateTable(combo.getText(), startDate, endDate, getSelectionLocalization(), nameSearchText.getText());
            }
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

            cashFlowControlCenter.setErrorMessage("Per�odo Incorreto.");
        } else {
            GDDate startDate = new GDDate(startPeriodText.getText());
            GDDate endDate = new GDDate(endPeriodText.getText());
           
            if (endDate.beforeDay(startDate)) {
                cashFlowControlCenter.setErrorMessage("Per�odo Incorreto.");
            } else {
                cashFlowControlCenter.setErrorMessage("");
//                if (!unconsiderToPayText.getText().equals(""))
//                    cashFlowControlCenter.ignoreOverDueDebit(unconsiderToPayText.getText());
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

            Map<String, Operation> operationsMap = (Map<String, Operation>) system.query(new GetOperationByAccountId(accountId));
            float balanceUntilLastDay = 0;
           
            for (Operation operation : operationsMap.values()) {
                GDDate operationDateTime = operation.getDateTime();
                if(operationDateTime.beforeDay(beginDate)){
                    float inMoney = (!operation.isCredit()) ? 0f : operation.getValue();
                    float outMoney = (operation.isCredit()) ? 0f : operation.getValue()* -1;
                    balanceUntilLastDay += inMoney + outMoney;
                }
            }
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

            flowBankAccountControlCenter.setErrorMessage("Per�odo Incorreto.");
        } else {
            GDDate startDate = new GDDate(startPeriodText.getText());
            GDDate endDate = new GDDate(endPeriodText.getText());
           
            if (endDate.beforeDay(startDate)) {
                flowBankAccountControlCenter.setErrorMessage("Per�odo Incorreto.");
            } else {
                flowBankAccountControlCenter.setErrorMessage("");
                flowBankAccountControlCenter.updateInitialCash("0,00");
                flowBankAccountControlCenter.updateFlowBankAccountTable();
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

                  }
                } else if (isDate(items[z].getText(index))) {
                   try{
                     GDDate calendar1 = new GDDate(value1);
                     GDDate calendar2 = new GDDate(value2);
                     if ((order == 0) ? calendar2.beforeDay(calendar1) : calendar2.afterDay(calendar1)) {
                       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

Examples of br.com.visualmidia.business.GDDate.beforeDay()

          GDDate today = new GDDate();
         
          Expenditure expenditureToCompare = (Expenditure) system.query(new GetExpenditures(expenditure.getId()));
          GDDate paymentDayBill = expenditureToCompare.getNextPaymentDate();
         
          if (paymentDayBill.beforeDay(nextPaymentDate) && paymentDayBill.beforeDay(today)) {
            item.setImage(new Image(null, "img/icoExpiradNotPayed.png"));
          } else if (nextPaymentDate.beforeOrEqualsDay(todayPlusOneWeek) && nextPaymentDate.afterOrEqualsDay(today)) {
            item.setImage(new Image(null, "img/icoWarningExpiration.png"));
          } else if (nextPaymentDate.beforeDay(today)) {
            item.setImage(new Image(null, "img/icoExpirad.png"));
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

          GDDate today = new GDDate();
         
          Expenditure expenditureToCompare = (Expenditure) system.query(new GetExpenditures(expenditure.getId()));
          GDDate paymentDayBill = expenditureToCompare.getNextPaymentDate();
         
          if (paymentDayBill.beforeDay(nextPaymentDate) && paymentDayBill.beforeDay(today)) {
            item.setImage(new Image(null, "img/icoExpiradNotPayed.png"));
          } else if (nextPaymentDate.beforeOrEqualsDay(todayPlusOneWeek) && nextPaymentDate.afterOrEqualsDay(today)) {
            item.setImage(new Image(null, "img/icoWarningExpiration.png"));
          } else if (nextPaymentDate.beforeDay(today)) {
            item.setImage(new Image(null, "img/icoExpirad.png"));
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

      totalOfPayedParcels = new Money(0);
    for (int i = 0; i < registrationParcelList.size(); i++) {
      Parcel parcel = registrationParcelList.get(i);
      GDDate parcelDate = new GDDate(parcel.getDate());
     
      if(parcel.isPayed() || parcelDate.beforeDay(new GDDate())) {
        parcelList.add(parcel);
        totalOfPayedParcels.credit(parcel.getValueAfterParcelDateExpiration());
      }
    }
  }
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

//      float balanceUntilLastDay = 0;
        Money balanceUntilLastDayMoney = new Money(0.0);

        for (Operation operation : operationsMap.values()) {
          GDDate operationDateTime = new GDDate(operation.getDateTime());
          if(operationDateTime.beforeDay(beginDate)){
//          float inMoney = (!operation.isCredit()) ? 0f : operation.getValue();
//          float outMoney = (operation.isCredit()) ? 0f : operation.getValue() * -1;
//          balanceUntilLastDay += (inMoney + outMoney);
            if (operation.isCredit()){
              balanceUntilLastDayMoney.credit(operation.getValue());
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.beforeDay()

          MergeSortAlgorithm sort = new MergeSortAlgorithm();
          sort.sortParcelByDate(parcels);
         
                 for (Parcel parcel : parcels) {
                     final GDDate parcelDate = new GDDate(parcel.getDate());
                     if(!parcel.isPayed() && parcelDate.beforeOrEqualsDay(finalDate) && parcelDate.afterOrEqualsDay(initialDate) && parcelDate.beforeDay(today)){
                         Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                         personMap.put(String.valueOf(cont), person);
                         cont++;
                     }
                 }
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.