Example #1
0
 private void OrderATest(YellowstonePathology.Business.PanelSet.Model.PanelSet test)
 {
     if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(test.PanelSetId, this.m_PanelSetOrder.OrderedOnId, true) == false)
     {
         CustomEventArgs.PanelSetReturnEventArgs args = new CustomEventArgs.PanelSetReturnEventArgs(test);
         this.OrderTest(this, args);
     }
     else
     {
         MessageBox.Show("Unable to order a " + test.PanelSetName + " as one already exists.");
     }
 }
Example #2
0
 private void HyperLinkOrderHER2Summary_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest test = new Business.Test.HER2AnalysisSummary.HER2AnalysisSummaryTest();
     if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(test.PanelSetId, this.m_PanelSetOrder.OrderedOnId, true) == false)
     {
         CustomEventArgs.PanelSetReturnEventArgs args = new CustomEventArgs.PanelSetReturnEventArgs(test);
         this.OrderTest(this, args);
     }
     else
     {
         MessageBox.Show("Unable to order a " + test.PanelSetName + " as one already exists");
     }
 }
Example #3
0
        private void ResultPage_OrderTest(object sender, CustomEventArgs.PanelSetReturnEventArgs e)
        {
            YellowstonePathology.Business.Interface.IOrderTarget orderTarget   = this.m_AccessionOrder.SpecimenOrderCollection.GetOrderTarget(this.m_PanelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.TestOrderInfo     testOrderInfo = new YellowstonePathology.Business.Test.TestOrderInfo(e.PanelSet, orderTarget, !e.PanelSet.NeverDistribute);

            YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo);
            this.m_AccessionOrder.TakeATrip(orderTestOrderVisitor);

            if (testOrderInfo.PanelSet.TaskCollection.Count != 0)
            {
                YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = this.m_AccessionOrder.CreateTask(testOrderInfo);
                this.m_AccessionOrder.TaskOrderCollection.Add(taskOrder);
            }

            this.m_PageNavigator.Navigate(this.m_ResultPage);
        }
 private void SuggestedAdditionalTestingPage_OrderTest(object sender, CustomEventArgs.PanelSetReturnEventArgs e)
 {
     this.StartReportOrderPath(e.PanelSet);
 }