private void populateSearchCriteriaScreenFromData(SurgicalAuditTheatreWorklistSearchCriteriaVo criteria) { clearScreen(); if (criteria == null) return; form.cmbType().setValue(criteria.getIdType()); form.txtType().setValue(criteria.getIdValue()); form.txtSurname().setValue(criteria.getSurname()); form.txtForename().setValue(criteria.getForename()); form.cmbTheatre().setValue(criteria.getTheatre()); form.cmbStatus().setValue(criteria.getStatus()); form.dteFrom().setValue(criteria.getDateFrom()); form.dteTo().setValue(criteria.getDateTo()); }
private SurgicalAuditTheatreWorklistSearchCriteriaVo populateSearchCriteriaFromScreen() { SurgicalAuditTheatreWorklistSearchCriteriaVo criteria = new SurgicalAuditTheatreWorklistSearchCriteriaVo(); criteria.setIdType(form.cmbType().getValue()); criteria.setIdValue(form.txtType().getValue()); criteria.setSurname(form.txtSurname().getValue()); criteria.setForename(form.txtForename().getValue()); criteria.setTheatre(form.cmbTheatre().getValue()); criteria.setStatus(form.cmbStatus().getValue()); criteria.setDateFrom(form.dteFrom().getValue()); criteria.setDateTo(form.dteTo().getValue()); return criteria; }