/** * Show detail for specified list item. * * @param li The list item. */ protected void showDetail(Listitem li) { @SuppressWarnings("unchecked") T value = li == null ? null : (T) li.getValue(); String detail = value == null ? null : getDetail(value); detailView.setValue(detail); if (!getShowDetailPane() && detail != null) { ReportBox.modal(detail, detailTitle, getAllowPrint()); } }
public void onClick$lstAllergies() { Listitem item = lstAllergies.getSelectedItem(); if (item != null) { lstAllergies.clearSelection(); String s = item.getValue(); List<String> lst = broker.callRPCList("RGCWARCV DETAIL", null, patientId, StrUtil.piece(s, U)); ReportBox.modal(lst, code2Text('A'), allowPrint); } }
public void onClick$lstNotes() { Listitem item = lstNotes.getSelectedItem(); if (item != null) { lstNotes.clearSelection(); String s = item.getValue(); char c = StrUtil.piece(s, StrUtil.U, 2).charAt(0); List<String> lst = null; String patientId = PatientContext.getActivePatient().getId().getIdPart(); switch (c) { case 'A': lst = broker.callRPCList("RGCWCACV DETAIL", null, patientId); break; case 'F': lst = broker.callRPCList("RGCWCACV PRF", null, patientId, StrUtil.piece(s, StrUtil.U)); break; default: lst = broker.callRPCList("TIU GET RECORD TEXT", null, StrUtil.piece(s, StrUtil.U)); break; } if (lst != null && !lst.isEmpty()) { ReportBox.modal(lst, code2Text(c), allowPrint); } } }