public ThinPrepPapOrderEntryPage(YellowstonePathology.Domain.ClientOrder.Model.CytologyClientOrder clientOrder, YellowstonePathology.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 ThinPrepPapOrderEntryPage(YellowstonePathology.Domain.ClientOrder.Model.CytologyClientOrder clientOrder, YellowstonePathology.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);
        }
Exemplo n.º 3
0
        public void Submit(YellowstonePathology.Domain.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Persistence.ObjectTracker objectTracker)
        {
            YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy proxy            = new Proxy.SubmitterServiceProxy();
            YellowstonePathology.Persistence.SubmissionResult           submissionResult = proxy.Submit(clientOrder, objectTracker);

            if (submissionResult.Success == true)
            {
                objectTracker.Deregister(clientOrder);
                objectTracker.RegisterObject(clientOrder);
            }
            else
            {
                System.Windows.MessageBox.Show("There was an error saving the data.");
            }
        }