Exemplo n.º 1
0
        private void ButtonSignature_Click(object sender, RoutedEventArgs args)
        {
            if ((Business.User.SystemIdentity.Instance.User.UserId == 5102 || Business.User.SystemIdentity.Instance.User.UserId == 5091) && this.PanelSetOrderSurgical.Final == false) //Dr. Durden only and only if signing
            {
                this.TestSignout();
            }
            else
            {
                if (this.FindNonASCIICharacters().Length == 0)
                {
                    this.CheckPendingStudies(this.PanelSetOrderSurgical.Final);

                    if (this.PanelSetOrderSurgical.Final == false)
                    {
                        PQRSMeasurePath pQRSMeasurePath = new PQRSMeasurePath(this.AccessionOrder, this.PanelSetOrderSurgical);
                        pQRSMeasurePath.HandlePQRS();
                        this.RefreshBillingSpecimenViewCollection();
                    }

                    YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new YellowstonePathology.Business.Rules.ExecutionStatus();
                    YellowstonePathology.Business.Rules.Surgical.PathologistFinalRules rules = new YellowstonePathology.Business.Rules.Surgical.PathologistFinalRules();
                    rules.Execute(this.AccessionOrder, this.PanelSetOrderSurgical, Business.User.SystemIdentity.Instance, executionStatus);

                    if (executionStatus.Halted == true && string.IsNullOrEmpty(executionStatus.ExecutionMessagesString) == false)
                    {
                        MessageBox.Show(executionStatus.ExecutionMessagesString, "Unable to final");
                    }

                    this.m_PathologistUI.SetSignatureButtonProperties();
                    this.NotifyPropertyChanged(string.Empty);
                    this.Save(false);
                }
                else
                {
                    MessageBox.Show("The cancer case summary contains special characters.  These must be removed before signing.");
                }
            }
        }
Exemplo n.º 2
0
        private void ButtonSignature_Click(object sender, RoutedEventArgs args)
        {
            if ((Business.User.SystemIdentity.Instance.User.UserId == 5102 || Business.User.SystemIdentity.Instance.User.UserId == 5091) && this.PanelSetOrderSurgical.Final == false) //Dr. Durden only and only if signing
            {
                this.TestSignout();
            }
            else
            {
                if (this.FindNonASCIICharacters().Length == 0)
                {
                    this.CheckPendingStudies(this.PanelSetOrderSurgical.Final);

                    if (this.PanelSetOrderSurgical.Final == false)
                    {
                        PQRSMeasurePath pQRSMeasurePath = new PQRSMeasurePath(this.AccessionOrder, this.PanelSetOrderSurgical);
                        pQRSMeasurePath.HandlePQRS();
                        this.RefreshBillingSpecimenViewCollection();
                    }

                    YellowstonePathology.Business.Rules.ExecutionStatus executionStatus      = new YellowstonePathology.Business.Rules.ExecutionStatus();
                    YellowstonePathology.Business.Rules.Surgical.PathologistFinalRules rules = new YellowstonePathology.Business.Rules.Surgical.PathologistFinalRules();
                    rules.Execute(this.AccessionOrder, this.PanelSetOrderSurgical, Business.User.SystemIdentity.Instance, executionStatus);

                    if (executionStatus.Halted == true && string.IsNullOrEmpty(executionStatus.ExecutionMessagesString) == false)
                    {
                        MessageBox.Show(executionStatus.ExecutionMessagesString, "Unable to final");
                    }

                    this.m_PathologistUI.SetSignatureButtonProperties();
                    this.NotifyPropertyChanged(string.Empty);
                    this.Save(false);
                }
                else
                {
                    MessageBox.Show("The cancer case summary contains special characters.  These must be removed before signing.");
                }
            }
        }