private void HyperlinkPackingSlip_Click(object sender, RoutedEventArgs e)
        {
            this.Save();

            YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy();
            System.Xml.Linq.XElement packingSlipElement = proxy.PackingSlipReport(this.m_Shipment.ShipmentId);
            PackingSlipData          packingSlipData    = new PackingSlipData(packingSlipElement);
            PackingSlip packingSlip = new PackingSlip(packingSlipData);

            XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();

            xpsDocumentViewer.LoadDocument(packingSlip.FixedDocument);
            xpsDocumentViewer.ShowDialog();
        }
Пример #2
0
        private void HyperlinkPackingSlip_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewShipments.SelectedItem != null)
            {
                this.Save();
                YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem shipmentListItem = (YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem) this.ListViewShipments.SelectedItem;
                YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy    proxy            = new Proxy.ClientOrderServiceProxy();
                System.Xml.Linq.XElement packingSlipElement = proxy.PackingSlipReport(shipmentListItem.ShipmentId);
                PackingSlipData          packingSlipData    = new PackingSlipData(packingSlipElement);
                PackingSlip packingSlip = new PackingSlip(packingSlipData);

                XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
                xpsDocumentViewer.LoadDocument(packingSlip.FixedDocument);
                xpsDocumentViewer.ShowDialog();
            }
        }
        private void HyperlinkPackingSlip_Click(object sender, RoutedEventArgs e)
        {
            this.Save();

            YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy();
            System.Xml.Linq.XElement packingSlipElement = proxy.PackingSlipReport(this.m_Shipment.ShipmentId);
            PackingSlipData packingSlipData = new PackingSlipData(packingSlipElement);
            PackingSlip packingSlip = new PackingSlip(packingSlipData);

            XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
            xpsDocumentViewer.LoadDocument(packingSlip.FixedDocument);
            xpsDocumentViewer.ShowDialog();
        }
Пример #4
0
        private void HyperlinkPackingSlip_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewShipments.SelectedItem != null)
            {
                this.Save();
                YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem shipmentListItem = (YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem)this.ListViewShipments.SelectedItem;
                YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy();
                System.Xml.Linq.XElement packingSlipElement = proxy.PackingSlipReport(shipmentListItem.ShipmentId);
                PackingSlipData packingSlipData = new PackingSlipData(packingSlipElement);
                PackingSlip packingSlip = new PackingSlip(packingSlipData);

                XpsDocumentViewer xpsDocumentViewer = new XpsDocumentViewer();
                xpsDocumentViewer.LoadDocument(packingSlip.FixedDocument);
                xpsDocumentViewer.ShowDialog();
            }
        }