Package br.com.visualmidia.business

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


                Parcel parcel = (Parcel) parcels.get(i);
               
                GDDate date = stringToGDDate(parcel.getDate());
                GDDate today = new GDDate();
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
                GDDate graceDays = new GDDate(parcel.getDate());
          graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
               
                TableItem item = new TableItem(paymentTable, SWT.NONE);
               
View Full Code Here


                GDDate date = stringToGDDate(parcel.getDate());
                GDDate today = new GDDate();
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
                GDDate graceDays = new GDDate(parcel.getDate());
          graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));
               
                TableItem item = new TableItem(paymentTable, SWT.NONE);
               
                if (parcel.isPayed()) {
                    item.setImage(new Image(null, (parcel.isRegistrationTax() ? "img/icoRegistrationTaxPay.png" : "img/icoPay.png")));
View Full Code Here

        Image printerImage = new Image(getDisplay(), "img/printer.png");
        for (int i = 0; i < parcels.size(); i++) {
            Parcel parcel = (Parcel) parcels.get(i);
            if(!parcel.isPayed()) {
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
               
                TableItem item = new TableItem(parcelTable, SWT.NONE);
                if (parcel.isPrinted()) {
                    item.setImage(printerImage);
                } else {
View Full Code Here

     
            for (Parcel parcel : parcels) {
                GDDate date = stringToCalendar(parcel.getDate());
                GDDate today = new GDDate();
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
          GDDate graceDays = new GDDate(parcel.getDate());
          graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));

                TableItem item2 = new TableItem(paymentTable, SWT.NONE);
                if (parcel.isPayed()) {
View Full Code Here

                GDDate date = stringToCalendar(parcel.getDate());
                GDDate today = new GDDate();
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
          GDDate graceDays = new GDDate(parcel.getDate());
          graceDays.addDays(Integer.valueOf(system.getProperty("gracedays")));

                TableItem item2 = new TableItem(paymentTable, SWT.NONE);
                if (parcel.isPayed()) {
                    item2.setImage(new Image(null, (parcel.isRegistrationTax() ? "img/icoRegistrationTaxPay.png" : "img/icoPay.png")));
                    payTotal += parcel.getPayValue();
View Full Code Here

         * 0 - Apenas uma vez 1 - Diaria 2 - Semanal 3 - Quinzenal 4 - Mensal 5 -
         * Bimestral 6 - Trimestral 7 - Quadrimestral 8 - Semestral 9 - Anual
         */
        GDDate nextPaymentDate = gdDate;
        if (frequency == 1)
            nextPaymentDate.addDays(1);
          //nextPaymentDate.add(Calendar.DAY_OF_MONTH, 1);
        else if (frequency == 2)
          nextPaymentDate.addDays(7);
            //nextPaymentDate.add(Calendar.DAY_OF_MONTH, 7);
        else if (frequency == 3)
View Full Code Here

        GDDate nextPaymentDate = gdDate;
        if (frequency == 1)
            nextPaymentDate.addDays(1);
          //nextPaymentDate.add(Calendar.DAY_OF_MONTH, 1);
        else if (frequency == 2)
          nextPaymentDate.addDays(7);
            //nextPaymentDate.add(Calendar.DAY_OF_MONTH, 7);
        else if (frequency == 3)
          nextPaymentDate.addDays(14);
            //nextPaymentDate.add(Calendar.DAY_OF_MONTH, 14);
        else if (frequency == 4)
View Full Code Here

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

                } else {
                    bgColorControl = 1;
                }
               
                GDDate todayPlusOneWeek = new GDDate();
                todayPlusOneWeek.addDays(7);
                GDDate nextPaymentDate = bill.getNextPaymentDate();
                GDDate today = new GDDate();
                if (nextPaymentDate.beforeOrEqualsDay(todayPlusOneWeek) && nextPaymentDate.afterOrEqualsDay(today)) {
                    item.setImage(new Image(null, "img/icoWarningExpiration.png"));
                } else if(nextPaymentDate.beforeDay(today)) {
View Full Code Here

            }
            if(!listHours.contains(String.valueOf(hour))) {
              listHours.add(String.valueOf(hour));
            }
          }
          date.addDays(7);
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
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.