Examples of beforeOrEqualsDay()


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

                for (Expenditure expenditure : map.values()) {
                    if (expenditure.isActive()) {
                      GDDate date = new GDDate(expenditure.getNextPaymentDate());
                        int frequency = expenditure.getFrequency();
           
                        while (date.beforeOrEqualsDay(endDate)) {
                            if (date.afterOrEqualsDay(beginDate)) {
                              Expenditure myBill = new Expenditure(expenditure.getId(), expenditure.getDescription(), new GDDate(date), expenditure.getFrequency(), expenditure.getNumberOfOcurrencies(), expenditure.getValue(), expenditure.isFixedValue(), expenditure.getCategoryId(), expenditure.getObservation());
                              listExpenditure.add(myBill);
                            }
                            date = skip(date, frequency);
View Full Code Here

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

                for (Registration registration : registrationMap.values()) {
                    List<Parcel> parcels = registration.getParcels();
                    if(parcels.size() > 1){
                      sortAlgorithm.sortParcelByDate(parcels);
                      GDDate dateParcel = new GDDate(parcels.get(parcels.size()-1).getDate());
                      if(registration.isActive() && ignoreDate ? true : (dateParcel.beforeOrEqualsDay(finishDate) && dateParcel.afterOrEqualsDay(startDate))) {
                        registrationList.add(registration);
                       
                      }
                    }
                }                 
View Full Code Here

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

      for (Registration registration : ((Map<String, Registration>) system.query(new GetRegistration())).values()) {
        int parcelId = 1;
//        String nameForPrint;
        for (Parcel parcel : registration.getParcels()) {
          GDDate parcelDate = new GDDate(parcel.getDate());
          if(parcelDate.afterOrEqualsDay(initialDate) && parcelDate.beforeOrEqualsDay(finishDate) && !parcel.isPayed()){
            billet = new Billet(String.valueOf(parcelId), parcel, registration, registration.getStudent(), getNameForPrint(registration));
            billets.add(billet);
          }
          parcelId++;
        }
View Full Code Here

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

                int i = 0;
                totalPerAttendant = 0;
                for (Registration registration : registrationList) {
//                  String attendantName = ((Person) system.query(new GetEmployee(((Student) registration.getStudent().getPersonType("student")).getAttendanceResponsable()))).getName();
                  GDDate registrationDate = new GDDate(registration.getRegistrationDate());
                  if((registration.getEmployee().getName().equals(attendant.getName())) && (ignoreDate ? true : (registrationDate.afterOrEqualsDay(startDate) && registrationDate.beforeOrEqualsDay(finishDate)))) {
                    if(i == 0) {
                      page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                      page.addElement(insertTitle(boldStyle, attendant.getName(), posX+5, posY+5));
                      posY += 25;
                      insertRegisteredByAttendentHeaderTable(page, posX);
View Full Code Here

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

                        if ( parcel.getPayDate() != null){
                          paidParcelsAndTotalParcels = (parcelid > 9 ? parcelid : "0"+(parcelid) ) + " / " ( registration.getParcels().size() > 9 ? registration.getParcels().size() :"0"+registration.getParcels().size());
                        }
                       
                        GDDate parcelGDDate = new GDDate(parcel.getDate());
                        if ( parcelGDDate.afterOrEqualsDay(startDate) && parcelGDDate.beforeOrEqualsDay(finishDate)){
                          parcelDate = parcel.getDate();
                          parcelPayDate = (parcel.getPayDate() == null ? "___/___/___":parcel.getPayDate().getFormatedDate());
                          parcelValueBeforeParcelDateExpiration = "R$ " + new Money(parcel.getValueBeforeParcelDateExpiration()).getFormatedValue();
                          addinfo = false;
                        }
View Full Code Here

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

                    }
                   
                    for (Registration registration : registrationList) {
                        Student student = (Student) registration.getStudent().getPersonType("student");
                        GDDate registrationDate = new GDDate(registration.getRegistrationDate());
            if((student.getHowDoYouKnowVisualMidia().equals(howDoYouKnowVisualmidia)) &&  registration.isActive() && (ignoreDate ? true : (registrationDate.afterOrEqualsDay(startDate) && registrationDate.beforeOrEqualsDay(finishDate)))) {
                            if(i == 0) {
                              page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                                page.addElement(insertTitle(boldStyle, howDoYouKnowVisualmidia, posX+5, posY+5));
                               
                                posY += 25;
View Full Code Here

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

                    };
                    Collections.sort(registrationList,comparator);
                for (Registration registration : registrationList) {
                       
                        GDDate registrationDate = new GDDate(registration.getEndDate());
            if(checkStatus(status, registration.getEndStatus()) && (ignoreDate ? true : (registrationDate.afterOrEqualsDay(startDate) && registrationDate.beforeOrEqualsDay(finishDate)))) {
              if (i == 0){
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, status, posX+5, posY+5));
               
                posY += 25;
View Full Code Here

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

                      GDDate registrationDate = new GDDate(registration.getRegistrationDate());
//                    if ( registration.isActive() && registrationDate.afterOrEqualsDay(startDate) && registrationDate.afterOrEqualsDay(initialDateEndDayOfTheMonth) && initialDate.getFormatedDate().equals(startDate.getFormatedDate()) ){
//                    numberOfStudents++;
//                    }
                      if (registration.getEndDate() == null ){
                        if ( registrationDate.beforeOrEqualsDay(initialDateEndDayOfTheMonth) ){
                          totalNumberOfRegistration++;
                        }
                      }else{
                        GDDate registrationEndDate = new GDDate(registration.getEndDate().getTimeInMillis());
                        if ( registrationEndDate.afterDay(initialDateEndDayOfTheMonth) && registrationDate.beforeOrEqualsDay(initialDateEndDayOfTheMonth)){
View Full Code Here

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

//                            registrationActives++;
//                          }
                      }
                      if (registration.getEndDate()!= null ){
                        GDDate registrationEndDate = new GDDate(registration.getEndDate().getTimeInMillis());
                        if ( registrationEndDate.afterOrEqualsDay(initialDate) && registrationEndDate.beforeOrEqualsDay(initialDateEndDayOfTheMonth)){
                          if (registration.getEndStatus().get(0).substring(0, 4).equals("Term")){
                            registrationEnded++;
                          }else{
                            boolean desistent = true;
                            for (String  deactivatedItem : listOfDeactivated){
View Full Code Here

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

              Map<String, Registration> registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
              registrationList.clear();
              for (Registration registration : registrationMap.values()) {
                GDDate registrationDate = new GDDate(registration.getRegistrationDate());
                if(registration.isActive() && (ignoreDate ? true : (registrationDate.afterOrEqualsDay(startDate) && registrationDate.beforeOrEqualsDay(finishDate)))) {
                  registrationList.add(registration);
                }
              }      
              if(registrationList.size()>0){
                MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
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.