Examples of beforeOrEqualsDay()


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

           
            for (Registration registration : registrationList) {
                final List<Parcel> parcels = registration.getParcels();
                for (Parcel parcel : parcels) {
                    final GDDate parcelDate = new GDDate(parcel.getDate());
                    if(!parcel.isPayed() && parcelDate.beforeOrEqualsDay(today) && parcelDate.beforeOrEqualsDay(finalDate) && parcelDate.afterOrEqualsDay(initialDate)){
                       final GDDate birthDate = new GDDate(registration.getStudent().getBirthDate());
                       String gender = ((Person) system.query(new GetPerson(registration.getIdPerson()))).getGender().toString();
                       if(ResponsableValidator.checkStudentUnderAge(birthDate.getFormatedDate())){
                            student = (Student) registration.getStudent().getPersonType("student");
                            name = "Prezado(a) "+student.getResponsableName()+",\n" +
View Full Code Here

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

           
            for (Registration registration : registrationList) {
                final List<Parcel> parcels = registration.getParcels();
                for (Parcel parcel : parcels) {
                    final GDDate parcelDate = new GDDate(parcel.getDate());
                    if(!parcel.isPayed() && parcelDate.beforeOrEqualsDay(today) && parcelDate.beforeOrEqualsDay(finalDate) && parcelDate.afterOrEqualsDay(initialDate)){
                       final GDDate birthDate = new GDDate(registration.getStudent().getBirthDate());
                       String gender = ((Person) system.query(new GetPerson(registration.getIdPerson()))).getGender().toString();
                       if(ResponsableValidator.checkStudentUnderAge(birthDate.getFormatedDate())){
                            student = (Student) registration.getStudent().getPersonType("student");
                            name = "Prezado(a) "+student.getResponsableName()+",\n" +
View Full Code Here

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

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

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

                for (Registration registration : registrations) {
                    for (RegistrationAppointment registrationAppointment : registration.getRegistrationAppointment()) {
                        if(!registrationAppointment.isReplacement()) {
                            for (Presence presence : registrationAppointment.getPresence()) {
                              GDDate presenceDate = new GDDate(presence.getDate());
                              if(presenceDate.afterOrEqualsDay(startDate) && presenceDate.beforeOrEqualsDay(endDate)) {
                                  presences.add(presence);
                             
                            }
                        } else {
                            for (Presence presence : registrationAppointment.getPresence()) {
View Full Code Here

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

                             
                            }
                        } else {
                            for (Presence presence : registrationAppointment.getPresence()) {
                                GDDate presenceDate = new GDDate(presence.getDate());
                                if(presenceDate.afterOrEqualsDay(startDate) && presenceDate.beforeOrEqualsDay(endDate)) {
                                    presences.add(presence);
                                }
                            }
                        }
                    }
View Full Code Here

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

           
            for (Registration registration : registrationList) {
               
              GDDate dateRegistration = new GDDate(registration.getRegistrationDate());
               
                if(dateRegistration.beforeOrEqualsDay(finishDate) && dateRegistration.afterOrEqualsDay(startDate)){
                    Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                    String genderChar = (person.getGender().equals("Masculino")?"o":"a");
                   
                    JRPrintPage page = new JRBasePrintPage();
                   
View Full Code Here

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

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

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

                break;
              }
              i++;
            }
          }else{
            while (date.beforeOrEqualsDay(toDate)){
              if ( date.afterOrEqualsDay(fromDate) && date.beforeOrEqualsDay(toDate) ){
                Expenditure myBill = new Expenditure(expenditure.getId(), expenditure.getDescription(), new GDDate(date), expenditure.getFrequency(), expenditure.getNumberOfOcurrencies(), expenditure.getValue(), expenditure.isFixedValue(), expenditure.getCategoryId(), expenditure.getObservation(),expenditure.getFirstPaymentDate(),expenditure.getLastPaymentDate());
                list.add(myBill);
              }
              date = skip(date, frequency);
View Full Code Here

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

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