Beispiel #1
0
 public SpecimenOrderEntryPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
                               YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail,
                               ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
                               YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
 {
     this.m_ClientOrder                 = clientOrder;
     this.m_ClientOrderDetail           = clientOrderDetail;
     this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
     this.m_ObjectTracker               = objectTracker;
 }
        public SurgicalClientOrderInformationPage(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ObjectTracker = objectTracker;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(SurgicalClientOrderInformationPage_Loaded);
        }
        public SurgicalClientOrderInformationPage(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder   = clientOrder;
            this.m_ObjectTracker = objectTracker;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(SurgicalClientOrderInformationPage_Loaded);
        }
        public SpecimenOrderEntryPath(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder,
			YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail clientOrderDetail,
			ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
			YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetail = clientOrderDetail;
            this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
            this.m_ObjectTracker = objectTracker;
        }
Beispiel #5
0
        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);
        }
        public OrderTypePage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder baseClientOrder)
        {
            this.m_BaseClientOrder = baseClientOrder;
            this.m_ObjectTracker = new Business.Persistence.ObjectTracker();
            this.m_PanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetYPIOrderTypes();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OrderTypePage_Loaded);
        }
Beispiel #7
0
        public OrderTypePage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder baseClientOrder)
        {
            this.m_BaseClientOrder    = baseClientOrder;
            this.m_ObjectTracker      = new Business.Persistence.ObjectTracker();
            this.m_PanelSetCollection = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetYPIOrderTypes();

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(OrderTypePage_Loaded);
        }
        public ShipmentDetailsPage(YellowstonePathology.Business.ClientOrder.Model.Shipment shipment, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_Shipment = shipment;
            this.m_ClientOrderDetailCollection = clientOrderDetailCollection;
            this.m_ObjectTracker = objectTracker;

            InitializeComponent();

            DataContext = this;

            Loaded += new RoutedEventHandler(ShipmentDetailsPage_Loaded);
            this.TextBoxContainerId.KeyUp +=new KeyEventHandler(TextBoxContainerId_KeyUp);
        }
        public ShipmentDetailsPage(YellowstonePathology.Business.ClientOrder.Model.Shipment shipment, YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_Shipment = shipment;
            this.m_ClientOrderDetailCollection = clientOrderDetailCollection;
            this.m_ObjectTracker = objectTracker;

            InitializeComponent();

            DataContext = this;

            Loaded += new RoutedEventHandler(ShipmentDetailsPage_Loaded);
            this.TextBoxContainerId.KeyUp += new KeyEventHandler(TextBoxContainerId_KeyUp);
        }
        public OwnershipPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ObjectTracker = objectTracker;
            if (YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName == this.m_ClientOrder.OrderedBy)
            {
                this.m_CurrentUserIsOwner = true;
            }

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OwnershipPage_Loaded);
        }
Beispiel #11
0
        public OwnershipPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder   = clientOrder;
            this.m_ObjectTracker = objectTracker;
            if (YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName == this.m_ClientOrder.OrderedBy)
            {
                this.m_CurrentUserIsOwner = true;
            }

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(OwnershipPage_Loaded);
        }
Beispiel #12
0
        public PlacentaSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder,
                                    YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail clientOrderDetail,
                                    ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
                                    YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder                 = clientOrder;
            this.m_ClientOrderDetail           = clientOrderDetail;
            this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
            this.m_ObjectTracker               = objectTracker;

            if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew)
            {
                this.m_ClientOrderDetail.OrderType = "Routine Surgical Pathology";
            }

            YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner();
            this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail);
        }
        public PlacentaSpecimenPath(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder,
			YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail clientOrderDetail,
			ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode,
			YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ClientOrder = clientOrder;
            this.m_ClientOrderDetail = clientOrderDetail;
            this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode;
            this.m_ObjectTracker = objectTracker;

            if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew)
            {
                this.m_ClientOrderDetail.OrderType = "Routine Surgical Pathology";
            }

            YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Business.Persistence.ObjectCloner();
            this.m_ClientOrderDetailClone = (YellowstonePathology.Business.ClientOrder.Model.PlacentaClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail);
        }
        public SurgicalOrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ShowInactiveSpecimen = false;
            this.m_IsLoadingSpecimen    = false;
            this.m_ClientOrder          = clientOrder;
            this.m_ObjectTracker        = objectTracker;

            this.m_ClientOrderDetailViewCollection = new ClientOrderDetailViewCollection(this.m_ClientOrder.ClientOrderDetailCollection, this.m_ShowInactiveSpecimen);
            YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult();
            this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus);
            this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult);
            this.AreDemographicsEnabled = methodResult.Success;
            this.AreSpecimenEnabled     = methodResult.Success;
            this.AreButtonsEnabled      = methodResult.Success;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded     += new RoutedEventHandler(OrderEntryPage_Loaded);
        }
        public SurgicalOrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.SurgicalClientOrder clientOrder, YellowstonePathology.Business.Persistence.ObjectTracker objectTracker)
        {
            this.m_ShowInactiveSpecimen = false;
            this.m_IsLoadingSpecimen = false;
            this.m_ClientOrder = clientOrder;
            this.m_ObjectTracker = objectTracker;

            this.m_ClientOrderDetailViewCollection = new ClientOrderDetailViewCollection(this.m_ClientOrder.ClientOrderDetailCollection, this.m_ShowInactiveSpecimen);
            YellowstonePathology.Business.Rules.MethodResult methodResult = new Business.Rules.MethodResult();
            this.m_HandleClientDateentryPropertyAccess = new Rules.HandleClientDataEntryPropertyAccess(executionStatus);
            this.m_HandleClientDateentryPropertyAccess.Execute(this.m_ClientOrder, methodResult);
            this.AreDemographicsEnabled = methodResult.Success;
            this.AreSpecimenEnabled = methodResult.Success;
            this.AreButtonsEnabled = methodResult.Success;

            InitializeComponent();

            this.DataContext = this;
            this.Loaded += new RoutedEventHandler(OrderEntryPage_Loaded);
        }
Beispiel #16
0
        private void ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            int    clientId = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.PrimaryClientId;
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.ClientOrder.Model.Shipment shipment = new Business.ClientOrder.Model.Shipment(objectId, clientId, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName,
                                                                                                                        YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.Client.ClientName);

            this.m_ObjectTracker = new Business.Persistence.ObjectTracker();
            this.m_ObjectTracker.RegisterRootInsert(shipment);

            YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy         proxy = new Proxy.SubmitterServiceProxy();
            YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent();
            this.m_ObjectTracker.PrepareRemoteTransferAgent(shipment, remoteObjectTransferAgent);
            proxy.Submit(remoteObjectTransferAgent);

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection = new Business.ClientOrder.Model.ClientOrderDetailCollection();
            ShipmentDetailsPage shipmentDetailsPage = new ShipmentDetailsPage(shipment, clientOrderDetailCollection, this.m_ObjectTracker);

            ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(shipmentDetailsPage);
        }
Beispiel #17
0
        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 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 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 ButtonNew_Click(object sender, RoutedEventArgs e)
        {
            int clientId = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.PrimaryClientId;
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            YellowstonePathology.Business.ClientOrder.Model.Shipment shipment = new Business.ClientOrder.Model.Shipment(objectId, clientId, YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName,
                YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.Client.ClientName);

            this.m_ObjectTracker = new Business.Persistence.ObjectTracker();
            this.m_ObjectTracker.RegisterRootInsert(shipment);

            YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy proxy = new Proxy.SubmitterServiceProxy();
            YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent();
            this.m_ObjectTracker.PrepareRemoteTransferAgent(shipment, remoteObjectTransferAgent);
            proxy.Submit(remoteObjectTransferAgent);

            YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailCollection clientOrderDetailCollection = new Business.ClientOrder.Model.ClientOrderDetailCollection();
            ShipmentDetailsPage shipmentDetailsPage = new ShipmentDetailsPage(shipment, clientOrderDetailCollection, this.m_ObjectTracker);
            ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(shipmentDetailsPage);
        }