private void HyperLinkShowHl7Result_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.HL7View.IResultView resultView = YellowstonePathology.Business.HL7View.ResultViewFactory.GetResultView(this.m_PanelSetOrder.ReportNo, this.m_AccessionOrder, this.m_AccessionOrder.ClientId, false);
     if (resultView != null)
     {
         System.Xml.Linq.XElement           document        = resultView.GetDocument();
         ReportDistribution.Hl7ResultDialog hl7ResultDialog = new ReportDistribution.Hl7ResultDialog(document);
         hl7ResultDialog.ShowDialog();
     }
     else
     {
         MessageBox.Show("The client does not receive an HL7 result.  Choose another report to view.");
     }
 }
Beispiel #2
0
 private void MenuItemShowHl7Result_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewCaseList.SelectedItem != null)
     {
         YellowstonePathology.Business.Search.ReportSearchItem item = (YellowstonePathology.Business.Search.ReportSearchItem)this.ListViewCaseList.SelectedItem;
         YellowstonePathology.Business.HL7View.IResultView resultView = YellowstonePathology.Business.HL7View.ResultViewFactory.GetResultView(item.ReportNo, this.m_LabUI.AccessionOrder, this.m_LabUI.AccessionOrder.ClientId, false);
         if (resultView != null)
         {
             XElement document = resultView.GetDocument();
             ReportDistribution.Hl7ResultDialog hl7ResultDialog = new ReportDistribution.Hl7ResultDialog(document);
             hl7ResultDialog.ShowDialog();
         }
         else
         {
             MessageBox.Show("The client does not receive an HL7 result.  Choose another report to view.");
         }
     }
 }