private void populateExceptionDatesGrid() { PublicHolidaysVoCollection collVoPubHoliday = domain.getPublicHolidays(); form.getLocalContext().setvoCollPublicHoliday(collVoPubHoliday); if (collVoPubHoliday != null && collVoPubHoliday.size() > 0) { form.lyrSpecColConfig().tabExceptionDays().grdExceptionDates().getRows().clear(); for (int i = 0; i < collVoPubHoliday.size(); i++) { grdExceptionDatesRow row = form.lyrSpecColConfig().tabExceptionDays().grdExceptionDates().getRows().newRow(); row.setcolExceptionDates(collVoPubHoliday.get(i).getDate()); row.setValue(collVoPubHoliday.get(i)); } } }
public PublicHolidaysVoCollection getPublicHolidays() { DomainFactory factory = getDomainFactory(); List exceptionDates = factory.find("from PublicHolidays as ph order by ph.date asc ");// WDEV-15083 if(exceptionDates != null && exceptionDates.size() > 0) return PublicHolidaysVoAssembler.createPublicHolidaysVoCollectionFromPublicHolidays(exceptionDates); return null; }