private void listReferralNotes() { ReferralNoteVoCollection voColl = domain.listReferralNote(form.getGlobalContext().Core.getCurrentCareContext()); form.grdNotes().getRows().clear(); for(int i = 0 ; voColl != null && i < voColl.size() ; i++) { //WDEV-8323 if (voColl.get(i) != null && voColl.get(i).getNoteIsNotNull() && (voColl.get(i).getNoteTypeIsNotNull() && !voColl.get(i).getNoteType().equals(ReferralNoteType.CLINICAL))) { addNotesRow(voColl.get(i)); } } manageNotesMenu(); }
public ReferralNoteVoCollection listReferralNote(CareContextRefVo voCareContextRef) { DomainFactory factory = getDomainFactory(); if (voCareContextRef != null && voCareContextRef.getID_CareContextIsNotNull()) { java.util.List list = factory.find("select note from CorrespondenceNote note left join note.careContext as cc where cc.id = :idCC", new String[]{"idCC"}, new Object[]{voCareContextRef.getID_CareContext()}); return ReferralNoteVoAssembler.createReferralNoteVoCollectionFromCorrespondenceNote(list).sort(); } return null; }