private void ShowShippingDetailsPage(string shipmentId) { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ShipmentReturnResult shipmentReturnResult = proxy.GetShipment(shipmentId); this.m_ObjectTracker = new Business.Persistence.ObjectTracker(); this.m_ObjectTracker.RegisterObject(shipmentReturnResult.Shipment); ShipmentDetailsPage shipmentDetailsPage = new ShipmentDetailsPage(shipmentReturnResult.Shipment, shipmentReturnResult.ClientOrderDetailCollection, this.m_ObjectTracker); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(shipmentDetailsPage); }
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(); }
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 Save() { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy clientOrderServiceProxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAPropertySubmitter submitter = new Contract.Order.ClientOrderFNAPropertySubmitter(this.m_ClientOrderFNAPropertyCollection); if (submitter.HasChanges()) { System.Windows.Input.Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; submitter.BeginSubmit(Business.Domain.Persistence.PropertyReaderFilterEnum.Normal); //YellowstonePathology.Business.Rules.MethodResult methodResult = clientOrderServiceProxy.SubmitChanges(submitter); //if (methodResult.Success == false) //{ // System.Windows.MessageBox.Show(methodResult.Message); //} //else //{ // submitter.EndSubmit(); //} //System.Threading.Thread.Sleep(500); //System.Windows.Input.Mouse.OverrideCursor = null; } YellowstonePathology.YpiConnect.Contract.Order.ClientOrderSubmitter clientOrderSubmitter = new Contract.Order.ClientOrderSubmitter(this.m_ClientOrderCollection); if (clientOrderSubmitter.HasChanges()) { /* * System.Windows.Input.Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; * clientOrderSubmitter.BeginSubmit(Business.Domain.Persistence.PropertyReaderFilterEnum.External); * YellowstonePathology.Business.Rules.MethodResult methodResult = clientOrderServiceProxy.SubmitChanges(clientOrderSubmitter); * if (methodResult.Success == false) * { * System.Windows.MessageBox.Show(methodResult.Message); * } * else * { * clientOrderSubmitter.EndSubmit(); * } * System.Threading.Thread.Sleep(500); * System.Windows.Input.Mouse.OverrideCursor = null; */ } }
private void LocateContainerId() { if (this.m_ClientOrderDetailCollection.ExistsByContainerId(this.m_ContainerId) == true) { MessageBox.Show("The container scanned is already in the shipment.", "Shipment", MessageBoxButton.OK); } else { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = proxy.GetClientOrderByContainerId(this.m_ContainerId); if (clientOrder != null) { YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = clientOrder.ClientOrderDetailCollection.GetByContainerId(this.m_ContainerId); SpecimenMatchingPage specimenMatchingPage = new SpecimenMatchingPage(clientOrder, clientOrderDetail, this.m_Shipment, this.m_ClientOrderDetailCollection); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(specimenMatchingPage); } else { MessageBox.Show("The container id scanned was not found."); } } }
private void ButtonRemove_Click(object sender, RoutedEventArgs e) { Control button = (Control)sender; YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem shipmentListItem = (YellowstonePathology.Business.ClientOrder.Model.ShipmentListItem)button.Tag; this.SelectItemOnButtonClick(shipmentListItem); MessageBoxResult result = MessageBox.Show("Are you sure you want to delete this shipment?", "Delete shipment", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { this.m_ObjectTracker = new Business.Persistence.ObjectTracker(); YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ShipmentReturnResult shipmentReturnResult = proxy.GetShipment(shipmentListItem.ShipmentId); YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy submitterProxy = new Proxy.SubmitterServiceProxy(); foreach (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail in shipmentReturnResult.ClientOrderDetailCollection) { this.m_ObjectTracker.RegisterObject(clientOrderDetail); clientOrderDetail.ShipDate = null; clientOrderDetail.ShipmentId = null; clientOrderDetail.Shipped = false; YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent(); this.m_ObjectTracker.PrepareRemoteTransferAgent(clientOrderDetail, remoteObjectTransferAgent); submitterProxy.Submit(remoteObjectTransferAgent); } this.m_ObjectTracker.RegisterRootDelete(shipmentReturnResult.Shipment); YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent2 = new Business.Persistence.RemoteObjectTransferAgent(); this.m_ObjectTracker.PrepareRemoteTransferAgent(shipmentReturnResult.Shipment, remoteObjectTransferAgent2); submitterProxy.Submit(remoteObjectTransferAgent2); this.m_ShipmentListItemCollection.Remove(shipmentListItem); } }
private void LocateContainerId() { if (this.m_ClientOrderDetailCollection.ExistsByContainerId(this.m_ContainerId) == true) { MessageBox.Show("The container scanned is already in the shipment.", "Shipment", MessageBoxButton.OK); } else { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = proxy.GetClientOrderByContainerId(this.m_ContainerId); if(clientOrder != null) { YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail = clientOrder.ClientOrderDetailCollection.GetByContainerId(this.m_ContainerId); SpecimenMatchingPage specimenMatchingPage = new SpecimenMatchingPage(clientOrder, clientOrderDetail, this.m_Shipment, this.m_ClientOrderDetailCollection); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(specimenMatchingPage); } else { MessageBox.Show("The container id scanned was not found."); } } }
private void GetShipments() { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); this.m_ShipmentListItemCollection = proxy.GetShipmentListItemCollection(YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.PrimaryClientId); NotifyPropertyChanged("ShipmentListItemCollection"); }
private bool ContainerExists() { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ContainerIdLookupResponse containerIdLookupResponse = proxy.DoesContainerIdExist(this.TextBlockContainerId.Text, this.m_ClientOrderDetailClone.ClientOrderDetailId); return(containerIdLookupResponse.Found); }
private bool ContainerExists() { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy proxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.Business.ClientOrder.Model.ContainerIdLookupResponse containerIdLookupResponse = proxy.DoesContainerIdExist(this.TextBlockContainerId.Text, this.m_ClientOrderDetailClone.ClientOrderDetailId); return containerIdLookupResponse.Found; }
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 Save() { YellowstonePathology.YpiConnect.Proxy.ClientOrderServiceProxy clientOrderServiceProxy = new Proxy.ClientOrderServiceProxy(); YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAPropertySubmitter submitter = new Contract.Order.ClientOrderFNAPropertySubmitter(this.m_ClientOrderFNAPropertyCollection); if (submitter.HasChanges()) { System.Windows.Input.Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; submitter.BeginSubmit(Business.Domain.Persistence.PropertyReaderFilterEnum.Normal); //YellowstonePathology.Business.Rules.MethodResult methodResult = clientOrderServiceProxy.SubmitChanges(submitter); //if (methodResult.Success == false) //{ // System.Windows.MessageBox.Show(methodResult.Message); //} //else //{ // submitter.EndSubmit(); //} //System.Threading.Thread.Sleep(500); //System.Windows.Input.Mouse.OverrideCursor = null; } YellowstonePathology.YpiConnect.Contract.Order.ClientOrderSubmitter clientOrderSubmitter = new Contract.Order.ClientOrderSubmitter(this.m_ClientOrderCollection); if (clientOrderSubmitter.HasChanges()) { /* System.Windows.Input.Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; clientOrderSubmitter.BeginSubmit(Business.Domain.Persistence.PropertyReaderFilterEnum.External); YellowstonePathology.Business.Rules.MethodResult methodResult = clientOrderServiceProxy.SubmitChanges(clientOrderSubmitter); if (methodResult.Success == false) { System.Windows.MessageBox.Show(methodResult.Message); } else { clientOrderSubmitter.EndSubmit(); } System.Threading.Thread.Sleep(500); System.Windows.Input.Mouse.OverrideCursor = null; */ } }