Exemple #1
0
 private void ResendPantherOrder(YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem, YellowstonePathology.Business.HL7View.Panther.PantherAssay pantherAssay)
 {
     YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherOrderListItem.MasterAccessionNo, this);
     YellowstonePathology.Business.Persistence.DocumentGateway.Instance.ReleaseLock(accessionOrder, this);
     if (accessionOrder.SpecimenOrderCollection.HasThinPrepFluidSpecimen() == true)
     {
         YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = accessionOrder.SpecimenOrderCollection.GetThinPrep();
         if (specimenOrder.AliquotOrderCollection.HasPantherAliquot() == true)
         {
             YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = specimenOrder.AliquotOrderCollection.GetPantherAliquot();
             YellowstonePathology.Business.Test.PanelSetOrder           panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pantherOrderListItem.ReportNo);
             YellowstonePathology.Business.HL7View.Panther.PantherOrder pantherOrder  = new Business.HL7View.Panther.PantherOrder(pantherAssay, specimenOrder, aliquotOrder, accessionOrder, panelSetOrder, YellowstonePathology.Business.HL7View.Panther.PantherActionCode.NewSample);
             pantherOrder.Send();
             //MessageBox.Show("An order has been sent to the Panther.");
         }
         else
         {
             MessageBox.Show("No Panther aliquot found.");
         }
     }
     else
     {
         MessageBox.Show("No Thin Prep Fluid Specimen Found.");
     }
 }
 private void DrawLine(int x, int y, YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem, System.Drawing.Printing.PrintPageEventArgs e)
 {
     e.Graphics.DrawString(pantherOrderListItem.MasterAccessionNo, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x, y));
     e.Graphics.DrawString(pantherOrderListItem.OrderTime.ToString("MM/dd/yyy HH:mm"), new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 150, y));
     e.Graphics.DrawString(pantherOrderListItem.PLastName, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 350, y));
     e.Graphics.DrawString(pantherOrderListItem.PFirstName, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 500, y));
 }
        private void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            int count = 1;
            int x     = 50;
            int y     = 50;

            this.DrawHeader(x, y, e);
            y = y + 50;

            for (int i = 0; i < 30; i++)
            {
                YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem = this.m_PantherOrderListItemQueue.Dequeue();
                this.DrawLine(x, y, pantherOrderListItem, e);
                y      = y + 30;
                count += 1;
                if (this.m_PantherOrderListItemQueue.Count == 0)
                {
                    break;
                }
            }

            if (this.m_PantherOrderListItemQueue.Count == 0)
            {
                e.HasMorePages = false;
            }
            else
            {
                e.HasMorePages = true;
            }
        }
        private void ButtonShowHPV1618Result_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewPantherHPV1618Orders.SelectedItem != null)
            {
                YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem = (YellowstonePathology.Business.Test.PantherOrderListItem) this.ListViewPantherHPV1618Orders.SelectedItem;
                YellowstonePathology.Business.Test.AccessionOrder       accessionOrder       = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherOrderListItem.MasterAccessionNo, this);

                this.m_LoginPageWindow = new Login.Receiving.LoginPageWindow();
                this.m_LoginPageWindow.Show();

                Business.Test.PanelSetOrder panelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(pantherOrderListItem.ReportNo);
                if (panelSetOrder.PanelSetId == 62)
                {
                    YellowstonePathology.UI.Test.HPV1618ResultPath hpv1618ResultPath = new Test.HPV1618ResultPath(pantherOrderListItem.ReportNo, accessionOrder, this.m_LoginPageWindow.PageNavigator, this);
                    hpv1618ResultPath.Finish += HPV1618ResultPath_Finish;
                    hpv1618ResultPath.Start();
                }
                else if (panelSetOrder.PanelSetId == 269)
                {
                    YellowstonePathology.UI.Test.HPV1618SolidTumorResultPath hpv1618SolidTumorPath = new Test.HPV1618SolidTumorResultPath(pantherOrderListItem.ReportNo, accessionOrder, this.m_LoginPageWindow.PageNavigator, this);
                    hpv1618SolidTumorPath.Finish += Hpv1618SolidTumorPath_Finish;
                    hpv1618SolidTumorPath.Start();
                }
            }
        }
Exemple #5
0
        private void ButtonShowNGCTResult_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewPantherNGCTOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem = (YellowstonePathology.Business.Test.PantherOrderListItem) this.ListViewPantherNGCTOrders.SelectedItem;

                this.m_LoginPageWindow = new Login.LoginPageWindow();
                YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherOrderListItem.MasterAccessionNo, this.m_LoginPageWindow);
                this.m_LoginPageWindow.Show();

                YellowstonePathology.UI.Test.NGCTResultPath ngctResultPath = new Test.NGCTResultPath(pantherOrderListItem.ReportNo, accessionOrder, this.m_LoginPageWindow.PageNavigator, this.m_LoginPageWindow);
                ngctResultPath.Finish += NGCTResultPath_Finish;
                ngctResultPath.Start();
            }
        }
Exemple #6
0
        private void ButtonShowWHPResult_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewWHPOrders.SelectedItem != null)
            {
                YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem = (YellowstonePathology.Business.Test.PantherOrderListItem) this.ListViewWHPOrders.SelectedItem;

                this.m_LoginPageWindow = new Login.LoginPageWindow();
                YellowstonePathology.Business.Test.AccessionOrder           accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherOrderListItem.MasterAccessionNo, this.m_LoginPageWindow);
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder    = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrderByClientOrderId(accessionOrder.ClientOrderId, this.m_LoginPageWindow);
                this.m_LoginPageWindow.Show();

                Login.WomensHealthProfilePath womensHealthProfilePath = new Login.WomensHealthProfilePath(accessionOrder, clientOrder, this.m_LoginPageWindow.PageNavigator, this, Visibility.Hidden);
                womensHealthProfilePath.Finish += WHPResultPath_Finish;
                womensHealthProfilePath.Start();
            }
        }