private void populateScreenFromData(SurgicalOperationNotesGeneralDetailsVo songd) { clear(); if (songd== null) return; populateProcedureGridFromData(songd.getProceduresPerformed()); populateDiagnosisGridFromData(songd.getPatientDiagnoses()); if (songd.getMainProcedureIsNotNull() && !Boolean.TRUE.equals(songd.getMainProcedure().getIsRIE())) //wdev-15914 { form.grdProcedures().getRowByValue(songd.getMainProcedure()).setColumnPrimary(true); } form.ccConsultantAnaesthetist().setValue(songd.getConsultantAnaesthetist()); //wdev-13658 form.ccPrincipalAnaesthetist().setValue(songd.getPrincipalAnaesthetist()); //wdev-13658 form.cmbAnaestheticGiven().setValue(songd.getAnaestheticGiven()); //wdev-13658 form.dteEstimatedDateOfDischarge().setValue(songd.getEstimatedDateOfDischarge()); //wdev-13658 }
@Override protected void onContextMenuItemClick(int menuItemID, ims.framework.Control sender) throws ims.framework.exceptions.PresentationLogicException { switch (menuItemID) { case GenForm.ContextMenus.ClinicalNamespace.EDischargeDiagnosisEtcDiagnosisMenu.NEW_DIAGNOSIS: newInstanceDiag(); break; case GenForm.ContextMenus.ClinicalNamespace.EDischargeDiagnosisEtcDiagnosisMenu.EDIT_DIAGNOSIS: updateInstance(); break; case GenForm.ContextMenus.ClinicalNamespace.EDischargeDiagnosisEtcDiagnosisMenu.VIEW_DIAGNOSIS: viewInstance(); break; case GenForm.ContextMenus.Procedure.ADD: newProcedure(); break; case GenForm.ContextMenus.Procedure.UPDATE: form.setMode(FormMode.EDIT); break; case GenForm.ContextMenus.Procedure.RIE: //wdev-15914 //wdev-16077 SurgicalOperationNotesGeneralDetailsVo tempVo = domain.getSurgicalOpNotesGeneralDetails(form.getGlobalContext().Core.getCurrentCareContext()); if( tempVo != null) { if( tempVo.getProceduresPerformedIsNotNull() && tempVo.getProceduresPerformed().size() < 2) { engine.showErrors(new String[]{ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()}); open(); return; } } //------------- markAsRie(form.grdProcedures().getValue()); break; case GenForm.ContextMenus.GenericGrid.Add: newAssistant(); break; case GenForm.ContextMenus.GenericGrid.Remove: form.grdAssistants().removeSelectedRow(); default: break; } updateControlsState(); }