private void setSearchCriteria(CorrespondenceSearchCriteriaVo currentCorrespondanceSearchCriteria) { if (currentCorrespondanceSearchCriteria.getAuthoringHCP() != null) { form.qmbAuthoringHCP().newRow(currentCorrespondanceSearchCriteria.getAuthoringHCP(), currentCorrespondanceSearchCriteria.getAuthoringHCP().getName().toString()); form.qmbAuthoringHCP().setValue(currentCorrespondanceSearchCriteria.getAuthoringHCP()); } else form.qmbAuthoringHCP().clear(); //WDEV-19389 if (currentCorrespondanceSearchCriteria.getResponsibleHCP() != null) { form.qmbResponsibleHCP().newRow(currentCorrespondanceSearchCriteria.getResponsibleHCP(), currentCorrespondanceSearchCriteria.getResponsibleHCP().getName().toString()); form.qmbResponsibleHCP().setValue(currentCorrespondanceSearchCriteria.getResponsibleHCP()); } else form.qmbResponsibleHCP().clear(); //WDEV-19389 form.dteFrom().setValue(currentCorrespondanceSearchCriteria.getDateFrom()); form.dteTo().setValue(currentCorrespondanceSearchCriteria.getDateTo()); form.cmbCorrespondanceType().setValue(currentCorrespondanceSearchCriteria.getCorrespondanceType()); form.cmbStatus().setValue(currentCorrespondanceSearchCriteria.getCorrespondanceStatus()); }
private CorrespondenceSearchCriteriaVo createSearchCriteria() { CorrespondenceSearchCriteriaVo searchVo = new CorrespondenceSearchCriteriaVo(); searchVo.setAuthoringHCP(form.qmbAuthoringHCP().getValue()); searchVo.setCorrespondanceStatus(form.cmbStatus().getValue()); searchVo.setCorrespondanceType(form.cmbCorrespondanceType().getValue()); searchVo.setDateFrom(form.dteFrom().getValue()); searchVo.setDateTo(form.dteTo().getValue()); searchVo.setResponsibleHCP(form.qmbResponsibleHCP().getValue()); return searchVo; }