private boolean isValidSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getInvestigationListSearchCriteria(); if (searchCriteria == null) return false; if(searchCriteria.getTextIsNotNull()) return true; if (searchCriteria.getInvestigationCodeIsNotNull()) return true; if (searchCriteria.getCategoryIsNotNull()) return true; if (searchCriteria.getDisciplineIsNotNull()) return true; if (searchCriteria.getStatusIsNotNull()) return true; return false; }
private boolean isValidSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getProfileListSearchCriteria(); if(searchCriteria == null) return false; if(searchCriteria.getTextIsNotNull()) return true; if(searchCriteria.getCategoryIsNotNull()) return true; if(searchCriteria.getDisciplineIsNotNull()) return true; if(searchCriteria.getStatusIsNotNull()) return true; return false; }
private void restoreSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getInvestigationListSearchCriteria(); if (searchCriteria == null) return; form.txtname().setValue(searchCriteria.getText()); form.txtCode().setValue(searchCriteria.getInvestigationCode()); form.cmbCategory().setValue(searchCriteria.getCategory()); loadDiscipline(form.cmbCategory().getValue()); form.cmbDiscipline().setValue(searchCriteria.getDiscipline()); form.cmbStatus().setValue(searchCriteria.getStatus()); }
private void buildSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = new InvestigationProfileListSearchCriteriaVo(); searchCriteria.setCategory(form.cmbCategory().getValue()); searchCriteria.setDiscipline(form.cmbDiscipline().getValue()); searchCriteria.setStatus(form.cmbStatus().getValue()); searchCriteria.setInvestigationCode(form.txtCode().getValue()); searchCriteria.setText(form.txtname().getValue()); form.getGlobalContext().OCRR.setInvestigationListSearchCriteria(searchCriteria); }
private void search() { form.grdTests().getRows().clear(); InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getInvestigationListSearchCriteria(); if (searchCriteria == null) return; if (!isValidSearchCriteria()) { engine.showMessage("Please Enter Some Search Criteria"); form.getGlobalContext().OCRR.setInvestigationListSearchCriteria(null); return; } InvestigationIndexShortVoCollection coll = null; if(form.txtCode().getValue()!=null) coll = domain.listInvestigationIndex(form.txtname().getValue(), form.txtCode().getValue(), form.cmbDiscipline().getValue(), form.cmbCategory().getValue(), form.cmbStatus().getValue(), Boolean.FALSE); else coll = domain.listInvestigationIndex(form.txtname().getValue(), form.cmbDiscipline().getValue(), form.cmbCategory().getValue(), form.cmbStatus().getValue(), Boolean.FALSE); form.grdTests().getRows().clear(); if (coll == null) { engine.showMessage("There are no Records for the Search Criteria Provided"); return; } if (coll.size() == 0) { engine.showMessage("There are no Records for the Search Criteria Provided"); return; } populateScreenFromData(coll); changeContextMenuStatus(); }
private void restoreSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getProfileListSearchCriteria(); if(searchCriteria == null) return; form.cmbCategory().setValue(searchCriteria.getCategory()); form.cmbDiscipline().setValue(searchCriteria.getDiscipline()); form.cmbStatus().setValue(searchCriteria.getStatus()); }
private void buildSearchCriteria() { InvestigationProfileListSearchCriteriaVo searchCriteria = new InvestigationProfileListSearchCriteriaVo(); searchCriteria.setCategory(form.cmbCategory().getValue()); searchCriteria.setDiscipline(form.cmbDiscipline().getValue()); searchCriteria.setStatus(form.cmbStatus().getValue()); searchCriteria.setText(form.txtname().getValue()); form.getGlobalContext().OCRR.setProfileListSearchCriteria(searchCriteria); }
private void search() { form.grdProfiles().getRows().clear(); InvestigationProfileListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getProfileListSearchCriteria(); if(searchCriteria == null) return; if(!isValidSearchCriteria()) { engine.showMessage("Please Enter Some Search Criteria"); form.getGlobalContext().OCRR.setProfileListSearchCriteria(null); return; } InvestigationIndexShortVoCollection coll = domain.listInvestigationIndex(form.txtname().getValue(), form.cmbDiscipline().getValue(), form.cmbCategory().getValue(), form.cmbStatus().getValue(), Boolean.TRUE); form.grdProfiles().getRows().clear(); if(coll == null) { engine.showMessage("There are no Records for the Search Criteria Provided"); return; } if(coll.size() == 0) { engine.showMessage("There are no Records for the Search Criteria Provided"); return; } populateScreenFromData(coll); changeContextMenuStatus(); }