Esempio n. 1
0
        private void ButtonPrintList_Click(object sender, RoutedEventArgs e)
        {
            XElement listElement = null;

            if (this.ListViewSearchResults.SelectedItems.Count != 0)
            {
                listElement = new XElement("CytologyScreeningList");
                foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult item in this.ListViewSearchResults.SelectedItems)
                {
                    item.ToXml(listElement);
                }
            }
            else if (this.m_CytologyUI.Search.Results.Count != 0)
            {
                listElement = new XElement("CytologyScreeningList");
                foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult item in this.m_CytologyUI.Search.Results)
                {
                    item.ToXml(listElement);
                }
            }

            if (listElement != null)
            {
                YellowstonePathology.Business.XPSDocument.Result.Data.CytologyScreeningListReportData cytologyScreeningListReportData = new Business.XPSDocument.Result.Data.CytologyScreeningListReportData(listElement);
                YellowstonePathology.Business.XPSDocument.Result.Xps.CytologyScreeningListReport      clientSupplyOrderReport         = new Business.XPSDocument.Result.Xps.CytologyScreeningListReport(cytologyScreeningListReportData);
                XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
                xpsDocumentViewer.LoadDocument(clientSupplyOrderReport.FixedDocument);
                xpsDocumentViewer.ShowDialog();
            }
            else
            {
                MessageBox.Show("Fill the list or select list entries", "Nothing to report.");
            }
        }
 private void ButtonShowReport_Click(object sender, RoutedEventArgs e)
 {
     XElement reportData = YellowstonePathology.Business.Gateway.XmlGateway.GetClientBillingDetailReport(this.m_PostDateStart.Value, this.m_PostDateEnd.Value, this.m_ClientGroup.ClientGroupId);
     YellowstonePathology.Document.ClientBillingDetailReport clientBillingDetailReport = new Document.ClientBillingDetailReport(reportData, this.m_PostDateStart.Value, this.m_PostDateEnd.Value);
     XpsDocumentViewer viewer = new XpsDocumentViewer();
     viewer.LoadDocument(clientBillingDetailReport.FixedDocument);
     viewer.ShowDialog();
 }
Esempio n. 3
0
        private void ButtonPrintList_Click(object sender, RoutedEventArgs e)
        {
            CaseListReport caseListReport = new CaseListReport(this.m_LoginUI.ReportSearchList);

            YellowstonePathology.UI.XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
            xpsDocumentViewer.LoadDocument(caseListReport.FixedDocument);
            xpsDocumentViewer.ShowDialog();
        }
        private void ShowPlacentalPathologySheet()
        {
            YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 placentalPathologyData = YellowstonePathology.Business.Gateway.XmlGateway.GetPlacentalPathologyQuestionnaire1(this.m_AccessionOrder.ClientOrderId, this);
            YellowstonePathology.Business.XPSDocument.PlacentalPathologyQuestionnaireV2 placentalPathologyQuestionnare         = new Business.XPSDocument.PlacentalPathologyQuestionnaireV2(placentalPathologyData);
            XpsDocumentViewer viewer = new XpsDocumentViewer();

            viewer.LoadDocument(placentalPathologyQuestionnare.FixedDocument);
            viewer.ShowDialog();
        }
        private void ShowAccessionDataSheet()
        {
            XpsDocumentViewer viewer = new XpsDocumentViewer();

            YellowstonePathology.Document.Result.Data.AccessionOrderDataSheetData accessionOrderDataSheetData = YellowstonePathology.Business.Gateway.XmlGateway.GetAccessionOrderDataSheetData(this.m_AccessionOrder.MasterAccessionNo);
            YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet      accessionOrderDataSheet     = new Document.Result.Xps.AccessionOrderDataSheet(accessionOrderDataSheetData);
            viewer.LoadDocument(accessionOrderDataSheet.FixedDocument);
            viewer.ShowDialog();
        }
        private void ButtonShowReport_Click(object sender, RoutedEventArgs e)
        {
            XElement reportData = YellowstonePathology.Business.Gateway.XmlGateway.GetClientBillingDetailReport(this.m_PostDateStart.Value, this.m_PostDateEnd.Value, this.m_ClientGroup.ClientGroupId);

            YellowstonePathology.Document.ClientBillingDetailReport clientBillingDetailReport = new Document.ClientBillingDetailReport(reportData, this.m_PostDateStart.Value, this.m_PostDateEnd.Value);
            XpsDocumentViewer viewer = new XpsDocumentViewer();

            viewer.LoadDocument(clientBillingDetailReport.FixedDocument);
            viewer.ShowDialog();
        }
        private void ButtonShowReport_Click(object sender, RoutedEventArgs e)
        {
            Xps.Result.ClientBillingDetailReportResult.ClientBillingDetailReportData report = Billing.ClientBillingReport.GetClientBillingDetailReport(this.m_StartDate.Value, this.m_EndDate.Value, Convert.ToInt32(AuthenticatedUser.Instance.ClientGroupId));
            Xps.Result.ClientBillingDetailReportResult.ClientBillingDetailReportV2   clientBillingDetailReport = new YPIConnect.Xps.Result.ClientBillingDetailReportResult.ClientBillingDetailReportV2(report, this.m_StartDate.Value, this.m_EndDate.Value);

            XpsDocumentViewer viewer = new XpsDocumentViewer();

            viewer.LoadDocument(clientBillingDetailReport.FixedDocument);
            viewer.ShowDialog();
        }
Esempio n. 8
0
 private void ButtonPrint_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewClientSupplyOrders.SelectedItem != null)
     {
         YellowstonePathology.Business.Client.Model.ClientSupplyOrder clientSupplyOrder = (YellowstonePathology.Business.Client.Model.ClientSupplyOrder) this.ListViewClientSupplyOrders.SelectedItem;
         XElement dataElement = YellowstonePathology.Business.Gateway.XmlGateway.GetClientSupplyOrderReportData(clientSupplyOrder.ClientSupplyOrderId);
         YellowstonePathology.Business.XPSDocument.Result.Data.ClientSupplyOrderReportData clientSupplyOrderReportData = new Business.XPSDocument.Result.Data.ClientSupplyOrderReportData(dataElement);
         YellowstonePathology.Business.XPSDocument.Result.Xps.ClientSupplyOrderReport      clientSupplyOrderReport     = new Business.XPSDocument.Result.Xps.ClientSupplyOrderReport(clientSupplyOrderReportData);
         XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
         xpsDocumentViewer.LoadDocument(clientSupplyOrderReport.FixedDocument);
         xpsDocumentViewer.ShowDialog();
     }
 }
 private void ButtonPrintList_Click(object sender, RoutedEventArgs e)
 {
     CaseListReport caseListReport = new CaseListReport(this.m_LoginUI.ReportSearchList);
     YellowstonePathology.UI.XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
     xpsDocumentViewer.LoadDocument(caseListReport.FixedDocument);
     xpsDocumentViewer.ShowDialog();
 }
Esempio n. 10
0
        private void ShowAccessionDataSheet()
        {
            XpsDocumentViewer viewer = new XpsDocumentViewer();

            //YellowstonePathology.Document.Result.Data.AccessionOrderDataSheetData accessionOrderDataSheetData = YellowstonePathology.Business.Gateway.XmlGateway.GetAccessionOrderDataSheetData(this.m_AccessionOrder.MasterAccessionNo);
            //YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheet accessionOrderDataSheet = new Document.Result.Xps.AccessionOrderDataSheet(accessionOrderDataSheetData);
            YellowstonePathology.Business.XPSDocument.Result.Data.AccessionOrderDataSheetDataV2 accessionOrderDataSheetData = YellowstonePathology.Business.Gateway.XmlGateway.GetAccessionOrderDataSheetData(this.m_AccessionOrder.MasterAccessionNo);
            YellowstonePathology.Document.Result.Xps.AccessionOrderDataSheetV2 accessionOrderDataSheet = new Document.Result.Xps.AccessionOrderDataSheetV2(accessionOrderDataSheetData);
            viewer.LoadDocument(accessionOrderDataSheet.FixedDocument);
            viewer.ShowDialog();
        }
 private void ButtonPrint_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewClientSupplyOrders.SelectedItem != null)
     {
         YellowstonePathology.Business.Client.Model.ClientSupplyOrder clientSupplyOrder = (YellowstonePathology.Business.Client.Model.ClientSupplyOrder)this.ListViewClientSupplyOrders.SelectedItem;
         //XElement dataElement = YellowstonePathology.Business.Gateway.XmlGateway.GetClientSupplyOrderReportData(clientSupplyOrder.ClientSupplyOrderId);
         //YellowstonePathology.Business.XPSDocument.Result.Data.ClientSupplyOrderReportData clientSupplyOrderReportData = new Business.XPSDocument.Result.Data.ClientSupplyOrderReportData(dataElement);
         //YellowstonePathology.Business.XPSDocument.Result.Xps.ClientSupplyOrderReport clientSupplyOrderReport = new Business.XPSDocument.Result.Xps.ClientSupplyOrderReport(clientSupplyOrderReportData);
         YellowstonePathology.Business.XPSDocument.Result.Xps.ClientSupplyOrderReportV2 clientSupplyOrderReport = new Business.XPSDocument.Result.Xps.ClientSupplyOrderReportV2(clientSupplyOrder);
         XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
         xpsDocumentViewer.LoadDocument(clientSupplyOrderReport.FixedDocument);
         xpsDocumentViewer.ShowDialog();
     }
 }
        private void ButtonPrintList_Click(object sender, RoutedEventArgs e)
        {
            XElement listElement = null;

            if (this.ListViewSearchResults.SelectedItems.Count != 0)
            {
                listElement = new XElement("CytologyScreeningList");
                foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult item in this.ListViewSearchResults.SelectedItems)
                {
                    item.ToXml(listElement);
                }
            }
            else if(this.m_CytologyUI.Search.Results.Count != 0)
            {
                listElement = new XElement("CytologyScreeningList");
                foreach (YellowstonePathology.Business.Search.CytologyScreeningSearchResult item in this.m_CytologyUI.Search.Results)
                {
                    item.ToXml(listElement);
                }
            }

            if (listElement != null)
            {
                YellowstonePathology.Business.XPSDocument.Result.Data.CytologyScreeningListReportData cytologyScreeningListReportData = new Business.XPSDocument.Result.Data.CytologyScreeningListReportData(listElement);
                YellowstonePathology.Business.XPSDocument.Result.Xps.CytologyScreeningListReport clientSupplyOrderReport = new Business.XPSDocument.Result.Xps.CytologyScreeningListReport(cytologyScreeningListReportData);
                XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
                xpsDocumentViewer.LoadDocument(clientSupplyOrderReport.FixedDocument);
                xpsDocumentViewer.ShowDialog();
            }
            else
            {
                MessageBox.Show("Fill the list or select list entries", "Nothing to report.");
            }
        }