private void populateInstance(CareContextShortVo voCareContext) { clearDetails(); MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext); populateParentGrid(voCollMRSA); for(int i=0;i<form.grdMRSAAssChild().getRows().size(); i++) form.grdMRSAAssChild().getRows().get(i).setSelectable(false); }
private void populateScreeningCombo(MRSAAssessmentVoCollection voCollMRSA) { if (voCollMRSA == null) { form.btnUpdate().setVisible(false); return; } for (int i = 0; i < voCollMRSA.size(); i++) { String strDisplay = voCollMRSA.get(i).getDateScreening().toString(); if (voCollMRSA.get(i).getHcpInitiated() != null) { strDisplay += " - "; strDisplay += voCollMRSA.get(i).getHcpInitiated().toString(); } form.cmbScreeningRecords().newRow(voCollMRSA.get(i), strDisplay); } //set the combo to hold the latest record. if(voCollMRSA.size()>0 && form.cmbScreeningRecords().getValues() != null) { form.cmbScreeningRecords().setValue((MRSAAssessmentVo) form.cmbScreeningRecords().getValues().get(0)); } try { onCmbScreeningRecordsValueChanged(); } catch (PresentationLogicException e) { } }
private void populateInstance(CareContextShortVo voCareContext) { form.cmbScreeningRecords().clear(); clearScreen(); MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext); populateScreeningCombo(voCollMRSA); }
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo careContext) { if (careContext == null || careContext.getID_CareContext() == null) return null; ArrayList<String> paramNames = new ArrayList<String>(); ArrayList<Object> paramValues = new ArrayList<Object>(); String query = "from MRSAAssessment mrsa where mrsa.class = MRSAAssessment and mrsa.careContext.id = :RCC"; paramNames.add("RCC"); paramValues.add(careContext.getID_CareContext()); return MRSAAssessmentVoAssembler.createMRSAAssessmentVoCollectionFromMRSAAssessment(getDomainFactory().find(query, paramNames, paramValues)).sort(SortOrder.DESCENDING); }
private void populateInstance(CareContextShortVo voCareContext) { MRSAAssessmentVoCollection voCollMRSA = domain.listMRSA(voCareContext); populateGrid(voCollMRSA); form.grdAssessment().expandAll(); }
public MRSAAssessmentVoCollection listMRSA(CareContextRefVo voCurrentCareContext) { MRSAAssessment impl = (MRSAAssessment)getDomainImpl(MRSAAssessmentImpl.class); return impl.listMRSA(voCurrentCareContext); }