Package br.com.visualmidia.business

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


        for (Incoming incoming : incomings.values()) {
          GDDate incomingDate = new GDDate(incoming.getNextPaymentDate());
          incomingDate.addDays(-3);
         
          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;
View Full Code Here


         * 9 - Anual
         */
      GDDate nextExpenditurePaymentDate = expenditure.getNextPaymentDate();
         int frequency = expenditure.getFrequency();
         if (frequency == 1)
             nextExpenditurePaymentDate.addDays(1);//(Calendar.DAY_OF_MONTH, 1);
         else if (frequency == 2)
             nextExpenditurePaymentDate.addDays(7);//(Calendar.DAY_OF_MONTH, 7);
         else if (frequency == 3)
             nextExpenditurePaymentDate.addDays(14);//(Calendar.DAY_OF_MONTH, 14);
         else if (frequency == 4)
View Full Code Here

      GDDate nextExpenditurePaymentDate = expenditure.getNextPaymentDate();
         int frequency = expenditure.getFrequency();
         if (frequency == 1)
             nextExpenditurePaymentDate.addDays(1);//(Calendar.DAY_OF_MONTH, 1);
         else if (frequency == 2)
             nextExpenditurePaymentDate.addDays(7);//(Calendar.DAY_OF_MONTH, 7);
         else if (frequency == 3)
             nextExpenditurePaymentDate.addDays(14);//(Calendar.DAY_OF_MONTH, 14);
         else if (frequency == 4)
             nextExpenditurePaymentDate.addMonth(1);//(Calendar.MONTH, 1);
         else if (frequency == 5)
View Full Code Here

         if (frequency == 1)
             nextExpenditurePaymentDate.addDays(1);//(Calendar.DAY_OF_MONTH, 1);
         else if (frequency == 2)
             nextExpenditurePaymentDate.addDays(7);//(Calendar.DAY_OF_MONTH, 7);
         else if (frequency == 3)
             nextExpenditurePaymentDate.addDays(14);//(Calendar.DAY_OF_MONTH, 14);
         else if (frequency == 4)
             nextExpenditurePaymentDate.addMonth(1);//(Calendar.MONTH, 1);
         else if (frequency == 5)
             nextExpenditurePaymentDate.addMonth(5);//(Calendar.MONTH, 2);
         else if (frequency == 6)
View Full Code Here

          } else {
            bgColorControl = 1;
          }
         
          GDDate todayPlusOneWeek = new GDDate();
          todayPlusOneWeek.addDays(7);
          GDDate nextPaymentDate = expenditure.getNextPaymentDate();
          GDDate today = new GDDate();
         
          Expenditure expenditureToCompare = (Expenditure) system.query(new GetExpenditures(expenditure.getId()));
          GDDate paymentDayBill = expenditureToCompare.getNextPaymentDate();
View Full Code Here

       
        page.addElement(insertMiniText("Valor", posX+370, posY+2, 120));
       
      GDDate today = new GDDate();
        GDDate graceDays = new GDDate(billet.getParcel().getDate());
    graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
    Money value = new Money(0.0);
    value = new Money(billet.getParcel().getValueAfterParcelDateExpiration());

    page.addElement(insertRightText(value.getFormatedValue(), posX+370, posY+10, 160));
       
View Full Code Here

            String day = "";
            if (x > 0) {
                text = new SimpleDateFormat("EEEEE").format(myGDDate.getDate()).replace("-feira", "");
                day = new SimpleDateFormat("dd/MM").format(myGDDate.getDate());
                text = text + "\n" + day;
                myGDDate.addDays(1);
            }
            col.setText(text);
        }
    }
   
View Full Code Here

            String day = "";
            if (x > 0) {
                text = new SimpleDateFormat("EEEEE").format(myGDDate.getDate()).replace("-feira", "");
                day = new SimpleDateFormat("dd/MM").format(myGDDate.getDate());
                text = text + "\n" + day;
                myGDDate.addDays(1);
            }
            col.setText(text);
        }
    }
View Full Code Here

        int i = numberOfColumns;
       
        for (int y = startWorkTime; y < endWorkTime; y++) {
          i++;
          if(y > startWorkTime) {
            myGDDate.addDays(-7);
          }
          for (int x = 1; x < numberOfColumns; x++) {
                Label item = (Label) tableItens[i];
               
                if (item.getBackground().equals(colorBackgroundSelected)) {
View Full Code Here

              item.setBackground(colorAvailable);
              item.setForeground(colorText);
              addVacancy(item);
                }
                i++;
                myGDDate.addDays(1);
            }
          myGDDate.addHours(1);
        }
    }
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.