public List<ProcessingPeriod> getAllPeriodsForDateRange( Facility facility, Program program, Date startDate, Date endDate) { RequisitionGroupProgramSchedule requisitionGroupProgramSchedule = getSchedule(facility, program); return periodRepository.getAllPeriodsForDateRange( requisitionGroupProgramSchedule.getProcessingSchedule().getId(), startDate, endDate); }
public List<ProcessingPeriod> getAllPeriodsAfterDateAndPeriod( Long facilityId, Long programId, Date programStartDate, Long startingPeriodId) { RequisitionGroupProgramSchedule requisitionGroupProgramSchedule = getSchedule(new Facility(facilityId), new Program(programId)); return periodRepository.getAllPeriodsAfterDateAndPeriod( requisitionGroupProgramSchedule.getProcessingSchedule().getId(), startingPeriodId, programStartDate, new Date()); }
public ProcessingPeriod getCurrentPeriod(Long facilityId, Long programId, Date programStartDate) { RequisitionGroupProgramSchedule schedule = getSchedule(new Facility(facilityId), new Program(programId)); return periodRepository.getCurrentPeriod( schedule.getProcessingSchedule().getId(), programStartDate); }