Ejemplo n.º 1
0
        private void BillingPage_ShowPatientDetailPage(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.m_AccessionOrder.SvhMedicalRecord) == false)
            {
                YellowstonePathology.Business.Patient.Model.SVHBillingDataCollection svhBillingDataCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetSVHBillingDataCollection(this.m_AccessionOrder.SvhMedicalRecord);
                if (svhBillingDataCollection.Count > 0)
                {
                    YellowstonePathology.Business.Patient.Model.SVHBillingData svhBillingDate    = svhBillingDataCollection.GetMostRecent();
                    YellowstonePathology.UI.Billing.PatientDetailPage          patientDetailPage = new PatientDetailPage(svhBillingDate);
                    patientDetailPage.Back += new Billing.PatientDetailPage.BackEventHandler(PatientDetailPage_Back);
                    patientDetailPage.Next += new Billing.PatientDetailPage.NextEventHandler(PatientDetailPage_Next);

                    if (this.m_BillingWindowPrimary.PageNavigator.HasDualMonitors() == false)
                    {
                        this.m_BillingWindowSecondary = new BillingWindowSecondary();
                        this.m_BillingWindowSecondary.Show();
                    }
                    this.m_BillingWindowSecondary.PageNavigator.Navigate(patientDetailPage);
                }
                else
                {
                    System.Windows.MessageBox.Show("No additional data to show.");
                }
            }
            else
            {
                System.Windows.MessageBox.Show("The Medical Record Number is blank. No additional data to show.");
            }
        }
Ejemplo n.º 2
0
        private void BillingPage_ShowPatientDetailPage(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.m_AccessionOrder.SvhMedicalRecord) == false)
            {
                YellowstonePathology.Business.Patient.Model.SVHBillingDataCollection svhBillingDataCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetSVHBillingDataCollection(this.m_AccessionOrder.SvhMedicalRecord);
                if (svhBillingDataCollection.Count > 0)
                {
                    YellowstonePathology.Business.Patient.Model.SVHBillingData svhBillingDate = svhBillingDataCollection.GetMostRecent();
                    YellowstonePathology.UI.Billing.PatientDetailPage patientDetailPage = new PatientDetailPage(svhBillingDate);
                    patientDetailPage.Back += new Billing.PatientDetailPage.BackEventHandler(PatientDetailPage_Back);
                    patientDetailPage.Next += new Billing.PatientDetailPage.NextEventHandler(PatientDetailPage_Next);

                    if (this.m_BillingWindowPrimary.PageNavigator.HasDualMonitors() == false)
                    {
                        //this.m_BillingWindowSecondary = new BillingWindowSecondary();
                        this.m_BillingWindowSecondary.Show();
                    }
                    this.m_BillingWindowSecondary.PageNavigator.Navigate(patientDetailPage);
                }
                else
                {
                    System.Windows.MessageBox.Show("No additional data to show.");
                }
            }
            else
            {
                System.Windows.MessageBox.Show("The Medical Record Number is blank. No additional data to show.");
            }
        }