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);*/ YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 placentalPathologyQuestionnaireData = new YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2(this.m_ClientOrder); YellowstonePathology.Business.XPSDocument.PlacentalPathologyQuestionnaireV2 placentalPathologyQuestionnare = new Business.XPSDocument.PlacentalPathologyQuestionnaireV2(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);*/ YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 placentalPathologyQuestionnaireData = new YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2(this.m_ClientOrder); YellowstonePathology.Business.XPSDocument.PlacentalPathologyQuestionnaireV2 placentalPathologyQuestionnare = new Business.XPSDocument.PlacentalPathologyQuestionnaireV2(placentalPathologyQuestionnaireData); this.Viewer.Document = placentalPathologyQuestionnare.FixedDocument; }
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(); }