@Override protected void onBtnEditClick() throws PresentationLogicException { Object hcpUser = domain.getHcpLiteUser(); if (!(hcpUser instanceof HcpLiteVo)) { engine.showMessage("The current user is not an HCP!"); return; } // Check SOE on EDIT if (form.getLocalContext().getcurrentSurgicalAuditOpDetail()!=null && form.getLocalContext().getcurrentSurgicalAuditOpDetail().getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(form.getLocalContext().getcurrentSurgicalAuditOpDetail())) { form.getLocalContext().setcurrentSurgicalAuditOpDetail(domain.getSurgicalAuditOperationDetail(form.getLocalContext().getcurrentSurgicalAuditOpDetail())); populateScreenFromData(form.getLocalContext().getcurrentSurgicalAuditOpDetail().getRecovery()); } form.getLocalContext().setselectedEvent(SurgicalAuditRecoveryEvent.EDIT); form.fireCustomControlValueChanged(); form.setMode(FormMode.EDIT); }
@Override protected void onCcRecoveryValueChanged() throws ims.framework.exceptions.PresentationLogicException { if (SurgicalAuditRecoveryEvent.SAVE.equals(form.lyrSurgAudit().tabRecovery().ccRecovery().getSelectedEvent()) || SurgicalAuditRecoveryEvent.CANCEL.equals(form.lyrSurgAudit().tabRecovery().ccRecovery().getSelectedEvent())) { form.lyrSurgAudit().tabRecovery().ccRecovery().resetSelectedEvent(); open(); return; } else if (SurgicalAuditRecoveryEvent.EDIT.equals(form.lyrSurgAudit().tabRecovery().ccRecovery().getSelectedEvent())) { populateRecordBrowser(form.getGlobalContext().Core.getCurrentCareContext()); form.lyrSurgAudit().tabRecovery().ccRecovery().resetSelectedEvent(); } FormMode recoveryMode = form.lyrSurgAudit().tabRecovery().ccRecovery().getMode(); form.setMode(recoveryMode); }
@Override protected void onBtnSaveClick() throws PresentationLogicException { if (save()) { form.getLocalContext().setselectedEvent(SurgicalAuditRecoveryEvent.SAVE); form.fireCustomControlValueChanged(); } }
public ims.clinical.vo.enums.SurgicalAuditRecoveryEvent getSelectedEvent() { return form.getLocalContext().getselectedEvent(); }
@Override protected void onBtnCancelClick() throws PresentationLogicException { form.getLocalContext().setselectedEvent(SurgicalAuditRecoveryEvent.CANCEL); form.fireCustomControlValueChanged(); }