private void populateGridControl(PatientEWSVoCollection voColl) { for (int i = 0; voColl != null && i < voColl.size(); i++) { PatientEWSVo voPatEWS= voColl.get(i); grdEWSRow row = form.grdEWS().getRows().newRow(); row.setValue(voPatEWS); StringBuffer sb = new StringBuffer(); sb.append(voPatEWS.getSysInfoIsNotNull() ? voPatEWS.getSysInfo().getCreationUser().toString() : ""); sb.append(" "); sb.append(voPatEWS.getSysInfoIsNotNull() ? voPatEWS.getSysInfo().getCreationDateTime().toString() : ""); row.setColAuthoringInfo(sb.toString()); row.setColScore(voPatEWS.getSECSScore()); row.setColDetails(voPatEWS.getScoreDetails()); row.setTooltip(voPatEWS.getScoreDetails()); row.setColAssess(form.getImages().Core.Text); // row.setColAssess(voPatEWS.getPatientAssessmentIsNotNull() ? voPatEWS.getPatientAssessment() : null); } }
private void doSearch() { clearGrid(); PatientEWSVoCollection voColl = domain.listPatientEWS(form.getGlobalContext().Core.getCurrentCareContext()); if (voColl == null || voColl.size() == 0) engine.showMessage("No records found for the Search Criteria Provided"); populateGridControl(voColl); }