private void ShowDocument(YellowstonePathology.Business.Document.CaseDocument caseDocument)
        {
            switch (caseDocument.Extension.ToUpper())
            {
            case "XPS":
                if (caseDocument.CaseDocumentType == "AccessionOrderDataSheet")
                {
                    this.ShowAccessionDataSheet();
                }
                else if (caseDocument.CaseDocumentType == "PlacentalPathologySheet")
                {
                    this.ShowPlacentalPathologySheet();
                }
                else
                {
                    XpsDocumentViewer viewer = new XpsDocumentViewer();
                    viewer.ViewDocument(caseDocument.FullFileName);
                    viewer.ShowDialog();
                }
                break;

            case "DOC":
                YellowstonePathology.Business.Document.CaseDocument.OpenWordDocumentWithWord(caseDocument.FullFileName);
                break;

            case "PDF":
                YellowstonePathology.Business.Document.CaseDocument.OpenPDF(caseDocument.FullFileName);
                break;

            case "TIF":
                YellowstonePathology.Business.Document.CaseDocument.OpenTiff(caseDocument.FullFileName);
                break;
            }
        }
 private void ButtonViewDocument_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxDocumentList.SelectedItem != null)
     {
         YellowstonePathology.Business.Document.CaseDocument caseDocument = (YellowstonePathology.Business.Document.CaseDocument) this.ListBoxDocumentList.SelectedItem;
         this.ShowDocument(caseDocument);
     }
 }
 private void ListBoxDocumentList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.ListBoxDocumentList.SelectedItem != null)
     {
         YellowstonePathology.Business.Document.CaseDocument caseDocument = (YellowstonePathology.Business.Document.CaseDocument) this.ListBoxDocumentList.SelectedItem;
         this.ShowDocument(caseDocument);
     }
 }
Exemple #4
0
 private void listViewCaseFileList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (this.listViewCaseFileList.SelectedItems.Count != 0)
     {
         YellowstonePathology.Business.Document.CaseDocument item = (YellowstonePathology.Business.Document.CaseDocument) this.listViewCaseFileList.SelectedItem;
         this.m_DocumentViewer.ShowDocument(item);
     }
 }
Exemple #5
0
 private void BillingPage_Loaded(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Document.CaseDocument firstRequisition = this.m_CaseDocumentCollection.GetFirstRequisition();
     if (firstRequisition != null)
     {
         this.ShowTIFDocument(this, new CustomEventArgs.FileNameReturnEventArgs(firstRequisition.FullFileName));
     }
 }
 public void ListViewDocuments_SelectionChanged(object sender, RoutedEventArgs args)
 {
     YellowstonePathology.Business.Document.CaseDocument item = (YellowstonePathology.Business.Document.CaseDocument) this.ListViewDocumentList.SelectedItem;
     if (this.m_DocumentViewer.SyncDocuments == true)
     {
         this.TabControlRightMain.SelectedIndex = 0;
     }
     this.m_DocumentViewer.ShowDocument(item);
 }
Exemple #7
0
 public void ListViewPatientHistoryViewDocument_MouseLeftButtonUp(object sender, RoutedEventArgs args)
 {
     if (this.listViewPatientHistoryCaseFileList.SelectedItem != null)
     {
         this.TabItemDocumentViewer.Focus();
         YellowstonePathology.Business.Document.CaseDocument item = (YellowstonePathology.Business.Document.CaseDocument) this.listViewPatientHistoryCaseFileList.SelectedItem;
         this.m_DocumentViewer.ShowDocument(item);
     }
 }
Exemple #8
0
 public void ListViewDocumentList_SelectionChanged(object sender, RoutedEventArgs args)
 {
     if (this.listViewDocumentList.SelectedItem != null)
     {
         YellowstonePathology.Business.Document.CaseDocument item = (YellowstonePathology.Business.Document.CaseDocument) this.listViewDocumentList.SelectedItem;
         this.m_DocumentViewer.ShowDocument(item);
         this.TabItemDocumentViewer.Focus();
     }
 }
Exemple #9
0
        public void GetCase(string reportNo, string masterAccessionNo)
        {
            this.Save(true);

            this.m_FlowUI.GetAccessionOrder(reportNo, masterAccessionNo);
            YellowstonePathology.Business.Document.CaseDocument requisition = this.m_FlowUI.CaseDocumentCollection.GetFirstRequisition();
            this.m_DocumentViewer.ShowDocument(requisition);

            this.m_FlowUI.ICD9BillingCodeCollection = this.m_FlowUI.AccessionOrder.ICD9BillingCodeCollection.GetReportCollection(reportNo);
        }
        public void ShowDocument(YellowstonePathology.Business.Document.CaseDocument caseDocument)
        {
            if (this.m_CaseDocument != null) this.m_CaseDocument.Close();
            this.m_CaseDocument = caseDocument;
            this.ClearContent();

            if (this.m_CaseDocument != null)
            {
                caseDocument.Show(this.ContentControlDocument, Window.GetWindow(this));
            }
        }
 public void ListViewDocumentList_MouseLeftButtonUp(object sender, RoutedEventArgs args)
 {
     if (this.ListViewDocumentList.SelectedItem != null)
     {
         if (this.m_DocumentViewer.SyncDocuments == true)
         {
             this.TabControlRightMain.SelectedIndex = 0;
         }
         YellowstonePathology.Business.Document.CaseDocument item = (YellowstonePathology.Business.Document.CaseDocument) this.ListViewDocumentList.SelectedItem;
         this.m_DocumentViewer.ShowDocument(item);
     }
 }
        public void ShowDocument(YellowstonePathology.Business.Document.CaseDocument caseDocument)
        {
            if (this.m_CaseDocument != null)
            {
                this.m_CaseDocument.Close();
            }
            this.m_CaseDocument = caseDocument;
            this.ClearContent();

            if (this.m_CaseDocument != null)
            {
                caseDocument.Show(this.ContentControlDocument, Window.GetWindow(this));
            }
        }
Exemple #13
0
 private void PatientDetailPage_Back(object sender, EventArgs e)
 {
     YellowstonePathology.Business.Document.CaseDocumentCollection caseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_ReportSearchList.CurrentReportSearchItem.ReportNo);
     YellowstonePathology.Business.Document.CaseDocument           firstRequisition       = caseDocumentCollection.GetFirstRequisition();
     if (this.m_TifDocumentViewer != null)
     {
         this.m_TifDocumentViewer.Close();
     }
     if (this.m_BillingWindowPrimary.PageNavigator.HasDualMonitors() == false)
     {
         this.m_BillingWindowSecondary.Close();
     }
     if (firstRequisition != null)
     {
         this.BillingPage_ShowTIFDocument(this, new CustomEventArgs.FileNameReturnEventArgs(firstRequisition.FullFileName));
     }
 }
Exemple #14
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            string result = "#F5F5F5";

            if (value != null)
            {
                YellowstonePathology.Business.Document.CaseDocument caseDocument = (YellowstonePathology.Business.Document.CaseDocument)value;

                if (caseDocument.Received)
                {
                    result = "#FFFF00";
                }
                if (caseDocument.Verified)
                {
                    result = "#77933C";                     //"#FFD700";
                }
            }

            System.Windows.Media.BrushConverter  brushConverter = new System.Windows.Media.BrushConverter();
            System.Windows.Media.SolidColorBrush brush          = brushConverter.ConvertFromString(result) as System.Windows.Media.SolidColorBrush;
            return(brush);
        }
Exemple #15
0
        private void ListViewDocuments_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.ListViewDocuments.SelectedItem != null)
            {
                YellowstonePathology.Business.Document.CaseDocument caseDocument = (YellowstonePathology.Business.Document.CaseDocument) this.ListViewDocuments.SelectedItem;
                switch (caseDocument.Extension.ToUpper())
                {
                case "XPS":
                    if (this.ShowXPSDocument != null)
                    {
                        this.ShowXPSDocument(this, new CustomEventArgs.FileNameReturnEventArgs(caseDocument.FullFileName));
                    }
                    break;

                case "TIF":
                    if (this.ShowTIFDocument != null)
                    {
                        this.ShowTIFDocument(this, new CustomEventArgs.FileNameReturnEventArgs(caseDocument.FullFileName));
                    }
                    break;
                }
            }
        }
        private void ListBoxDocumentListCopyTo_Click(object sender, RoutedEventArgs e)
        {
            MenuItem menuItem = (MenuItem)sender;

            YellowstonePathology.Business.Test.PanelSetOrder copyToPso   = (YellowstonePathology.Business.Test.PanelSetOrder)menuItem.Tag;
            YellowstonePathology.Business.Test.PanelSetOrder copyFromPso = (YellowstonePathology.Business.Test.PanelSetOrder) this.ListBoxReportOrders.SelectedItem;

            YellowstonePathology.Business.Document.CaseDocumentCollection copyToCaseDocumentCollection = new YellowstonePathology.Business.Document.CaseDocumentCollection(copyToPso.ReportNo);

            foreach (YellowstonePathology.Business.Document.CaseDocument caseDocument in this.ListBoxDocumentList.SelectedItems)
            {
                if (caseDocument.IsRequisition() == true)
                {
                    string copyFromFileName = System.IO.Path.GetFileName(caseDocument.FullFileName);
                    YellowstonePathology.Business.Document.CaseDocument newCaseDocument = copyToCaseDocumentCollection.GetNextRequisition();
                    copyToCaseDocumentCollection.Add(newCaseDocument);
                    System.IO.File.Copy(caseDocument.FullFileName, newCaseDocument.FullFileName);
                }
            }

            YellowstonePathology.Business.Test.PanelSetOrder pso = (YellowstonePathology.Business.Test.PanelSetOrder) this.ListBoxReportOrders.SelectedItem;
            this.m_CaseDocumentCollection = new Business.Document.CaseDocumentCollection(this.m_AccessionOrder, pso.ReportNo);
            MessageBox.Show("The selected file(s) have been copied.");
        }
 public CaseDocumentView(YellowstonePathology.Business.Document.CaseDocument caseDocument)
 {
     this.m_CaseDocument = caseDocument;
 }
Exemple #18
0
 public CaseDocumentView(YellowstonePathology.Business.Document.CaseDocument caseDocument)
 {
     this.m_CaseDocument = caseDocument;
 }