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;
        }
Ejemplo n.º 2
0
        /*public static YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData GetPlacentalPathologyQuestionnaire(string clientOrderId, object writer)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrder(clientOrderId, writer);
            XElement clientOrderElement = new XElement("ClientOrder");
            YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderPropertyWriter = new Persistence.XmlPropertyReader(clientOrder, clientOrderElement);
            clientOrderPropertyWriter.Write();

            foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in clientOrder.ClientOrderDetailCollection)
            {
                if (clientOrderDetail.OrderTypeCode == "PLCNT")
                {
                    XElement clientOrderDetailElement = new XElement("ClientOrderDetail");
                    YellowstonePathology.Business.Persistence.XmlPropertyReader clientOrderDetailPropertyWriter = new Persistence.XmlPropertyReader(clientOrderDetail, clientOrderDetailElement);
                    clientOrderDetailPropertyWriter.Write();
                    clientOrderElement.Add(clientOrderDetailElement);
                }
            }
            YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData result = new YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData(clientOrderElement);
            return result;
        }*/
        public static YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 GetPlacentalPathologyQuestionnaire1(string clientOrderId, object writer)
        {
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrder(clientOrderId, writer);
            YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 result = new YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2(clientOrder);
            return result;
        }
Ejemplo n.º 3
0
 public static YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 GetPlacentalPathologyQuestionnaire1(string clientOrderId, object writer)
 {
     YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullClientOrder(clientOrderId, writer);
     YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 result = new YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2(clientOrder);
     return(result);
 }
        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;
        }
        public override void Show(System.Windows.Controls.ContentControl contentControl, object writer)
        {
            /*YellowstonePathology.Document.Result.Data.PlacentalPathologyQuestionnaireData placentalPathologyData = YellowstonePathology.Business.Gateway.XmlGateway.GetPlacentalPathologyQuestionnaire(this.m_PlacentalClientOrderId, writer);
             * if (placentalPathologyData != null)
             * {
             *      YellowstonePathology.Document.PlacentalPathologyQuestionnaire placentalPathologyQuestionnare = new YellowstonePathology.Document.PlacentalPathologyQuestionnaire(placentalPathologyData);
             *      System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer();
             *      documentViewer.Loaded += new System.Windows.RoutedEventHandler(DocumentViewer_Loaded);
             *      documentViewer.Document = placentalPathologyQuestionnare.FixedDocument;
             *      contentControl.Content = documentViewer;
             * }*/

            YellowstonePathology.Business.XPSDocument.Result.Data.PlacentalPathologyQuestionnaireDataV2 placentalPathologyData = YellowstonePathology.Business.Gateway.XmlGateway.GetPlacentalPathologyQuestionnaire1(this.m_PlacentalClientOrderId, writer);
            if (placentalPathologyData != null)
            {
                YellowstonePathology.Business.XPSDocument.PlacentalPathologyQuestionnaireV2 placentalPathologyQuestionnare = new YellowstonePathology.Business.XPSDocument.PlacentalPathologyQuestionnaireV2(placentalPathologyData);
                System.Windows.Controls.DocumentViewer documentViewer = new System.Windows.Controls.DocumentViewer();
                documentViewer.Loaded  += new System.Windows.RoutedEventHandler(DocumentViewer_Loaded);
                documentViewer.Document = placentalPathologyQuestionnare.FixedDocument;
                contentControl.Content  = documentViewer;
            }
            else
            {
                contentControl.Content = null;
                System.Windows.MessageBox.Show("Placental Questionaire is not available");
            }
        }
Ejemplo n.º 6
0
        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();
        }