예제 #1
0
        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);
            }
        }
예제 #2
0
        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();
                    }
                }
            }
        }
예제 #3
0
        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);
            }
        }