private void ButtonReportOrder_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder = this.m_PathologistUI.AccessionOrder;
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);

            if (clientOrderCollection.Count != 0)
            {
                Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(accessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
                accessionOrderPath.Start();
            }
            else
            {
                MessageBox.Show("No Client Order was found.  Please contact Sid.");
            }
        }
Exemplo n.º 2
0
 private void ButtonReportOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_FlowUI.AccessionOrder != null)
     {
         this.Save(false);
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         if (clientOrderCollection.Count != 0)
         {
             Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(this.m_FlowUI.AccessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
             accessionOrderPath.Start();
             this.m_FlowUI.GetAccessionOrder(this.m_FlowUI.PanelSetOrderLeukemiaLymphoma.ReportNo, this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         }
         else
         {
             MessageBox.Show("No Client Order was found.  Please contact IT.");
         }
     }
 }
Exemplo n.º 3
0
        private void ShowReportOrderDialog(string reportNo)
        {
            string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo);

            YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer);
            if (accessionOrder != null)
            {
                YellowstonePathology.Business.Gateway.ClientOrderGateway clientOrderGateway = new Business.Gateway.ClientOrderGateway();
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);
                if (clientOrderCollection.Count == 1)
                {
                    Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(accessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
                    accessionOrderPath.Start();
                }
                else
                {
                    MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
                }
            }
            else
            {
                MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
            }
        }
Exemplo n.º 4
0
 private void ShowReportOrderDialog(string reportNo)
 {
     string masterAccessionNo = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetMasterAccessionNoFromReportNo(reportNo);
     YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(masterAccessionNo, this.m_Writer);
     if (accessionOrder != null)
     {
         YellowstonePathology.Business.Gateway.ClientOrderGateway clientOrderGateway = new Business.Gateway.ClientOrderGateway();
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);
         if (clientOrderCollection.Count == 1)
         {
             Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(accessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
             accessionOrderPath.Start();
         }
         else
         {
             MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
         }
     }
     else
     {
         MessageBox.Show("We are not able to show the Report Order Dialog for ReportNo: " + reportNo);
     }
 }
Exemplo n.º 5
0
 private void ButtonReportOrder_Click(object sender, RoutedEventArgs e)
 {
     if(this.m_FlowUI.AccessionOrder != null)
     {
         this.Save(false);
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         if (clientOrderCollection.Count != 0)
         {
             Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(this.m_FlowUI.AccessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
             accessionOrderPath.Start();
             this.m_FlowUI.GetAccessionOrder(this.m_FlowUI.PanelSetOrderLeukemiaLymphoma.ReportNo, this.m_FlowUI.AccessionOrder.MasterAccessionNo);
         }
         else
         {
             MessageBox.Show("No Client Order was found.  Please contact IT.");
         }
     }
 }
        private void ButtonReportOrder_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder = this.m_PathologistUI.AccessionOrder;
            YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersByMasterAccessionNo(accessionOrder.MasterAccessionNo);

            if (clientOrderCollection.Count != 0)
            {
                Login.Receiving.AccessionOrderPath accessionOrderPath = new Login.Receiving.AccessionOrderPath(accessionOrder, clientOrderCollection[0], PageNavigationModeEnum.Standalone);
                accessionOrderPath.Start();
            }
            else
            {
                MessageBox.Show("No Client Order was found.  Please contact Sid.");
            }
        }