Examples of afterOrEqualsDay()


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

              setErrorMessage("A data inicial deve ser anterior a data final.");
            } else {
              Map<String, Operation> map = (Map<String, Operation>) system.query(new GetOperationByPersonId(system.getLogged().getId()));
              List<Operation> list = new ArrayList<Operation>();
              for (Operation operation : map.values()) {
                if(initialDate.beforeOrEqualsDay(operation.getDateTime()) && finishDate.afterOrEqualsDay(operation.getDateTime()))
                  list.add(operation);
              }
             
              SortComparator comparator = new SortComparator();
              Collections.sort(list, comparator);
View Full Code Here

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

        print.setText("Visualizar");
        print.addListener(SWT.MouseDown, new Listener(){
            public void handleEvent(Event arg0) {
                GDDate initialDate = new GDDate(initialDateText.getText());
                GDDate endDate = new GDDate(endDateText.getText());
                if(endDate.afterOrEqualsDay(initialDate)){
                  setScreenMessage("");
                    CreateReports.createParcelsReport(initialDateText.getText(), endDateText.getText(), statusSelect);
                } else {
                    setErrorMessage("A data final deve ser maior que a inicial.");
                }
View Full Code Here

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

           
            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.afterOrEqualsDay()

          float value;
          String numberOfParcelStr = "";
          GDDate today = new GDDate();
          GDDate parcelDate = new GDDate(parcel.getDate());
         
            if(parcelDate.afterOrEqualsDay(today)) {
              value = new Money(parcel.getValueBeforeParcelDateExpiration()).getFloatValue();
            } else {
              value = new Money(parcel.getValueAfterParcelDateExpiration()).getFloatValue();
            }
View Full Code Here

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

                    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.afterOrEqualsDay()

                    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.afterOrEqualsDay()

                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.afterOrEqualsDay()

                             
                            }
                        } 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.afterOrEqualsDay()

           
            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.afterOrEqualsDay()

          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
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.