private void populateSearchControls(AttendanceNotesSearchCriteriaVo attendanceNotesSearchCriteria) { clearSearchControls(); if (attendanceNotesSearchCriteria==null) { return; } form.cmbDiscipline().setValue(attendanceNotesSearchCriteria.getDiscipline()); form.cmbNoteType().setValue(attendanceNotesSearchCriteria.getNoteType()); form.cmbSpecialty().setValue(attendanceNotesSearchCriteria.getSpecialty()); form.GroupRadioFilter().setValue(Boolean.TRUE.equals(attendanceNotesSearchCriteria.getLatestFirst()) ? GroupRadioFilterEnumeration.rdoLatestFirst :GroupRadioFilterEnumeration.rdoOldestFirst); }
private AttendanceNotesSearchCriteriaVo populateSearchCriteriaFromScreen() { AttendanceNotesSearchCriteriaVo searchCriteriaVo=new AttendanceNotesSearchCriteriaVo(); searchCriteriaVo.setDiscipline(form.cmbDiscipline().getValue()); searchCriteriaVo.setSpecialty(form.cmbSpecialty().getValue()); searchCriteriaVo.setNoteType(form.cmbNoteType().getValue()); searchCriteriaVo.setLatestFirst(GroupRadioFilterEnumeration.rdoLatestFirst.equals(form.GroupRadioFilter().getValue()) ? Boolean.TRUE: Boolean.FALSE); return searchCriteriaVo; }