private void PlacentalFormDisplayPage_Loaded(object sender, RoutedEventArgs e)
        {
            XElement clientOrderElement = this.m_ClientOrder.ToXML(false);

            foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in this.m_ClientOrder.ClientOrderDetailCollection)
            {
                if (clientOrderDetail.OrderTypeCode == "PLCNT")
                {
                    XElement clientOrderDetailElement = new XElement("ClientOrderDetail");
                    YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderDetailPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyReader(clientOrderDetail, clientOrderDetailElement);
                    clientOrderDetailPropertyWriter.Write();
                    clientOrderElement.Add(clientOrderDetailElement);
                }
            }
            YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData placentalPathologyQuestionnaireData = new YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData(clientOrderElement);
            YellowstonePathology.Document.PlacentalPathologyQuestionnaire placentalPathologyQuestionnare = new Document.PlacentalPathologyQuestionnaire(placentalPathologyQuestionnaireData);
            this.Viewer.Document = placentalPathologyQuestionnare.FixedDocument;
        }
Esempio n. 2
0
 private void PlacentalFormDisplayPage_Loaded(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData placentalPathologyQuestionnaireData = YellowstonePathology.Business.Gateway.XmlGateway.GetPlacentalPathologyQuestionnaire(this.m_ClientOrderId, Window.GetWindow(this));
     YellowstonePathology.Document.PlacentalPathologyQuestionnaire placentalPathologyQuestionnare = new Document.PlacentalPathologyQuestionnaire(placentalPathologyQuestionnaireData);
     this.Viewer.Document = placentalPathologyQuestionnare.FixedDocument;
 }
 private void PlacentalFormDisplayPage_Loaded(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData placentalPathologyQuestionnaireData = YellowstonePathology.Business.Gateway.XmlGateway.GetPlacentalPathologyQuestionnaire(this.m_ClientOrderId, Window.GetWindow(this));
     YellowstonePathology.Document.PlacentalPathologyQuestionnaire placentalPathologyQuestionnare = new Document.PlacentalPathologyQuestionnaire(placentalPathologyQuestionnaireData);
     this.Viewer.Document = placentalPathologyQuestionnare.FixedDocument;
 }
 private void PlacentalFormDisplayPage_Loaded(object sender, RoutedEventArgs e)
 {
     XElement clientOrderElement = this.m_ClientOrder.ToXML(false);
     foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in this.m_ClientOrder.ClientOrderDetailCollection)
     {
         if (clientOrderDetail.OrderTypeCode == "PLCNT")
         {
             XElement clientOrderDetailElement = new XElement("ClientOrderDetail");
             YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderDetailPropertyWriter = new YellowstonePathology.Business.Persistence.XmlPropertyReader(clientOrderDetail, clientOrderDetailElement);
             clientOrderDetailPropertyWriter.Write();
             clientOrderElement.Add(clientOrderDetailElement);
         }
     }
     YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData placentalPathologyQuestionnaireData = new YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData(clientOrderElement);
     YellowstonePathology.Document.PlacentalPathologyQuestionnaire placentalPathologyQuestionnare = new Document.PlacentalPathologyQuestionnaire(placentalPathologyQuestionnaireData);
     this.Viewer.Document = placentalPathologyQuestionnare.FixedDocument;
 }