예제 #1
0
 /**
  * This method prepares a view to filter dates between start and end date, sorted by the scheduled
  * date.
  *
  * @param startDate
  * @param endDate
  */
 public void prepareFilterDatesView(java.util.Date startDate, java.util.Date endDate) {
   startDate = DateUtils.addDays(startDate, -1);
   endDate = DateUtils.addDays(endDate, 1);
   java.util.Date scheduleDate = null;
   for (CommitteeScheduleBase committeeSchedule : getSortedCommitteeScheduleList()) {
     scheduleDate = committeeSchedule.getScheduledDate();
     if ((scheduleDate != null) && scheduleDate.after(startDate) && scheduleDate.before(endDate)) {
       committeeSchedule.setFilter(true);
     } else {
       committeeSchedule.setFilter(false);
     }
   }
 }
예제 #2
0
 /** This method prepares view to reset filtered dates and sorts them by the scheduled date. */
 public void resetFilterDatesView() {
   for (CommitteeScheduleBase committeeSchedule : getSortedCommitteeScheduleList()) {
     committeeSchedule.setFilter(true);
   }
   getScheduleData().setFilterStartDate(null);
   getScheduleData().setFilerEndDate(null);
 }