Ejemplo n.º 1
0
        private void CreatePatientTifFile(string reportNo)
        {
            List <YellowstonePathology.Business.Patient.Model.SVHBillingData> sVHBillingDataList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientImportDataList(reportNo);

            if (sVHBillingDataList.Count != 0)
            {
                YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(reportNo);
                this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
                {
                    YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(sVHBillingDataList[0]);
                    svhBillingDocument.SaveAsTIF(orderIdParser);
                }
                                                                                                                           ));
            }
        }
Ejemplo n.º 2
0
        private void ButtonPrint_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(this.m_MasterAccessionNo);
            YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(this.m_SVHBillingData);
            //svhBillingDocument.SaveAsTIF(orderIdParser);

            PrintDialog dialog = new PrintDialog();
            var         doc    = svhBillingDocument.Document.DocumentPaginator;

            for (int i = 0; i < doc.PageCount; i++)
            {
                dialog.PrintVisual(doc.GetPage(i).Visual, "Page " + i);
            }

            MessageBox.Show("Your document has been sent to the printer.");
        }
Ejemplo n.º 3
0
 private void CreatePatientTifFile(string reportNo)
 {
     List<YellowstonePathology.Business.Patient.Model.SVHBillingData> sVHBillingDataList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientImportDataList(reportNo);
     if (sVHBillingDataList.Count != 0)
     {
         YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(reportNo);
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
         {
             YellowstonePathology.Business.Document.SVHBillingDocument svhBillingDocument = new Business.Document.SVHBillingDocument(sVHBillingDataList[0]);
             svhBillingDocument.SaveAsTIF(orderIdParser);
         }
         ));
     }
 }