Пример #1
0
        public ClientOrderFNADataSheet(XElement reportData)
        {
            m_AccessionOrderData = reportData;
            if (m_AccessionOrderData == null)
            {
                throw new ApplicationException("XML data file missing \"AccessionOrder\" node");
            }
            m_ClientOrderData = reportData.Descendants("ClientOrder").FirstOrDefault();
            if (m_ClientOrderData == null)
            {
                throw new ApplicationException("XML data file missing \"ClientOrder\" node");
            }
            m_ClientOrderFNAData = reportData.Descendants("ClientOrderFNAProperty").FirstOrDefault();
            if (m_ClientOrderFNAData == null)
            {
                throw new ApplicationException("XML data file missing \"ClientOrderFNAProperty\" node");
            }

            YellowstonePathology.Document.Xps.NoHeader header = new Document.Xps.NoHeader();
            YellowstonePathology.Document.Xps.NoFooter footer = new Document.Xps.NoFooter();
            m_ReportDocument = new Document.Xps.ReportDocument(header, footer);

            SetupDocumentLayout();
            WriteClientOrderSection();
            WriteFNAPropertySection();
        }
        public ClientOrderFNADataSheet(XElement reportData)
        {
            m_AccessionOrderData = reportData;
            if (m_AccessionOrderData == null) throw new ApplicationException("XML data file missing \"AccessionOrder\" node");
            m_ClientOrderData = reportData.Descendants("ClientOrder").FirstOrDefault();
            if (m_ClientOrderData == null) throw new ApplicationException("XML data file missing \"ClientOrder\" node");
            m_ClientOrderFNAData = reportData.Descendants("ClientOrderFNAProperty").FirstOrDefault();
            if (m_ClientOrderFNAData == null) throw new ApplicationException("XML data file missing \"ClientOrderFNAProperty\" node");

            YellowstonePathology.Document.Xps.NoHeader header = new Document.Xps.NoHeader();
            YellowstonePathology.Document.Xps.NoFooter footer = new Document.Xps.NoFooter();
            m_ReportDocument = new Document.Xps.ReportDocument(header, footer);

            SetupDocumentLayout();
            WriteClientOrderSection();
            WriteFNAPropertySection();
        }