public void SetReviewContent()
        {
            object reviewContent  = null;
            object historyContent = null;

            YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll().GetPanelSet(this.PanelSetOrder.PanelSetId);
            if (panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument ||
                panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.RetiredTestDocument)
            {
                reviewContent  = new PublishedDocumentReview(this.m_PathologistUI, this.m_SystemIdentity);
                historyContent = new CommonHistory(this.AccessionOrder);
            }
            else
            {
                switch (this.PanelSetOrder.PanelSetId)
                {
                case 28:                         //Fetal Hemoglobin
                case 29:                         //DNA Content and S-Phase Analysis
                case 56:                         //T-Cell Immunodeficiency Profile
                    reviewContent  = new PublishedDocumentReview(this.m_PathologistUI, this.m_SystemIdentity);
                    historyContent = new CommonHistory(this.AccessionOrder);
                    break;

                case 13:
                case 128:
                    reviewContent  = new SurgicalReview(this.m_TypingShortcutUserControl, this.m_PathologistUI);
                    historyContent = new SurgicalHistory(this.m_PathologistUI);
                    break;

                default:
                    reviewContent  = new ResultPathReview(this.m_PathologistUI, this.m_SystemIdentity);
                    historyContent = new CommonHistory(this.AccessionOrder);
                    break;
                }
            }
            this.ContentControlReview.Content  = reviewContent;
            this.ContentControlHistory.Content = historyContent;
        }
Exemple #2
0
        private void HandleQuestionMarkSearch()
        {
            List <TextBox> questionMarkTextBoxes = new List <TextBox>();

            TabControl tabControl = this.m_PathologistsReview.RightTabControl;

            tabControl.SelectedIndex = tabControl.Items.IndexOf(this.m_PathologistsReview.TabItemReview);
            SurgicalReview surgicalReview = this.m_PathologistsReview.ContentControlReview.Content as SurgicalReview;
            ScrollViewer   scrollViewer   = surgicalReview.MainScrollViewer;

            scrollViewer.ScrollToTop();
            scrollViewer.UpdateLayout();
            this.FindQuestionMarkTextBoxes(scrollViewer, questionMarkTextBoxes);
            TextBox textBox = this.SelectQuestionMarkTextBox(questionMarkTextBoxes);

            if (textBox != null)
            {
                Point a = scrollViewer.TranslatePoint(new Point(), this);
                Point b = textBox.TranslatePoint(new Point(), this);
                Point c = new Point(b.X, b.Y - a.Y - 100);
                scrollViewer.ScrollToVerticalOffset(c.Y);
            }
        }
Exemple #3
0
        private void HistologySlideScanReceived(YellowstonePathology.Business.BarcodeScanning.Barcode barcode)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                   new Action(
                                       delegate()
            {
                if (barcode.IsValidated == true)
                {
                    this.DoSlideOrderIdSearch(barcode.ID);

                    if (this.m_PathologistsReview.ReviewContent is SurgicalReview)
                    {
                        //this.m_PathologistUI.UpdateSlideLocation(barcode.ID);
                        SurgicalReview surgicalReview = (SurgicalReview)this.m_PathologistsReview.ReviewContent;
                        surgicalReview.BillingSpecimenViewCollection.SetSelectedBySlideOrderid(barcode.ID);
                        surgicalReview.SetFocusOnDiagnosis();
                    }
                }
                else
                {
                    MessageBox.Show("The scanner did not read the barcode correctly.  Please try again.");
                }
            }));
        }
 public void SetReviewContent()
 {
     object reviewContent = null;
     object historyContent = null;
     YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAll().GetPanelSet(this.PanelSetOrder.PanelSetId);
     if (panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.PublishedDocument ||
         panelSet.ResultDocumentSource == Business.PanelSet.Model.ResultDocumentSourceEnum.RetiredTestDocument)
     {
         reviewContent = new PublishedDocumentReview(this.m_PathologistUI, this.m_SystemIdentity);
         historyContent = new CommonHistory(this.AccessionOrder);
     }
     else
     {
         switch (this.PanelSetOrder.PanelSetId)
         {
             case 28: //Fetal Hemoglobin
             case 29: //DNA Content and S-Phase Analysis
             case 56: //T-Cell Immunodeficiency Profile
                 reviewContent = new PublishedDocumentReview(this.m_PathologistUI, this.m_SystemIdentity);
                 historyContent = new CommonHistory(this.AccessionOrder);
                 break;
             case 13:
             case 128:
                 reviewContent = new SurgicalReview(this.m_TypingShortcutUserControl, this.m_PathologistUI);
                 historyContent = new SurgicalHistory(this.m_PathologistUI);
                 break;
             default:
                 reviewContent = new ResultPathReview(this.m_PathologistUI, this.m_SystemIdentity);
                 historyContent = new CommonHistory(this.AccessionOrder);
                 break;
         }
     }
     this.ContentControlReview.Content = reviewContent;
     this.ContentControlHistory.Content = historyContent;
 }