private PatientDocumentSearchListVoCollection listPatientDocumentsAndDisplayNoResultError() { PatientDocumentSearchListVoCollection patDocs = domain.listPatientDocuments( form.getGlobalContext().Core.getPatientShort(),form.cmbEpisodes().getValue(), form.cmbSpecialty().getValue(), form.ccMos().getValue() == null ? null : (MemberOfStaffRefVo) form.ccMos().getValue(), form.dteFrom().getValue(), form.dteTo().getValue(), form.cmbDocType().getValue(), form.cmbDocStatus().getValue()); form.getLocalContext().setDocumentsCollection(patDocs); if (patDocs == null || patDocs.size() == 0) { engine.showMessage("No documents matching your search criteria were found !", "No results",MessageButtons.OK, MessageIcon.INFORMATION); return null; } return patDocs; }
private PatientDocumentSearchListVoCollection listPatientDocumentsAndDisplayNoResultError() { PatientDocumentSearchListVoCollection patDocs = domain.listPatientDocuments( form.getGlobalContext().Core.getPatientShort(),form.cmbEpisodes().getValue(), form.cmbSpecialty().getValue(), form.ccMos().getValue() instanceof HcpRefVo ? (HcpRefVo) form.ccMos().getValue() : null, form.dteFrom().getValue(), form.dteTo().getValue(), form.cmbDocType().getValue(), form.ccResponsibleHcp().getValue() instanceof HcpRefVo ? (HcpRefVo) form.ccResponsibleHcp().getValue() : null,GroupDateEnumeration.rdoGenerated.equals(form.GroupDate().getValue())?true:null); if (patDocs == null || patDocs.size() == 0) { engine.showMessage("No documents matching your search criteria were found !", "No results",MessageButtons.OK, MessageIcon.INFORMATION); return null; } return patDocs; }
private PatientDocumentSearchListVoCollection listPatientDocumentsAndDisplayNoResultError() { PatientDocumentSearchListVoCollection patDocs = domain.listPatientDocuments( form.getGlobalContext().Core.getPatientShort(),form.cmbEpisodes().getValue(), form.cmbSpecialty().getValue(), form.ccMos().getValue() == null ? null : (MemberOfStaffRefVo) form.ccMos().getValue(), form.dteFrom().getValue(), form.dteTo().getValue(), form.cmbDocType().getValue(), form.cmbDocStatus().getValue()); form.getLocalContext().setDocumentsCollection(patDocs); if (patDocs == null || patDocs.size() == 0) { form.grdDetails().getRows().clear(); form.getLocalContext().setSelectedDocument(null); engine.showMessage("No documents matching your search criteria were found !", "No results",MessageButtons.OK, MessageIcon.INFORMATION); return null; } return patDocs; }
private void populatePatientDocumentsGrid(PatientDocumentSearchListVoCollection listPatientDocuments) { if(listPatientDocuments == null) return; listPatientDocuments.sort(form.getLocalContext().getDateSortOrder()); form.grdDetails().getRows().clear(); for (int i = 0 ; i < listPatientDocuments.size() ; i++) { newPatDocRow(listPatientDocuments.get(i)); } }
private void populatePatientDocumentsGrid(PatientDocumentSearchListVoCollection listPatientDocuments) { form.grdDetails().getRows().clear(); if(listPatientDocuments == null) return; for (int i = 0 ; i < listPatientDocuments.size() ; i++) { newPatDocRow(listPatientDocuments.get(i)); } }
@Override protected void onGrdDetailsGridHeaderClicked(int column) throws PresentationLogicException { PatientDocumentSearchListVo back = form.grdDetails().getValue(); PatientDocumentSearchListVoCollection values = form.grdDetails().getValues(); form.grdDetails().getRows().clear(); switch (column) { case GENERATED_DATE_COLUMN: form.getLocalContext().setGeneratedDateSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getGeneratedDateSortOrder())? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new PatientDocGeneratedDateComparator(form.getLocalContext().getGeneratedDateSortOrder())); break; //WDEV-13534 case AUTHORING_HCP_COLUMN: form.getLocalContext().setAuthoringSortOrder(SortOrder.ASCENDING.equals(form.getLocalContext().getAuthoringSortOrder()) ? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getAuthoringSortOrder())); break; default: break; } populatePatientDocumentsGrid(values); form.grdDetails().setValue(back); }
private void populatePatientDocumentsGrid(PatientDocumentSearchListVoCollection listPatientDocuments) { form.grdDetails().getRows().clear(); if(listPatientDocuments == null) return; for (int i = 0 ; i < listPatientDocuments.size() ; i++) { newPatDocRow(listPatientDocuments.get(i)); } form.grdDetails().setValue(getRowValueFromGrid(form.getLocalContext().getSelectedDocument())); onGrdDetailsSelectionChanged(); }
private void sortColumn(int column) { PatientDocumentSearchListVo back = form.grdDetails().getValue(); PatientDocumentSearchListVoCollection values = form.grdDetails().getValues(); form.grdDetails().getRows().clear(); switch (column) { case EVENT_DATE_COLUMN: form.getLocalContext().setSortOrderEventDate(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderEventDate()) ? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new EventDateComparator(form.getLocalContext().getSortOrderEventDate())); addColumnSortToSearchCriteriaGC(EVENT_DATE_COLUMN, form.getLocalContext().getSortOrderEventDate()); break; case GENERATED_DATE_COLUMN: form.getLocalContext().setSortOrderGeneratedDate(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderGeneratedDate())? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new PatientDocGeneratedDateComparator(form.getLocalContext().getSortOrderGeneratedDate())); addColumnSortToSearchCriteriaGC(GENERATED_DATE_COLUMN, form.getLocalContext().getSortOrderGeneratedDate()); break; case SPECIALTY_COLUMN: form.getLocalContext().setSortOrderSpecialty(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderSpecialty())? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new SpecialtyComparator(form.getLocalContext().getSortOrderSpecialty())); addColumnSortToSearchCriteriaGC(SPECIALTY_COLUMN, form.getLocalContext().getSortOrderSpecialty()); break; //WDEV-13534 case AUTHORING_HCP_COLUMN: form.getLocalContext().setSortOrderAuthoring(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderAuthoring()) ? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new PatientDocAuthoringComparator(form.getLocalContext().getSortOrderAuthoring())); addColumnSortToSearchCriteriaGC(AUTHORING_HCP_COLUMN, form.getLocalContext().getSortOrderAuthoring()); break; case DOCUMENT_TYPE_COLUMN: form.getLocalContext().setSortOrderType(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderType())? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new DocumentTypeComparator(form.getLocalContext().getSortOrderGeneratedDate())); addColumnSortToSearchCriteriaGC(DOCUMENT_TYPE_COLUMN, form.getLocalContext().getSortOrderType()); break; case SOURCE_COLUMN: form.getLocalContext().setSortOrderSource(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderSource())? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new SourceComparator(form.getLocalContext().getSortOrderSource())); addColumnSortToSearchCriteriaGC(SOURCE_COLUMN, form.getLocalContext().getSortOrderSource()); break; //WDEV-18815 case DOC_NAME_COLUMN: form.getLocalContext().setSortOrderDocName(SortOrder.ASCENDING.equals(form.getLocalContext().getSortOrderDocName()) ? SortOrder.DESCENDING : SortOrder.ASCENDING); values.sort(new DocumentNameComparator(form.getLocalContext().getSortOrderDocName())); addColumnSortToSearchCriteriaGC(DOC_NAME_COLUMN, form.getLocalContext().getSortOrderDocName()); break; default: break; } populatePatientDocumentsGrid(values); form.grdDetails().setValue(back); }