private void open() { clearControls(); GaitReEducationVoCollection voGaitColl = null; form.getLocalContext().setUpdateCurrentRecord(new Boolean(false)); form.setMode(FormMode.VIEW); form.gridGait().getRows().clear(); prePopulateGaitGrd(); if(form.getGlobalContext().Core.getCurrentCareContextIsNotNull()) voGaitColl = domain.listGaitReeducation(form.getGlobalContext().Core.getCurrentCareContext()); if(voGaitColl != null) { populateGaitGrd(voGaitColl); isRecordCurrent(); } disableButtonsForRecord(); updateContextMenu(); }
private void populateGaitGrd(GaitReEducationVoCollection voGaitColl) { GaitReEducationGaitAspectCollection aspColl = null; for(int i =0; i<voGaitColl.size(); i++) { GaitReEducationVo voGait = voGaitColl.get(i); GenForm.gridGaitRow pRow = form.gridGait().getRows().newRow(); //fix WDEV-2255 if (voGait.getAuthoringDateTimeIsNotNull()) pRow.setColDate(voGait.getAuthoringDateTime().toString()); if (voGait.getAuthoringCPIsNotNull()) pRow.setColHCP(voGait.getAuthoringCP().toString()); if(voGait.getDetailsIsNotNull()) pRow.setColDetails(voGait.getDetails()); //display children if(voGait.getGaitAspect() != null) { aspColl = voGait.getGaitAspect(); String gait = ""; for(int z=0; z<aspColl.size(); z++) { //fix WDEV-2255 GaitReEducationGaitAspect aspect = aspColl.get(z); gait+=aspect.toString()+"\n"; } pRow.setColGait(gait); } pRow.setValue(voGait); } }
/** * WDEV-13648 * List Gait Re-education records for a certain Care Context */ public GaitReEducationVoCollection listGaitReeducation(CareContextRefVo careContext) { String hql = "from GaitReEducation gr where gr.clinicalContact.careContext.id = :RCC"; return GaitReEducationVoAssembler.createGaitReEducationVoCollectionFromGaitReEducation(getDomainFactory().find(hql, "RCC", careContext.getID_CareContext())); }
/** * WDEV-13648 * List Gait Re-education records for a certain clinical contact */ public GaitReEducationVoCollection listGaitReEducation(ClinicalContactRefVo voClinicalContact) { String query = "from GaitReEducation gr where gr.clinicalContact.id = :RCC"; return GaitReEducationVoAssembler.createGaitReEducationVoCollectionFromGaitReEducation(getDomainFactory().find(query, "RCC", voClinicalContact.getID_ClinicalContact())); }