private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     this.SetContainerIdValidity(true);
     if (this.ContainerIdValid == true)
     {
         YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
         Return(this, args);
     }
 }
Esempio n. 2
0
 private void OwnershipPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
 {
     ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
     YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus();
     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;
 }
Esempio n. 3
0
        //private void StartThinPrepPapSpecimenPath()
        //{
        //	YellowstonePathology.Business.ClientOrder.Model.CytologyClientOrder cytologyClientOrder = (YellowstonePathology.Business.ClientOrder.Model.CytologyClientOrder)this.m_ClientOrder;
        //	ThinPrepPapSpecimenPath thinPrepPapSpecimenPath = new ThinPrepPapSpecimenPath(cytologyClientOrder, this.m_ClientOrderDetail, this.m_ClientOrderDetailWizardMode);
        //	thinPrepPapSpecimenPath.Return += new ThinPrepPapSpecimenPath.ReturnEventHandler(Page_Return);
        //	thinPrepPapSpecimenPath.Start();
        //}

        private void Page_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                Return(this, e);
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                Return(this, e);
                break;
            }
        }
        private void OrderTypePage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                YellowstonePathology.Business.ClientOrder.Model.ClientOrder specificClientOrder = (YellowstonePathology.Business.ClientOrder.Model.ClientOrder)e.Data;
                this.GoToOrderEntryPage(specificClientOrder);
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;
            }
        }
Esempio n. 5
0
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);
     dataValidator.UpdateValidBindingSources();
     YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
     if (validationResult.IsValid == false)
     {
         MessageBox.Show(validationResult.Message);
     }
     else
     {
         YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
         Return(this, args);
     }
 }
Esempio n. 6
0
        private void Path_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                this.Save(true);
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.Save(true);
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;
            }
        }
Esempio n. 7
0
        private void OrderTypePage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                //Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
                Return(this, e);
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                //Shared.PageNavigationReturnEventArgs args1 = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
                Return(this, e);
                break;
            }
        }
Esempio n. 8
0
        private void SurgicalClientOrderInformationPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.ShowSpecimenDescriptionFromClientInformationPage();
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                if (this.UpdateClientOrderDetailGoingBack() == true)
                {
                    this.ShowOrderEntryPage(e);
                }
                break;
            }
        }
Esempio n. 9
0
        private void PlacentaDescriptionPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.ShowPlacentalPathologyQuestionnairePage();
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                if (this.UpdateClientOrderDetailGoingBack() == true)
                {
                    this.ShowOrderEntryPage(e);
                }
                break;
            }
        }
Esempio n. 10
0
        private void ScanContainerPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                ShowSpecimenDescriptionOtherPage();
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                if (this.UpdateClientOrderDetailGoingForward() == true)
                {
                    this.ShowOrderEntryPage(e);
                }
                break;
            }
        }
Esempio n. 11
0
        private void OrderDetailTypePage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:

                string orderedBy = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType clientOrderDetailType = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType)e.Data;
                YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetail     clientOrderDetail     = this.m_ClientOrder.ClientOrderDetailCollection.GetNextItem(string.Empty, this.m_ClientOrder.ClientOrderId,
                                                                                                                                                                         clientOrderDetailType.Code, "YPICONNECT", null, null, this.m_ClientOrder.ClientLocation.SpecimenTrackingInitiated, orderedBy, this.m_ClientOrder.CollectionDate);
                this.StartSpecimenOrderEntryPath(clientOrderDetail, ClientOrderDetailWizardModeEnum.AddNew);
                break;
            }
        }
Esempio n. 12
0
        private void PlacentalPathologyQuestionnairePage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                if (this.m_ShowSurgicalClientOrderInformation == true)
                {
                    this.ShowPlacentaDescriptionFromClientInformationPage();
                }
                else
                {
                    this.ShowPlacentaDescriptionPage();
                }
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.ShowPlacentalPathologyQuestionnaireIndicationsPage();
                break;
            }
        }
Esempio n. 13
0
        private void HyperlinkSubmit_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus();
            Rules.ClientOrderValidation clientOrderValidation = new Rules.ClientOrderValidation(executionStatus);
            clientOrderValidation.Execute(this.m_ClientOrder);

            if (executionStatus.Halted == false)
            {
                this.m_ClientOrder.Submitted = true;
                this.m_ClientOrder.ClientOrderDetailCollection.MarkAsSubmitted();
                Save(false);

                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
            else
            {
                YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus);
                executionStatusDialog.ShowDialog();
            }
        }
Esempio n. 14
0
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            if (this.Validate(true) == true)
            {
                YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSet) this.ListBoxOrderType.SelectedItem;

                YellowstonePathology.Business.ClientOrder.Model.ClientOrder specificClientOrder = YellowstonePathology.Business.ClientOrder.Model.ClientOrderFactory.GetSpecificClientOrder(panelSet);
                specificClientOrder.Join(this.m_BaseClientOrder);

                YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy submitterServiceProxy = new Proxy.SubmitterServiceProxy();
                submitterServiceProxy.InsertBaseClassOnly(specificClientOrder);
                this.m_ObjectTracker.RegisterObject(specificClientOrder);
                specificClientOrder.PanelSetId = panelSet.PanelSetId;

                YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent();
                this.m_ObjectTracker.PrepareRemoteTransferAgent(specificClientOrder, remoteObjectTransferAgent);
                submitterServiceProxy.Submit(remoteObjectTransferAgent);

                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, specificClientOrder);
                Return(this, args);
            }
        }
Esempio n. 15
0
        private void ButtonBack_Click(object sender, RoutedEventArgs e)
        {
            if (this.ContainerExists() == true)
            {
                this.TextBlockContainerId.TextChanged -= this.TextBlockContainerId_TextChanged;
                this.TextBlockContainerId.Text         = this.m_ClientOrderDetailClone.ContainerId;
                this.TextBlockContainerId.TextChanged += this.TextBlockContainerId_TextChanged;
            }

            YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);
            dataValidator.UpdateValidBindingSources();
            YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
            if (validationResult.IsValid == false)
            {
                MessageBox.Show(validationResult.Message);
                this.TextBlockContainerId.Focus();
                this.TextBlockContainerId.Select(0, this.TextBlockContainerId.Text.Length);
            }
            else
            {
                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
        }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
Esempio n. 17
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ValidateAndUpdateBindingSources(true) == true)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType clientOrderDetailType = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType) this.ListBoxClientOrderDetailType.SelectedItem;
         YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs  args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, clientOrderDetailType);
         Return(this, args);
     }
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_PlacentaClientOrderDetail);
     dataValidator.UpdateValidBindingSources();
     YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
     if (validationResult.IsValid == false)
     {
         MessageBox.Show("A Pathology Test Order must be selected.");
     }
     else
     {
         validationResult = dataValidator.ValidateDomain();
         if (validationResult.IsValid == false)
         {
             MessageBox.Show("A Pathology Test Order must be selected.");
         }
         else
         {
             if (this.m_PlacentaClientOrderDetail.DateSubmitted.HasValue == false)
             {
                 this.m_PlacentaClientOrderDetail.DateSubmitted = DateTime.Now;
                 this.m_PlacentaClientOrderDetail.SubmittedBy   = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName;
             }
             YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
             Return(this, args);
         }
     }
 }
Esempio n. 19
0
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     this.ValidateAndUpdateBindingSources(false);
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
Esempio n. 20
0
        private void HyperlinkSubmit_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.ExecutionStatus executionStatus = new Business.Rules.ExecutionStatus();
            Rules.ClientOrderValidation clientOrderValidation = new Rules.ClientOrderValidation(executionStatus);
            clientOrderValidation.Execute(this.m_ClientOrder);

            if (executionStatus.Halted == false)
            {
                this.m_ClientOrder.Submitted = true;
                this.m_ClientOrder.ClientOrderDetailCollection.MarkAsSubmitted();
                Save(false);

                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
            else
            {
                YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus);
                executionStatusDialog.ShowDialog();
            }
        }
Esempio n. 21
0
 private void HyperlinkBack_Click(object sender, RoutedEventArgs e)
 {
     this.m_ClientOrder.NotifyPropertyChanged("");
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
Esempio n. 22
0
        private void PlacentalPathologyQuestionnaireTestOrderPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                this.ShowPlacentalPathologyQuestionnaireIndicationsPage();
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.ShowScanContainerPage();
                break;
            }
        }
Esempio n. 23
0
 private void ShowOrderEntryPage(YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args)
 {
     Return(this, args);
 }
Esempio n. 24
0
 private void HyperlinkBack_Click(object sender, RoutedEventArgs e)
 {
     this.m_ClientOrder.NotifyPropertyChanged("");
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     this.SetContainerIdValidity(true);
     if (this.ContainerIdValid == true)
     {
         YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
         Return(this, args);
     }
 }
Esempio n. 26
0
        private void ShowSpecimenDescriptionPageFromClientInformationPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next:
                this.ShowScanContainerPage();
                break;

            case YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back:
                this.ShowSurgicalClientOrderInformationPage();
                break;
            }
        }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_PlacentaClientOrderDetail);
     dataValidator.UpdateValidBindingSources();
     YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
     if (validationResult.IsValid == false)
     {
         MessageBox.Show("A Pathology Test Order must be selected.");
     }
     else
     {
         validationResult = dataValidator.ValidateDomain();
         if (validationResult.IsValid == false)
         {
             MessageBox.Show("A Pathology Test Order must be selected.");
         }
         else
         {
             if (this.m_PlacentaClientOrderDetail.DateSubmitted.HasValue == false)
             {
                 this.m_PlacentaClientOrderDetail.DateSubmitted = DateTime.Now;
                 this.m_PlacentaClientOrderDetail.SubmittedBy = YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.DisplayName;
             }
             YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
             Return(this, args);
         }
     }
 }
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     this.ValidateAndUpdateBindingSources(false);
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);
     dataValidator.UpdateValidBindingSources();
     YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
     if (validationResult.IsValid == false)
     {
         MessageBox.Show(validationResult.Message);
     }
     else
     {
         validationResult = dataValidator.ValidateDomain();
         if (validationResult.IsValid == false)
         {
             MessageBox.Show(validationResult.Message);
         }
         else
         {
             YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
             Return(this, args);
         }
     }
 }
        private void ButtonBack_Click(object sender, RoutedEventArgs e)
        {
            if (this.ContainerExists() == true)
            {
                this.TextBlockContainerId.TextChanged -= this.TextBlockContainerId_TextChanged;
                this.TextBlockContainerId.Text = this.m_ClientOrderDetailClone.ContainerId;
                this.TextBlockContainerId.TextChanged += this.TextBlockContainerId_TextChanged;
            }

            YellowstonePathology.Business.Validation.DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);
            dataValidator.UpdateValidBindingSources();
            YellowstonePathology.Business.Validation.ValidationResult validationResult = dataValidator.ValidateDataTypes();
            if (validationResult.IsValid == false)
            {
                MessageBox.Show(validationResult.Message);
                this.TextBlockContainerId.Focus();
                this.TextBlockContainerId.Select(0, this.TextBlockContainerId.Text.Length);
            }
            else
            {
                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
        }
Esempio n. 31
0
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            if (this.Validate(true) == true)
            {
                YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSet)this.ListBoxOrderType.SelectedItem;

                YellowstonePathology.Business.ClientOrder.Model.ClientOrder specificClientOrder = YellowstonePathology.Business.ClientOrder.Model.ClientOrderFactory.GetSpecificClientOrder(panelSet);
                specificClientOrder.Join(this.m_BaseClientOrder);

                YellowstonePathology.YpiConnect.Proxy.SubmitterServiceProxy submitterServiceProxy = new Proxy.SubmitterServiceProxy();
                submitterServiceProxy.InsertBaseClassOnly(specificClientOrder);
                this.m_ObjectTracker.RegisterObject(specificClientOrder);
                specificClientOrder.PanelSetId = panelSet.PanelSetId;

                YellowstonePathology.Business.Persistence.RemoteObjectTransferAgent remoteObjectTransferAgent = new Business.Persistence.RemoteObjectTransferAgent();
                this.m_ObjectTracker.PrepareRemoteTransferAgent(specificClientOrder, remoteObjectTransferAgent);
                submitterServiceProxy.Submit(remoteObjectTransferAgent);

                YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, specificClientOrder);
                Return(this, args);
            }
        }
Esempio n. 32
0
        //private void ShowThinPrepPapOrderEntryPage(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder)
        //{
        //	YellowstonePathology.Business.Persistence.ObjectTracker objectTracker = new Persistence.ObjectTracker();
        //	objectTracker.RegisterObject(clientOrder);
        //	OrderEntry.ThinPrepPapOrderEntryPage orderEntryPage = new OrderEntry.ThinPrepPapOrderEntryPage((YellowstonePathology.Business.ClientOrder.Model.CytologyClientOrder)clientOrder, objectTracker);
        //	orderEntryPage.Return += new ThinPrepPapOrderEntryPage.ReturnEventHandler(OrderEntryPage_Return);
        //	ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(orderEntryPage);
        //}

        private void OrderEntryPage_Return(object sender, YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs e)
        {
            ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
        }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ValidateAndUpdateBindingSources(true) == true)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType clientOrderDetailType = (YellowstonePathology.Business.ClientOrder.Model.ClientOrderDetailType)this.ListBoxClientOrderDetailType.SelectedItem;
         YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, clientOrderDetailType);
         Return(this, args);
     }
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs args = new YellowstonePathology.YpiConnect.Client.PageNavigationReturnEventArgs(YellowstonePathology.YpiConnect.Client.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }