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 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."); } } }