public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            YellowstonePathology.UI.MainWindow mainWindow = Application.Current.MainWindow as YellowstonePathology.UI.MainWindow;
            UserControl userControl = null;

            if (((TabItem)mainWindow.TabControlLeftWorkspace.SelectedItem).Content.GetType().Name == "CytologyWorkspace")
            {
                userControl = mainWindow.CytologyWorkspace.CytologyResultsWorkspace;
            }
            else if (((TabItem)mainWindow.TabControlLeftWorkspace.SelectedItem).Content.GetType().Name == "PathologistWorkspace")
            {
                //userControl = mainWindow.PathologistWorkspace.PathologistWorkspaceUI.CytologyResultsWorkspace;
                userControl = mainWindow.PathologistWorkspace.CytologyResultsWorkspace;
            }

            if (item != null)
            {
                YellowstonePathology.Business.Test.PanelOrder panelOrder = (YellowstonePathology.Business.Test.PanelOrder)item;
                switch (panelOrder.PanelId)
                {
                case 39:
                    return(userControl.FindResource("AcidWashPanelOrderDataTemplate") as DataTemplate);

                case 38:
                    YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology cytologyPanelOrder = (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)panelOrder;
                    if (cytologyPanelOrder.ScreeningType.ToUpper() == "DOT REVIEW")
                    {
                        return(userControl.FindResource("CytologyDotReviewDataTemplate") as DataTemplate);
                    }
                    return(userControl.FindResource("CytologyPanelOrderDataTemplate") as DataTemplate);
                }
            }
            return(userControl.FindResource("CytologyPanelOrderDataTemplate") as DataTemplate);
        }
Пример #2
0
        public CuttingPage(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder,
                           YellowstonePathology.Business.Test.Model.TestOrder testOrder,
                           YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                           YellowstonePathology.Business.Label.Model.HistologySlidePaperLabelPrinter histologySlidePaperLabelPrinter,
                           YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_AliquotOrder   = aliquotOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_TestOrder      = testOrder;
            this.m_PageNavigator  = pageNavigator;
            this.m_HistologySlidePaperLabelPrinter = histologySlidePaperLabelPrinter;

            this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByAliquotOrderId(this.m_AliquotOrder.AliquotOrderId);
            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestOrderId(this.m_TestOrder.TestOrderId);
            this.m_PanelOrder    = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelOrderByTestOrderId(this.m_TestOrder.TestOrderId);

            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ListBoxSlidesMouseDownTimer          = new System.Windows.Threading.DispatcherTimer();
            this.m_ListBoxSlidesMouseDownTimer.Interval = new TimeSpan(0, 0, 0, 0, 750);
            this.m_ListBoxSlidesMouseDownTimer.Tick    += new EventHandler(ListBoxSlidesMouseDownTimer_Tick);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            InitializeComponent();
            DataContext = this;

            this.Loaded   += new RoutedEventHandler(CuttingPage_Loaded);
            this.Unloaded += new RoutedEventHandler(CuttingPage_Unloaded);
        }
Пример #3
0
 private void HandlePanelOrder()
 {
     if (this.m_Test.NeedsAcknowledgement == true && this.m_AcknowledgeOnOrder == false)
     {
         YellowstonePathology.Business.Panel.Model.SpecialStainPanel specialStainPanel = new YellowstonePathology.Business.Panel.Model.SpecialStainPanel();
         string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
         this.m_PanelOrder         = new Test.PanelOrder(this.m_ReportNo, objectId, objectId, specialStainPanel, this.m_SystemIdentity.User.UserId, this.m_SystemIdentity.User.Initials);
         this.m_PanelOrder.Comment = this.m_PanelOrderComment;
         this.m_PanelSetOrder.PanelOrderCollection.Add(this.m_PanelOrder);
     }
     else
     {
         if (this.m_PanelSetOrder.PanelOrderCollection.HasInitialPanel() == true)
         {
             this.m_PanelOrder = this.m_PanelSetOrder.PanelOrderCollection.GetInitialPanel();
         }
         else
         {
             YellowstonePathology.Business.Panel.Model.InitialPanel initialPanel = new YellowstonePathology.Business.Panel.Model.InitialPanel();
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             this.m_PanelOrder = new Test.PanelOrder(this.m_ReportNo, objectId, objectId, initialPanel, this.m_SystemIdentity.User.UserId, this.m_SystemIdentity.User.Initials);
             this.m_PanelSetOrder.PanelOrderCollection.Add(this.m_PanelOrder);
         }
     }
 }
Пример #4
0
 public virtual void AcceptResults(YellowstonePathology.Business.Test.HPV1618.PanelSetOrderHPV1618 panelSetOrder,
                                   YellowstonePathology.Business.User.SystemIdentity systemIdentity)
 {
     YellowstonePathology.Business.Test.PanelOrder panelOrder = panelSetOrder.PanelOrderCollection.GetUnacceptedPanelOrder();
     panelOrder.AcceptResults();
     panelSetOrder.Accept();
 }
Пример #5
0
        public CuttingPage(YellowstonePathology.Business.Test.AliquotOrder aliquotOrder,
            YellowstonePathology.Business.Test.Model.TestOrder testOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Label.Model.HistologySlidePaperLabelPrinter histologySlidePaperLabelPrinter,
            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_AliquotOrder = aliquotOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_TestOrder = testOrder;
            this.m_PageNavigator = pageNavigator;
            this.m_HistologySlidePaperLabelPrinter = histologySlidePaperLabelPrinter;

            this.m_SpecimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByAliquotOrderId(this.m_AliquotOrder.AliquotOrderId);
            this.m_PanelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestOrderId(this.m_TestOrder.TestOrderId);
            this.m_PanelOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelOrderByTestOrderId(this.m_TestOrder.TestOrderId);

            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_ListBoxSlidesMouseDownTimer = new System.Windows.Threading.DispatcherTimer();
            this.m_ListBoxSlidesMouseDownTimer.Interval = new TimeSpan(0, 0, 0, 0, 750);
            this.m_ListBoxSlidesMouseDownTimer.Tick += new EventHandler(ListBoxSlidesMouseDownTimer_Tick);

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;

            InitializeComponent();
            DataContext = this;

            this.m_PageTimeoutTimer = new System.Windows.Threading.DispatcherTimer();
            this.m_PageTimeoutTimer.Interval = TimeSpan.FromMinutes(15);
            this.m_PageTimeoutTimer.Tick += new EventHandler(PageTimeoutTimer_Tick);
            this.m_PageTimeoutTimer.Start();

            this.Loaded += new RoutedEventHandler(CuttingPage_Loaded);
            this.Unloaded += new RoutedEventHandler(CuttingPage_Unloaded);
        }
 public static void UnacceptResults(HER2AmplificationByISHTestOrder testOrder)
 {
     testOrder.Unaccept();
     if (testOrder.PanelOrderCollection.GetAcceptedPanelCount() > 0)
     {
         YellowstonePathology.Business.Test.PanelOrder panelOrder = testOrder.PanelOrderCollection.GetLastAcceptedPanelOrder();
         panelOrder.UnacceptResults();
     }
 }
 public static void AcceptResults(HER2AmplificationByISHTestOrder testOrder, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
 {
     testOrder.Accept();
     if (testOrder.PanelOrderCollection.GetUnacceptedPanelCount() > 0)
     {
         YellowstonePathology.Business.Test.PanelOrder panelOrder = testOrder.PanelOrderCollection.GetUnacceptedPanelOrder();
         panelOrder.AcceptResults();
     }
 }
Пример #8
0
 public static void AcceptResults(PanelSetOrder testOrder)
 {
     testOrder.Accept();
     if (testOrder.PanelOrderCollection.GetUnacceptedPanelCount() > 0)
     {
         YellowstonePathology.Business.Test.PanelOrder panelOrder = testOrder.PanelOrderCollection.GetUnacceptedPanelOrder();
         panelOrder.AcceptResults();
     }
 }
Пример #9
0
 public void LoadPanelOrderInCorrectPanelSetOrder(YellowstonePathology.Business.Test.PanelOrder panelOrder)
 {
     foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in this)
     {
         if (panelSetOrder.ReportNo == panelOrder.ReportNo)
         {
             panelSetOrder.PanelOrderCollection.Add(panelOrder);
         }
     }
 }
Пример #10
0
 public void Execute(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus, Test.AccessionOrder accessionOrder, Test.PanelOrder panelOrder,
                     YellowstonePathology.Business.User.SystemUser orderingUser, YellowstonePathology.Business.User.SystemUser acceptingUser)
 {
     this.m_AccessionOrder          = accessionOrder;
     this.m_PanelSetOrder           = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelOrder.ReportNo);
     this.m_PanelOrderBeingAccepted = this.m_PanelSetOrder.PanelOrderCollection.GetByPanelOrderId(panelOrder.PanelOrderId);
     this.m_ExecutionStatus         = executionStatus;
     this.m_OrderingUser            = orderingUser;
     this.m_AcceptingUser           = acceptingUser;
     this.m_Rule.Execute(executionStatus);
 }
Пример #11
0
        public void Execute(YellowstonePathology.Business.Rules.ExecutionStatus executionStatus, Test.AccessionOrder accessionOrder, Test.PanelOrder panelOrder,
			YellowstonePathology.Business.User.SystemUser orderingUser, YellowstonePathology.Business.User.SystemUser acceptingUser)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_PanelSetOrder = accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelOrder.ReportNo);
            this.m_PanelOrderBeingAccepted = this.m_PanelSetOrder.PanelOrderCollection.GetByPanelOrderId(panelOrder.PanelOrderId);
            this.m_ExecutionStatus = executionStatus;
            this.m_OrderingUser = orderingUser;
            this.m_AcceptingUser = acceptingUser;
            this.m_Rule.Execute(executionStatus);
        }
Пример #12
0
 public PanelOrder GetPanelByPanelId(int panelId)
 {
     YellowstonePathology.Business.Test.PanelOrder panelOrder = null;
     foreach (YellowstonePathology.Business.Test.PanelOrder poi in this)
     {
         if (poi.PanelId == panelId)
         {
             panelOrder = poi;
         }
     }
     return(panelOrder);
 }
Пример #13
0
        public RemoveTestOrderAuditVisitor(YellowstonePathology.Business.Test.Model.TestOrder testOrder, YellowstonePathology.Business.Test.PanelOrder panelOrder)
            : base(true, true)
        {
            this.m_TestOrder  = testOrder;
            this.m_PanelOrder = panelOrder;

            this.m_TestOrderLeftSideIsRemoved  = true;
            this.m_TestOrderRightSideIsRemoved = true;
            this.m_PanelOrderIsRemoved         = true;
            this.m_StainResultIsRemoved        = true;
            this.m_ICIsRemoved = true;
        }
        public RemoveTestOrderAuditVisitor(YellowstonePathology.Business.Test.Model.TestOrder testOrder, YellowstonePathology.Business.Test.PanelOrder panelOrder)
            : base(true, true)
        {
            this.m_TestOrder = testOrder;
            this.m_PanelOrder = panelOrder;

            this.m_TestOrderLeftSideIsRemoved = true;
            this.m_TestOrderRightSideIsRemoved = true;
            this.m_PanelOrderIsRemoved = true;
            this.m_StainResultIsRemoved = true;
            this.m_ICIsRemoved = true;
        }
Пример #15
0
 public YellowstonePathology.Business.Test.PanelOrder GetUnacknowledgedPanelOrder()
 {
     YellowstonePathology.Business.Test.PanelOrder result = null;
     foreach (PanelOrder panelOrder in this)
     {
         if (panelOrder.Acknowledged == false)
         {
             result = panelOrder;
             break;
         }
     }
     return(result);
 }
Пример #16
0
 public PanelOrder GetInitialPanel()
 {
     YellowstonePathology.Business.Test.PanelOrder result = null;
     foreach (PanelOrder panelOrder in this)
     {
         if (panelOrder.PanelId == 54)
         {
             result = panelOrder;
             break;
         }
     }
     return(result);
 }
        public override FinalizeTestResult Finish(Business.Test.AccessionOrder accessionOrder)
        {
            YellowstonePathology.Business.Test.PanelOrder panelOrder = this.PanelOrderCollection.GetPanelByPanelId(62);
            if (panelOrder.Accepted == false)
            {
                panelOrder.Accepted     = true;
                panelOrder.AcceptedById = 5001;
                panelOrder.AcceptedDate = DateTime.Today;
                panelOrder.AcceptedTime = DateTime.Now;
            }

            return(base.Finish(accessionOrder));
        }
Пример #18
0
        public override void Finalize()
        {
            YellowstonePathology.Business.Test.PanelOrder panelOrder = this.PanelOrderCollection.GetPanelByPanelId(62);
            if (panelOrder.Accepted == false)
            {
                panelOrder.Accepted     = true;
                panelOrder.AcceptedById = 5001;
                panelOrder.AcceptedDate = DateTime.Today;
                panelOrder.AcceptedTime = DateTime.Now;
            }

            base.Finalize();
        }
Пример #19
0
 private void HyperLinkUnacceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResult.IsOkToUnaccept(this.m_PanelSetOrder);
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.PanelOrder panelOrder = this.m_PanelSetOrder.PanelOrderCollection.GetLastAcceptedPanelOrder();
         YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection resultCollection = YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection.GetAll();
         YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResult           result           = resultCollection.GetResult(this.m_PanelSetOrder.ResultCode, this.m_PanelSetOrder.Indication);
         result.UnacceptResults(this.m_PanelSetOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
Пример #20
0
 public override void Visit(Test.PanelSetOrder panelSetOrder)
 {
     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrder.PanelOrderCollection)
     {
         if (panelOrder.TestOrderCollection.Exists(this.m_TestOrderId) == true)
         {
             this.m_PanelOrder = panelOrder;
             this.m_PanelOrder.TestOrderCollection.Remove(this.m_TestOrderId);
             if (this.m_PanelOrder.TestOrderCollection.Count == 0)
             {
                 panelSetOrder.PanelOrderCollection.Remove(this.m_PanelOrder);
             }
             break;
         }
     }
 }
Пример #21
0
 public YellowstonePathology.Business.Test.PanelOrder GetPanelOrder(string panelOrderId)
 {
     YellowstonePathology.Business.Test.PanelOrder result = null;
     foreach (YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder in this)
     {
         foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrder.PanelOrderCollection)
         {
             if (panelOrder.PanelOrderId == panelOrderId)
             {
                 result = panelOrder;
                 break;
             }
         }
     }
     return(result);
 }
Пример #22
0
 public override void SetStatus(PanelSetOrderCollection panelSetOrderCollection)
 {
     if (panelSetOrderCollection.HasTestBeenOrdered(this.m_Test.TestId) == false)
     {
         this.m_Ordered       = false;
         this.m_StatusMessage = "Not Ordered";
     }
     else
     {
         YellowstonePathology.Business.Test.Model.TestOrder testOrder  = panelSetOrderCollection.GetTestOrderByTestId(this.m_Test.TestId);
         YellowstonePathology.Business.Test.PanelOrder      panelOrder = panelSetOrderCollection.GetPanelOrderByTestOrderId(testOrder.TestOrderId);
         this.m_Ordered       = true;
         this.m_OrderDate     = panelOrder.OrderTime;
         this.m_StatusMessage = "Test has been ordered";
     }
 }
Пример #23
0
 public override void Visit(Test.PanelSetOrder panelSetOrder)
 {
     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrder.PanelOrderCollection)
     {
         if (panelOrder.TestOrderCollection.Exists(this.m_TestOrderId) == true)
         {
             this.m_PanelOrder = panelOrder;
             this.m_PanelOrder.TestOrderCollection.Remove(this.m_TestOrderId);
             if (this.m_PanelOrder.TestOrderCollection.Count == 0)
             {
                 panelSetOrder.PanelOrderCollection.Remove(this.m_PanelOrder);
             }
             break;
         }
     }
 }
Пример #24
0
        public YellowstonePathology.Business.Test.PanelOrder GetLastAcceptedPanelOrder()
        {
            DateTime acceptedDate = DateTime.Parse("1/1/1900 12:00");

            YellowstonePathology.Business.Test.PanelOrder result = null;
            foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in this)
            {
                if (panelOrder.Accepted == true)
                {
                    if (panelOrder.AcceptedTime >= acceptedDate)
                    {
                        result = panelOrder;
                    }
                }
            }
            return(result);
        }
Пример #25
0
        public virtual void HandlePanelOrders()
        {
            foreach (YellowstonePathology.Business.Panel.Model.Panel panel in this.m_PanelSet.PanelCollection)
            {
                string panelOrderId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                YellowstonePathology.Business.Test.PanelOrder panelOrder = YellowstonePathology.Business.Test.PanelOrderFactory.GetPanelOrder(this.m_ReportNo, panelOrderId, panelOrderId, panel, YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId);
                this.m_PanelSetOrder.PanelOrderCollection.Add(panelOrder);

                if (panel.AcknowledgeOnOrder == true)
                {
                    panelOrder.Acknowledged     = true;
                    panelOrder.AcknowledgedById = YellowstonePathology.Business.User.SystemIdentity.Instance.User.UserId;
                    panelOrder.AcknowledgedDate = DateTime.Today;
                    panelOrder.AcknowledgedTime = DateTime.Now;
                }

                this.HandleTestOrders(panel, panelOrder);
            }
        }
Пример #26
0
        private void HyperlinkAcceptPeerReview_Click(object sender, RoutedEventArgs e)
        {
            Hyperlink ctrl = (Hyperlink)sender;

            YellowstonePathology.Business.Test.PanelOrder panelOrder = (YellowstonePathology.Business.Test.PanelOrder)ctrl.Tag;

            if (panelOrder.Accepted == true)
            {
                panelOrder.Accepted     = false;
                panelOrder.AcceptedDate = null;
                panelOrder.AcceptedTime = null;
                panelOrder.AcceptedById = 0;
            }
            else
            {
                panelOrder.Accepted     = true;
                panelOrder.AcceptedDate = DateTime.Today;
                panelOrder.AcceptedTime = DateTime.Now;
                panelOrder.AcceptedById = Business.User.SystemIdentity.Instance.User.UserId;
            }
        }
Пример #27
0
 public void SelectAppropriatePanel()
 {
     YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology) this.m_CytologyUI.AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15);
     if (this.m_SystemIdentity.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Pathologist) == true)
     {
         if (panelSetOrderCytology.PanelOrderCollection.HasPathologistReview() == true)
         {
             int index = 0;
             YellowstonePathology.Business.Test.PanelOrder pathologistReviewPanel = panelSetOrderCytology.PanelOrderCollection.GetPathologistReview();
             foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrderCytology.PanelOrderCollection)
             {
                 if (panelOrder.PanelOrderId == pathologistReviewPanel.PanelOrderId)
                 {
                     this.ListBoxResults.SelectedIndex = index;
                 }
                 index += 1;
             }
         }
     }
     else if (this.m_SystemIdentity.User.IsUserInRole(Business.User.SystemUserRoleDescriptionEnum.Cytotech) == true)
     {
         int index = 0;
         YellowstonePathology.Business.Test.PanelOrder cytotechScreeningPanel = panelSetOrderCytology.PanelOrderCollection.GetPrimaryScreening();
         foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrderCytology.PanelOrderCollection)
         {
             if (panelOrder.PanelOrderId == cytotechScreeningPanel.PanelOrderId)
             {
                 this.ListBoxResults.SelectedIndex = index;
             }
             index += 1;
         }
     }
     else
     {
         this.ListBoxResults.SelectedIndex = -1;
     }
 }
Пример #28
0
        public virtual void HandleTestOrders(YellowstonePathology.Business.Panel.Model.Panel panel, YellowstonePathology.Business.Test.PanelOrder panelOrder)
        {
            if (this.m_OrderTarget is YellowstonePathology.Business.Test.AliquotOrder)
            {
                YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = (YellowstonePathology.Business.Test.AliquotOrder) this.m_OrderTarget;
                foreach (YellowstonePathology.Business.Test.Model.Test test in panel.TestCollection)
                {
                    string testOrderObjectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                    YellowstonePathology.Business.Test.Model.TestOrder testOrder = panelOrder.TestOrderCollection.Add(panelOrder.PanelOrderId, testOrderObjectId, aliquotOrder.AliquotOrderId, test, test.OrderComment);

                    aliquotOrder.TestOrderCollection.Add(testOrder);
                    aliquotOrder.SetLabelPrefix(testOrder, true);
                }
            }
            else
            {
                foreach (YellowstonePathology.Business.Test.Model.Test test in panel.TestCollection)
                {
                    string testOrderObjectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
                    YellowstonePathology.Business.Test.Model.TestOrder testOrder = panelOrder.TestOrderCollection.Add(panelOrder.PanelOrderId, testOrderObjectId, null, test, test.OrderComment);
                    panelOrder.TestOrderCollection.Add(testOrder);
                }
            }
        }
Пример #29
0
 private void HandlePanelOrder()
 {
     if (this.m_Test.NeedsAcknowledgement == true && this.m_AcknowledgeOnOrder == false)
     {
         YellowstonePathology.Business.Panel.Model.SpecialStainPanel specialStainPanel = new YellowstonePathology.Business.Panel.Model.SpecialStainPanel();
         string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
         this.m_PanelOrder = new Test.PanelOrder(this.m_ReportNo, objectId, objectId, specialStainPanel, this.m_SystemIdentity.User.UserId);
         this.m_PanelOrder.Comment = this.m_PanelOrderComment;
         this.m_PanelSetOrder.PanelOrderCollection.Add(this.m_PanelOrder);
     }
     else
     {
         if (this.m_PanelSetOrder.PanelOrderCollection.HasInitialPanel() == true)
         {
             this.m_PanelOrder = this.m_PanelSetOrder.PanelOrderCollection.GetInitialPanel();
         }
         else
         {
             YellowstonePathology.Business.Panel.Model.InitialPanel initialPanel = new YellowstonePathology.Business.Panel.Model.InitialPanel();
             string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
             this.m_PanelOrder = new Test.PanelOrder(this.m_ReportNo, objectId, objectId, initialPanel, this.m_SystemIdentity.User.UserId);
             this.m_PanelSetOrder.PanelOrderCollection.Add(this.m_PanelOrder);
         }
     }
 }
Пример #30
0
 public virtual void AcceptResults(YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrder, YellowstonePathology.Business.Test.PanelOrder panelToAccept, YellowstonePathology.Business.User.SystemIdentity systemIdentity)
 {
     panelSetOrder.Accept();
 }
Пример #31
0
 public virtual void Visit(YellowstonePathology.Business.Test.PanelOrder panelOrder)
 {
 }
Пример #32
0
 public void AcceptResults()
 {
     YellowstonePathology.Business.Test.PanelOrder panelOrder = this.PanelOrderCollection.GetUnacceptedPanelOrder();
     panelOrder.AcceptResults();
     this.Accept();
 }
Пример #33
0
 public virtual void UnacceptResults(YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrder)
 {
     YellowstonePathology.Business.Test.PanelOrder acceptedPanelOrder = panelSetOrder.PanelOrderCollection.GetLastAcceptedPanelOrder();
     acceptedPanelOrder.UnacceptResults();
     panelSetOrder.Unaccept();
 }