private void ShowSurgicalOrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder) { YellowstonePathology.Business.Persistence.ObjectTracker objectTracker = new Business.Persistence.ObjectTracker(); objectTracker.RegisterObject(clientOrder); OrderEntry.SurgicalOrderEntryPage orderEntryPage = new OrderEntry.SurgicalOrderEntryPage((YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder)clientOrder, objectTracker); orderEntryPage.Return += new SurgicalOrderEntryPage.ReturnEventHandler(OrderEntryPage_Return); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(orderEntryPage); }
private void AddToShipment() { YellowstonePathology.Business.Persistence.ObjectTracker objectTracker = new Business.Persistence.ObjectTracker(); objectTracker.RegisterObject(this.m_ClientOrderDetail); this.m_ClientOrderDetail.Shipped = this.m_Shipment.Shipped; this.m_ClientOrderDetail.ShipDate = this.m_Shipment.ShipDate; this.m_ClientOrderDetail.ShipmentId = this.m_Shipment.ShipmentId; this.m_ClientOrderDetailCollection.Add(this.m_ClientOrderDetail); YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy proxy = new Proxy.SubmitterServiceProxy(); YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent(); objectTracker.PrepareRemoteTransferAgent(this.m_ClientOrderDetail, remoteObjectTransferAgent); proxy.Submit(remoteObjectTransferAgent); }