예제 #1
0
        private void SlideOptionsPage_CombineNextSlide(object sender, CustomEventArgs.SlideOrderReturnEventArgs eventArgs)
        {
            bool thisTestWasFound = false;

            foreach (Business.Test.PanelOrder panelOrder in this.m_PanelSetOrder.PanelOrderCollection)
            {
                foreach (Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
                {
                    if (thisTestWasFound == true)
                    {
                        if (testOrder.TestId == eventArgs.SlideOrder.TestId)
                        {
                            if (eventArgs.SlideOrder.Combined == false)
                            {
                                eventArgs.SlideOrder.Combined = true;
                                eventArgs.SlideOrder.Label   += '/' + testOrder.AliquotOrder.Label;
                                break;
                            }
                        }
                    }
                    else
                    {
                        if (testOrder.TestOrderId == eventArgs.SlideOrder.TestOrderId)
                        {
                            thisTestWasFound = true;
                        }
                    }
                }
            }
            this.m_PageNavigator.Navigate(this);
        }
예제 #2
0
        private void SlideOptionsPage_PrintPaperLabel(object sender, CustomEventArgs.SlideOrderReturnEventArgs eventArgs)
        {
            Business.HL7View.VentanaStainOrder ventanaStainOrder = new Business.HL7View.VentanaStainOrder();
            ventanaStainOrder.HandleOrder(this.m_AccessionOrder, eventArgs.SlideOrder);

            this.PrintPaperLabel(eventArgs.SlideOrder);
            this.m_PageNavigator.Navigate(this);
        }
예제 #3
0
        private void SlideOptionsPage_Uncombine(object sender, CustomEventArgs.SlideOrderReturnEventArgs eventArgs)
        {
            eventArgs.SlideOrder.Combined = false;
            int positionOfSlash = eventArgs.SlideOrder.Label.IndexOf("/");

            if (positionOfSlash > 0)
            {
                eventArgs.SlideOrder.Label = eventArgs.SlideOrder.Label.Substring(0, positionOfSlash);
                this.m_PageNavigator.Navigate(this);
            }
        }
예제 #4
0
 private void SlideOptionsPage_DeleteSlideOrder(object sender, CustomEventArgs.SlideOrderReturnEventArgs eventArgs)
 {
     YellowstonePathology.Business.Visitor.RemoveSlideOrderVisitor removeSlideOrderVisitor = new Business.Visitor.RemoveSlideOrderVisitor(eventArgs.SlideOrder);
     this.m_AccessionOrder.TakeATrip(removeSlideOrderVisitor);
     this.m_PageNavigator.Navigate(this);
 }
예제 #5
0
 private void SlideOptionsPage_PrintSlide(object sender, CustomEventArgs.SlideOrderReturnEventArgs eventArgs)
 {
     this.PrintSlide(eventArgs.SlideOrder);
     this.m_PageNavigator.Navigate(this);
 }