public void search() { PracticeSearchCriteriaVo criteria = new PracticeSearchCriteriaVo(); if(form.chkActive().getValue() == true) criteria.setIsActive(new Boolean(form.chkActive().getValue())); criteria.setTaxonomyCode(form.txtCode().getValue()); criteria.setTaxonomyType(form.cmbType().getValue()); criteria.setName(form.txtName().getValue()); criteria.setAddress(form.txtAddress().getValue()); OrganisationWithSitesVoCollection listPractice = domain.listPractice(criteria); populateGridFromData(listPractice); if(listPractice == null || listPractice.size() == 0) { engine.showMessage("No records found matching the search criteria"); } }
protected void onQmbReferringOrgTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException { if (form.lyr().tabReferralDetails().cmbSourceofReferral().getValue() != null && form.lyr().tabReferralDetails().cmbSourceofReferral().getValue().equals(ReferralSource.GPREFERRAL)) { PracticeSearchCriteriaVo voGP = new PracticeSearchCriteriaVo(); voGP.setName(value); voGP.setIsActive(new Boolean(true)); } else { OrganisationVo voOrg = new OrganisationVo(); voOrg.setName(value); } }