private void fillAssistantsGrid(SurgeryDetailsVo sdVo) { for(int i = 0 ; sdVo.getAssistantsIsNotNull() && i < sdVo.getAssistants().size() ; i ++) { if (sdVo.getAssistants().get(i).getAssistant() != null) { grdAssistantRow row = form.lyrSurgeryDetails().tabProc().grdAssistant().getRows().newRow(); row.getColAssistant().newRow(sdVo.getAssistants().get(i).getAssistant(), sdVo.getAssistants().get(i).getAssistant().getName().toString()); row.getColAssistant().setValue(sdVo.getAssistants().get(i).getAssistant()); row.getColAssistant().setEditedText(sdVo.getAssistants().get(i).getAssistant().getName().toString()); row.setColGrade(sdVo.getAssistants().get(i).getAssistantGrade()); row.setValue(sdVo.getAssistants().get(i)); row.setBackColor((form.lyrSurgeryDetails().tabProc().grdAssistant().getRows().size() % 2) == 0 ? Color.Beige : Color.Default); } } }
private void open(SurgeryDetailsVo voSelected) { clearScreen(); updateContextMenus(); form.getLocalContext().setSelectedSurgeryDetails(null); SurgeryDetailsListVoCollection voColl = domain.listSurgeryDetails(form.getGlobalContext().Core.getEpisodeofCareShort()); fillBrowser(voColl, voSelected != null ? voSelected.getID_SurgeryDetails() : null); form.btnEdit().setVisible(false); browseRecord(); //wdev-11473 //form.lyrSurgeryDetails().showtabGenDet(); }
private void fillSubProceduresGrid(SurgeryDetailsVo sdVo) { for(int i = 0 ; sdVo.getSubProceduresIsNotNull() && i < sdVo.getSubProcedures().size() ; i ++) { grdSubProceduresRow row = form.lyrSurgeryDetails().tabGenDet().grdSubProcedures().getRows().newRow(); row.setcolProcedure(sdVo.getSubProcedures().get(i).getSubProcedureDescription()); row.setValue(sdVo.getSubProcedures().get(i)); row.setBackColor((form.lyrSurgeryDetails().tabGenDet().grdSubProcedures().getRows().size() % 2) == 0 ? Color.Beige : Color.Default); } }
private void newInstance() { clearScreen(); form.getLocalContext().setSelectedSurgeryDetails(new SurgeryDetailsVo());// WDEV-15244 form.setMode(FormMode.EDIT);// WDEV-15244 // Set the EpisodeOfCare, CareContext and so on form.getLocalContext().getSelectedSurgeryDetails().setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort()); form.getLocalContext().getSelectedSurgeryDetails().setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); form.lyrSurgeryDetails().tabGenDet().customControlAuthoringInfo().initializeComponent(); form.lyrSurgeryDetails().tabGenDet().Group1().setValue(Group1Enumeration.rdoSpecialtyHotlist); form.lyrSurgeryDetails().showtabGenDet(); //WDEV-11682 updateContextMenus(); if (form.getLocalContext().getPreOpPossumUserAssessment() != null) { PatientAssessmentVo paVoPre = populatePatientAssessmentFromUserAssessmentShort(form.getLocalContext().getPreOpPossumUserAssessment()); //WDEV-11366 form.lyrSurgeryDetails().tabPreOpPossum().customControlPreOpP().setPatientAssessment(paVoPre, false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); } if (form.getLocalContext().getOperativePossumUserAssessment() != null) { PatientAssessmentVo paVoPost = populatePatientAssessmentFromUserAssessmentShort(form.getLocalContext().getOperativePossumUserAssessment()); //WDEV-11366 form.lyrSurgeryDetails().tabOperativePossum().customControlOperativePossum().setPatientAssessment(paVoPost, false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); } }