Package br.com.visualmidia.business

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


          float operationBeginValue = operation.getValue() - 20;
          float operationEndValue = operation.getValue() + 20;
          float extractBankItemValue = new Money(extractBankItem.getValue()).getFloatValue();
         
            GDDate beginDate = new GDDate(operation.getDateTime());
            beginDate.addDays(-3);
           
            GDDate endDate = new GDDate(operation.getDateTime());
            endDate.addDays(3);
         
          if((extractBankItem.getDate().afterDay(beginDate) && extractBankItem.getDate().beforeDay(endDate))
View Full Code Here


         
            GDDate beginDate = new GDDate(operation.getDateTime());
            beginDate.addDays(-3);
           
            GDDate endDate = new GDDate(operation.getDateTime());
            endDate.addDays(3);
         
          if((extractBankItem.getDate().afterDay(beginDate) && extractBankItem.getDate().beforeDay(endDate))
              && (extractBankItemValue > operationBeginValue && extractBankItemValue < operationEndValue) )
          {
            TableItem item = new TableItem(table, SWT.NONE);
View Full Code Here

       
        GDDate today = new GDDate();
        GDDate expirationDate = new GDDate(parcel.getDate());

        GDDate graceDays = new GDDate(parcel.getDate());
    graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
       
        if (today.afterDay(expirationDate) &&  today.afterDay(graceDays)) {
            float percent = (((gd.get("fine")== null) || (gd.get("fine").equals(""))) ? 0 : (new Money((String) gd.get("fine"))).getFloatValue());
           
            Money value = new Money(parcel.getValueAfterParcelDateExpiration());
View Full Code Here

        GDDate today = new GDDate();
        GDDate expirationDate = new GDDate(parcel.getDate());
      
        GDDate graceDays = new GDDate(parcel.getDate());
    graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
   
        if (today.afterDay(expirationDate) &&  today.afterDay(graceDays)) {
            int x = 0;
            while (expirationDate.beforeDay(today)) {
                x++;
View Full Code Here

        discountText = new Text(dialog, SWT.SINGLE | SWT.BORDER);
       
        GDDate today = new GDDate();
        GDDate graceDays = new GDDate(parcel.getDate());
        graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
        Validator.validateNumbers(discountText);
        Validator.validateTextOfMoneyValuesToAvoidEmptyStrings(discountText);
        discountText.setText("0,00");
        new MoneyMask(discountText);
View Full Code Here

        Validator.validateNumbers(totalText);
       
        GDDate today = new GDDate();
       
        GDDate graceDays = new GDDate(parcel.getDate());
    graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
       
    if ( today.afterOrEquals(new GDDate(parcel.getDate())) ) {
        if ( today.beforeOrEquals(graceDays) && today.afterOrEquals(new GDDate(parcel.getDate())) ){
          totalText.setText(new Money(parcel.getValueBeforeParcelDateExpiration()).getFormatedValue());
        }
View Full Code Here

        bankingBilletLink.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
              Money ticketAndMora = new Money(0.0);
              GDDate today = new GDDate();
                GDDate graceDays = new GDDate(parcel.getDate());
            graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
              if ( today.after(new GDDate(parcel.getDate())) && today.after(graceDays)) {
                 ticketAndMora = new Money(new Money(ticketText.getText()).getFloatValue() + new Money(moraText.getText()).getFloatValue());
              }

              /*
 
View Full Code Here

    }
   
    public List<String> createListDate() {
        final List<String> listDate = new ArrayList<String>();
        GDDate startDate = new GDDate();
        startDate.addDays((1 - startDate.getWeekDay()));
        for (int i = 0; i < 7; i++) {
            startDate.addDays(1);
            String weekDay = new SimpleDateFormat("EEEEE").format(startDate.getDate()).replace("-feira", "");
            if(isExistInWorkDaysList(weekDay)){
                listDate.add(startDate.getFormatedDate());
View Full Code Here

    public List<String> createListDate() {
        final List<String> listDate = new ArrayList<String>();
        GDDate startDate = new GDDate();
        startDate.addDays((1 - startDate.getWeekDay()));
        for (int i = 0; i < 7; i++) {
            startDate.addDays(1);
            String weekDay = new SimpleDateFormat("EEEEE").format(startDate.getDate()).replace("-feira", "");
            if(isExistInWorkDaysList(weekDay)){
                listDate.add(startDate.getFormatedDate());
            }
        }
View Full Code Here

              int weekDay = weekDayCombo.getSelectionIndex();

              while(true) {
                if(today.getWeekDay() == weekDay)
                  break;
                today.addDays(1);
              }
              newGDDate = new GDDate(today);
            }
           
            newGDDate.setHourOfDay(Integer.parseInt(newHour));
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.