Package br.com.visualmidia.business

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


              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


              total = (float) 0.0;
              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

                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

          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

                    for (RegistrationAppointment registrationAppointment : registration.getRegistrationAppointment()) {
                        if(!registrationAppointment.isReplacement()) {
                            for (Presence presence : registrationAppointment.getPresence()) {
                              GDDate presenceDate = new GDDate(presence.getDate());
                              int presenceHour = presence.getDate().getHourOfDay();
                              if( (presenceDate.afterOrEqualsDay(startDate) && presenceDate.beforeOrEqualsDay(endDate)) && (presenceHour >= startHour && presenceHour < endHour ) && !presence.isPresent()) {
                                  presences.add(presence);
                             
                            }
                        }
                    }
View Full Code Here

                  GDDate date = new GDDate(incoming.getNextPaymentDate());
                  int frequency = incoming.getFrequency();
                  if(incoming.getNumberOfOcurrencies() > 0){
                    int i = 1;
                    while (i <= incoming.getNumberOfOcurrencies()) {
                      if ( date.afterOrEqualsDay(fromDate) && date.beforeOrEqualsDay(toDate) ){
//                        Incoming myBill = new Incoming(incoming.getId(), incoming.getDescription(), new GDDate(date), incoming.getFrequency(), incoming.getNumberOfOcurrencies(), incoming.getValue(), incoming.isFixedValue(), incoming.getCategoryId(), incoming.getObservation());
                        Incoming myBill = new Incoming(incoming.getId(), incoming.getDescription(), new GDDate(date), incoming.getFrequency(), incoming.getNumberOfOcurrencies(), incoming.getValue(), incoming.isFixedValue(), incoming.getCategoryId(), incoming.getObservation(),incoming.getFirstPaymentDate(),incoming.getLastPaymentDate());
                        list.add(myBill);
                      }
                      date = skip(date, frequency);
View Full Code Here

                      }
                      i++;
                    }
                  }else{
                    while (date.beforeOrEqualsDay(toDate)){
                      if ( date.afterOrEqualsDay(fromDate) && date.beforeOrEqualsDay(toDate) ){
                        Incoming myBill = new Incoming(incoming.getId(), incoming.getDescription(), new GDDate(date), incoming.getFrequency(), incoming.getNumberOfOcurrencies(), incoming.getValue(), incoming.isFixedValue(), incoming.getCategoryId(), incoming.getObservation(),incoming.getFirstPaymentDate(),incoming.getLastPaymentDate());
                        list.add(myBill);
                      }
                      date = skip(date, frequency);
                      if (date == null) {
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.