private void TestSignout() { MainWindow.MoveKeyboardFocusNextThenBack(); if (this.PanelSetOrderSurgical.Final == false) { YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.PanelSetOrderSurgical.IsOkToFinalize(this.m_PathologistUI.AccessionOrder); if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.Failure) { PathologistSignoutPath pathologistSignoutPath = new PathologistSignoutPath(this.m_PathologistUI.AccessionOrder, this.PanelSetOrderSurgical); pathologistSignoutPath.Start(); this.RefreshBillingSpecimenViewCollection(); auditResult = pathologistSignoutPath.IsPathologistSignoutAuditSuccessful(); } if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.OK) { this.PanelSetOrderSurgical.Finalize(); if (this.PanelSetOrderSurgical.Accepted == false) { this.PanelSetOrderSurgical.Accept(); } } this.m_PathologistUI.SetSignatureButtonProperties(); this.NotifyPropertyChanged(string.Empty); this.Save(false); } }
private void Signout() { MainWindow.MoveKeyboardFocusNextThenBack(); if (this.PanelSetOrderSurgical.Final == false) { YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.PanelSetOrderSurgical.IsOkToFinalize(this.m_PathologistUI.AccessionOrder); if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.Failure || auditResult.Status == Business.Audit.Model.AuditStatusEnum.Warning) { PathologistSignoutPath pathologistSignoutPath = new PathologistSignoutPath(this.m_PathologistUI.AccessionOrder, this.PanelSetOrderSurgical); pathologistSignoutPath.Start(); this.RefreshBillingSpecimenViewCollection(); auditResult = pathologistSignoutPath.IsPathologistSignoutAuditSuccessful(); } if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.OK) { this.PanelSetOrderSurgical.Finish(this.m_PathologistUI.AccessionOrder); if (this.PanelSetOrderSurgical.Accepted == false) { this.PanelSetOrderSurgical.Accept(); } } } }
private void TestSignout() { MainWindow.MoveKeyboardFocusNextThenBack(); if (this.PanelSetOrderSurgical.Final == false) { YellowstonePathology.Business.Audit.Model.AuditResult auditResult = this.PanelSetOrderSurgical.IsOkToFinalize(this.m_PathologistUI.AccessionOrder); if(auditResult.Status == Business.Audit.Model.AuditStatusEnum.Failure) { PathologistSignoutPath pathologistSignoutPath = new PathologistSignoutPath(this.m_PathologistUI.AccessionOrder, this.PanelSetOrderSurgical); pathologistSignoutPath.Start(); this.RefreshBillingSpecimenViewCollection(); auditResult = pathologistSignoutPath.IsPathologistSignoutAuditSuccessful(); } if (auditResult.Status == Business.Audit.Model.AuditStatusEnum.OK) { this.PanelSetOrderSurgical.Finalize(); if (this.PanelSetOrderSurgical.Accepted == false) { this.PanelSetOrderSurgical.Accept(); } } this.m_PathologistUI.SetSignatureButtonProperties(); this.NotifyPropertyChanged(string.Empty); this.Save(false); } }