private String[] getUIErrors(VSTypeCollection recordedSigns) { ArrayList<String> errors = new ArrayList<String>(); errors = getScreenDataErrors(errors); if (recordedSigns.size() == 0) { errors.add("No Vital Signs values entered"); } if (errors.size() > 0) { String[] err = new String[errors.size()]; errors.toArray(err); return err; } return null; }
private void populateGroupingGrid(VSTypeCollection collection) { form.grdVSESelect().getRows().clear(); for (int j = 0; j < collection.size(); j++) { GenForm.grdVSESelectRow row = form.grdVSESelect().getRows().newRow(); row.setColVSElement(collection.get(j).getText()); row.setValue(collection.get(j)); } }
VSTypeCollection loadLookups() { VSTypeCollection coll = LookupHelper.getVSType(domain.getLookupService()); return coll; }
private void setInstanceDetails(VitalSignMonitoringGroupVo vitalSignMonitoringGroupVo) { clearInstanceControls(); if (vitalSignMonitoringGroupVo == null) return; if (form.getLocalContext().getVitalSignsGrouping() != null) vitalSignMonitoringGroupVo = form.getLocalContext().getVitalSignsGrouping(); else { vitalSignMonitoringGroupVo = domain.getVitalSignMonitoringGroupVo(vitalSignMonitoringGroupVo); form.getLocalContext().setVitalSignsGrouping(vitalSignMonitoringGroupVo); } form.txtName().setValue(vitalSignMonitoringGroupVo.getGroupName()); if (vitalSignMonitoringGroupVo.getIsActive() != null) form.chkActive().setValue(vitalSignMonitoringGroupVo.getIsActive().booleanValue()); if (vitalSignMonitoringGroupVo.getVitalsSigns() != null) { grdVSESelectRow row; VSType item; VSTypeCollection coll = loadLookups(); if (coll != null) { for (int i = 0; i < coll.size(); i++) { item = coll.get(i); row = form.grdVSESelect().getRows().newRow(); row.setColVSElement(item.getText()); row.setValue(item); for (int z = 0; z < vitalSignMonitoringGroupVo.getVitalsSigns().size(); z++) { if (item.getID() == vitalSignMonitoringGroupVo.getVitalsSigns().get(z).getID()) { row.setColSelect(true); break; } } } } } updateContextMenu(); }