protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { form.grdCareContextHistory().getRows().clear(); CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory(); if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0) { CareContextHistVoCollection tempColl = tempVo.getCareContextHistory(); tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING)); for(int i = 0;i < tempColl.size();i++) { CareContextHistVo voHist = tempColl.get(i); if(voHist != null) populateChildGrid(voHist); } } }
public CareContextSmallVo getCareContextWithHistory(CareContextRefVo refVo) { if (refVo == null) return null; DomainFactory factory = getDomainFactory(); return CareContextSmallVoAssembler.create((CareContext) factory.getDomainObject(CareContext.class, refVo.getID_CareContext())); }
public CareContextSmallVo getCareContextWithHistory(CareContextRefVo refVo) { if(refVo == null) return null; DomainFactory factory = getDomainFactory(); return CareContextSmallVoAssembler.create((CareContext)factory.getDomainObject(CareContext.class, refVo.getID_CareContext())); }