private void populateRecordBrowser(HandRangeOfMovementVoCollection voCollHandRangeOfMovements) { if (voCollHandRangeOfMovements == null) return; form.recbrHandRangeOfMovements().clear(); for (int i = 0; i < voCollHandRangeOfMovements.size(); i++) { if (form.getGlobalContext().Core.getCurrentClinicalContact() != null && voCollHandRangeOfMovements.get(i).getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact())) { form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i)), null, Color.Green); form.recbrHandRangeOfMovements().setValue(voCollHandRangeOfMovements.get(i)); selectHandRangeOfMovement(); } else { form.recbrHandRangeOfMovements().newRow(voCollHandRangeOfMovements.get(i), buildBrowserLine(voCollHandRangeOfMovements.get(i))); } } if (form.recbrHandRangeOfMovements().size() > 0) selectHandRangeOfMovement(); }
public HandRangeOfMovementVo getHandRangeOfMovementByClinicalContact(ClinicalContactRefVo voRefClinicalContact) { DomainFactory factory = getDomainFactory(); String hql; hql = " from HandRangeOfMovement m where m.clinicalContact.id = " + voRefClinicalContact.getID_ClinicalContact(); HandRangeOfMovementVoCollection voCollHandRangeOfMovements = HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql)); if (voCollHandRangeOfMovements.size() == 1) return voCollHandRangeOfMovements.get(0); else return null; }
public ims.therapies.vo.HandRangeOfMovementVoCollection listHandRangeOfMovementsForCareContext(ims.core.admin.vo.CareContextRefVo voRefCareContact) { DomainFactory factory = getDomainFactory(); String hql = " from HandRangeOfMovement h where h.clinicalContact.careContext.id = " + voRefCareContact.getID_CareContext(); return HandRangeOfMovementVoAssembler.createHandRangeOfMovementVoCollectionFromHandRangeOfMovement(factory.find(hql)); }