private void populateRecordBrowser(CareContextShortVo currentCareContext) { form.recbrSurgAudit().clear(); SurgicalAuditOperationDetailVoCollection collSurgAudit = domain.listSurgicalAuditOperationDetailByCareContext(currentCareContext); for (int i = 0; i < collSurgAudit.size(); i++) { SurgicalAuditOperationDetailVo surgAudit = collSurgAudit.get(i); addRowToRecordBrowser(surgAudit); } if (form.getLocalContext().getselectedSurgicalAuditOpDetailIsNotNull()) { form.recbrSurgAudit().setValue(form.getLocalContext().getselectedSurgicalAuditOpDetail()); } form.getLocalContext().setselectedSurgicalAuditOpDetail(form.recbrSurgAudit().getValue()); }
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef) { if (careContextRef == null || careContextRef.getID_CareContext() == null) { throw new CodingRuntimeException("Cannot get SurgicalAuditOperationDetailVoCollection on null Id for CareContext "); } DomainFactory factory = getDomainFactory(); StringBuffer hql = new StringBuffer(); hql.append("select surgAudit from SurgicalAuditOperationDetail as surgAudit where surgAudit.careContext.id = :careContextID order by surgAudit.systemInformation.creationDateTime desc "); List<?> list = factory.find(hql.toString(), new String[] { "careContextID" }, new Object[] { careContextRef.getID_CareContext() }); return SurgicalAuditOperationDetailVoAssembler.createSurgicalAuditOperationDetailVoCollectionFromSurgicalAuditOperationDetail(list); }
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef) { IESurgicalAuditHelper impl = (IESurgicalAuditHelper)getDomainImpl(SurgicalAuditHelper.class); return impl.listSurgicalAuditOperationDetailByCareContext(careContextRef); }
public SurgicalAuditOperationDetailVoCollection listSurgicalAuditOperationDetailByCareContext(CareContextRefVo careContextRef);