@Override protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { if (form.getGlobalContext().Emergency.getAttendanceHistoryDialogIsNotNull() && form.getGlobalContext().Emergency.getAttendanceHistoryDialogParamsIsNotNull()) { AttendanceHistoryDialogParamsVo voSetting = form.getGlobalContext().Emergency.getAttendanceHistoryDialogParams(); EpisodeDetailsVoCollection voCollEpisodeDetails = null; if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.SCHEDULED)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, AttendanceHistoryDialog.SCHEDULED, voSetting.getScheduledDate(), null); } if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.UNSCHEDULED)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, AttendanceHistoryDialog.UNSCHEDULED, voSetting.getScheduledDate(), voSetting.getScheduledDate()); } if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.HISTORY)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, null, null, null); } populateGrdDisplay(voCollEpisodeDetails); } }
@Override protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { if (form.getGlobalContext().Emergency.getAttendanceHistoryDialogIsNotNull() && form.getGlobalContext().Emergency.getAttendanceHistoryDialogParamsIsNotNull()) { AttendanceHistoryDialogParamsVo voSetting = form.getGlobalContext().Emergency.getAttendanceHistoryDialogParams(); EmergencyEpisodeShortVoCollection voCollEpisodeDetails = null; if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.SCHEDULED)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, AttendanceHistoryDialog.SCHEDULED, voSetting.getScheduledDate(), null); } if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.UNSCHEDULED)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, AttendanceHistoryDialog.UNSCHEDULED, voSetting.getScheduledDate(), voSetting.getScheduledDate()); } if (form.getGlobalContext().Emergency.getAttendanceHistoryDialog().equals(AttendanceHistoryDialog.HISTORY)) { voCollEpisodeDetails = domain.listEmergencyEpisodeByPatient( voSetting.getPatientRefVo(), 0, null, null, null); } populateGrdDisplay(voCollEpisodeDetails); } }