コード例 #1
0
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            DataValidator dataValidator = this.CreateDataValidator(this.m_CytologyClientOrderClone);

            dataValidator.UpdateValidBindingSources();
            YellowstonePathology.Shared.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
                {
                    Shared.PageNavigationReturnEventArgs args = null;
                    if (this.m_CytologyClientOrderClone.ScreeningType == "Diagnositic Pap" || this.m_CytologyClientOrderClone.ScreeningType == "Other")
                    {
                        args = new CytologyScreeningTypePageEventArgs(true, Shared.PageNavigationDirectionEnum.Next, null);
                    }
                    else
                    {
                        args = new CytologyScreeningTypePageEventArgs(false, Shared.PageNavigationDirectionEnum.Next, null);
                    }
                    Return(this, args);
                }
            }
        }
コード例 #2
0
        private void FNASpecimenListPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAProperty clientOrderFNAProperty = (YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAProperty)e.Data;
                foreach (YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAProperty item in this.m_ClientOrderFNAPropertyCollection)
                {
                    if (item.ClientOrderFNAPropertyId == clientOrderFNAProperty.ClientOrderFNAPropertyId)
                    {
                        this.m_ClientOrderFNAProperty = item;
                        break;
                    }
                }
                this.ShowFNASpecimenPassPage();
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.GoBack();
                break;

            case Shared.PageNavigationDirectionEnum.Command:
                this.ShowFNASpecimenPage();
                break;
            }
        }
コード例 #3
0
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);

            dataValidator.UpdateValidBindingSources();
            YellowstonePathology.Shared.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
                {
                    Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
                    Return(this, args);
                }
            }
        }
コード例 #4
0
 private void HyperlinkNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxClientOrderFNAProperties.SelectedItem != null)
     {
         Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, (YellowstonePathology.YpiConnect.Contract.Order.ClientOrderFNAProperty) this.ListBoxClientOrderFNAProperties.SelectedItem);
         Return(this, args);
     }
 }
コード例 #5
0
 private void OwnershipPage_Return(object sender, Shared.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;
 }
コード例 #6
0
        private void FNASpecimenPassPageCommand_Return(Shared.PageNavigationReturnEventArgs e)
        {
            PageNavigationCommandEnum pageNavigationCommandEnum = (PageNavigationCommandEnum)e.Data;

            switch (pageNavigationCommandEnum)
            {
            case PageNavigationCommandEnum.Finish:
                this.ShowOrderEntryPage();
                break;
            }
        }
コード例 #7
0
ファイル: BoneMarrowPath.cs プロジェクト: waffle-iron/YPILIS
        private void SpecimenListPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.GoBack();
                break;

            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowOrderEntryPage();
                break;
            }
        }
コード例 #8
0
        private void ScanContainerPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                ShowCytologyClinicalHistoryPage();
                break;

            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowCytologySpecimenSourcePage();
                break;
            }
        }
コード例 #9
0
        private void CytologyIcd9EntryPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowCytologyClinicalHistoryPage();
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                this.ShowCytologyIcd9CodingPage();
                break;
            }
        }
コード例 #10
0
        private void ButtonAddPass_Click(object sender, RoutedEventArgs e)
        {
            this.AddClientOrderFNAPropertyToCollection();
            Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.AddPass);
            Return(this, args);

            /*
             * YellowstonePathology.YpiConnect.Contract.Order.ClientOrderDetailFNAProperty clientOrderDetailFNAProperty = new Contract.Order.ClientOrderDetailFNAProperty();
             * clientOrderDetailFNAProperty.ClientOrderDetailFNAPropertyId = Guid.NewGuid().ToString();
             * clientOrderDetailFNAProperty.ClientOrderFNAPropertyId = this.m_ClientOrderFNAProperty.ClientOrderFNAPropertyId;
             * this.m_ClientOrderFNAProperty.ClientOrderDetailFNAPropertyCollection.Add(clientOrderDetailFNAProperty);
             * */
        }
コード例 #11
0
        private void Path_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                this.Save();
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;

            case Shared.PageNavigationDirectionEnum.Next:
                this.Save();
                ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(this);
                break;
            }
        }
コード例 #12
0
ファイル: BoneMarrowPath.cs プロジェクト: waffle-iron/YPILIS
        private void BoneMarrowInformationPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                if (this.ShowScanContainerPage() == false)
                {
                    this.ShowSpecimenListPage();
                }
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                ShowOrderEntryPage();
                break;
            }
        }
コード例 #13
0
        private void ScanContainerPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.GoBack();
                break;

            case Shared.PageNavigationDirectionEnum.Command:
                this.AddContainer(e.Data.ToString());
                this.SetClientOrderDetailFNAProperty();
                this.Save();
                ShowFNASpecimenPassPage();
                break;
            }
        }
コード例 #14
0
        private void CytologyTestOrderPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowCytologyIcd9CodingPage();
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                if (this.UpdateClientOrderGoingBack() == true)
                {
                    this.ShowOrderEntryPage(e);
                }
                break;
            }
        }
コード例 #15
0
        private void CytologySpecimenSourcePage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                this.ShowScanContainerPage();
                break;

            case Shared.PageNavigationDirectionEnum.Next:
                if (this.UpdateClientOrderGoingForward() == true)
                {
                    this.ShowOrderEntryPage(e);
                }
                break;
            }
        }
コード例 #16
0
        private void FNASpecimenPassPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowScanContainerPage();
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                this.ShowFNASpecimenPage();
                break;

            case Shared.PageNavigationDirectionEnum.Command:
                this.FNASpecimenPassPageCommand_Return(e);
                break;
            }
        }
コード例 #17
0
ファイル: BoneMarrowPath.cs プロジェクト: waffle-iron/YPILIS
        private void BoneMarrowAspirateScanContainerPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            string containerId = e.Data.ToString();

            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Back:
                ApplicationNavigator.ApplicationContentFrame.NavigationService.GoBack();
                break;

            case Shared.PageNavigationDirectionEnum.Command:
                this.m_BoneMarrowParameters.BoneMarrowAspirateContainerId = containerId;
                this.AddContainer(containerId, this.m_BoneMarrowParameters.BoneMarrowAspirateDetailDescription);
                if (this.ShowScanContainerPage() == false)
                {
                    this.ShowSpecimenListPage();
                }
                break;
            }
        }
コード例 #18
0
        private void CytologyClinicalHistoryPage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                this.ShowScanContainerPage();
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                if (this.m_ClientOrderClone.ScreeningType == "Diagnostic Pap")
                {
                    this.ShowCytologyIcd9EntryPage();
                }
                else
                {
                    this.ShowCytologyIcd9CodingPage();
                }
                break;
            }
        }
コード例 #19
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();

                Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
            else
            {
                YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus);
                executionStatusDialog.ShowDialog();
            }
        }
コード例 #20
0
        private void CytologyScreeningTypePage_Return(object sender, Shared.PageNavigationReturnEventArgs e)
        {
            CytologyScreeningTypePageEventArgs cytologyScreeningTypePageEventArgs = (CytologyScreeningTypePageEventArgs)e;

            switch (e.PageNavigationDirectionEnum)
            {
            case Shared.PageNavigationDirectionEnum.Next:
                if (cytologyScreeningTypePageEventArgs.ManualEntryOfIcd9CodeRequired == true)
                {
                    this.ShowCytologyIcd9EntryPage();
                }
                else
                {
                    this.ShowCytologyClinicalHistoryPage();
                }
                break;

            case Shared.PageNavigationDirectionEnum.Back:
                this.ShowCytologyTestOrderPage();
                break;
            }
        }
コード例 #21
0
 private void HyperlinkBack_Click(object sender, RoutedEventArgs e)
 {
     this.m_ClientOrder.NotifyPropertyChanged("");
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
コード例 #22
0
 /*private void HyperlinkNewSpecimen_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.AddSpecimen);
     Return(this, args);
 }*/
 private void HyperlinkFinish_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.Finish);
         Return(this, args);
 }
コード例 #23
0
 /*private void HyperlinkAddPass_Click(object sender, RoutedEventArgs e)
 {
     this.AddClientOrderDetailFNAProperty();
     int idx = this.m_ClientOrderFNAProperty.ClientOrderDetailFNAPropertyCollection.Count - 1;
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, this.m_ClientOrderFNAProperty.ClientOrderDetailFNAPropertyCollection[idx]);
     Return(this, args);
 }*/
 private void HyperlinkBack_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
コード例 #24
0
 private void ShowOrderEntryPage(Shared.PageNavigationReturnEventArgs args)
 {
     Return(this, args);
 }
コード例 #25
0
 private void HyperlinkNext_Click(object sender, RoutedEventArgs e)
 {
     this.AddClientOrderFNAPropertyToCollection();
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
コード例 #26
0
 private void ShowOrderEntryPage()
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
コード例 #27
0
 private void HyperlinkBack_Click(object sender, RoutedEventArgs e)
 {
     this.m_ClientOrder.NotifyPropertyChanged("");
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
コード例 #28
0
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
     Return(this, args);
 }
コード例 #29
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();

                Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Back, null);
                Return(this, args);
            }
            else
            {
                YellowstonePathology.Business.Rules.ExecutionStatusDialog executionStatusDialog = new Business.Rules.ExecutionStatusDialog(executionStatus);
                executionStatusDialog.ShowDialog();
            }
        }
コード例 #30
0
 private void ButtonFinish_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
コード例 #31
0
        private void ButtonAddPass_Click(object sender, RoutedEventArgs e)
        {
            this.AddClientOrderFNAPropertyToCollection();
            Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.AddPass);
            Return(this, args);

            /*
            YellowstonePathology.YpiConnect.Contract.Order.ClientOrderDetailFNAProperty clientOrderDetailFNAProperty = new Contract.Order.ClientOrderDetailFNAProperty();
            clientOrderDetailFNAProperty.ClientOrderDetailFNAPropertyId = Guid.NewGuid().ToString();
            clientOrderDetailFNAProperty.ClientOrderFNAPropertyId = this.m_ClientOrderFNAProperty.ClientOrderFNAPropertyId;
            this.m_ClientOrderFNAProperty.ClientOrderDetailFNAPropertyCollection.Add(clientOrderDetailFNAProperty);
             * */
        }
コード例 #32
0
 private void HyperlinkNext_Click(object sender, RoutedEventArgs e)
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
コード例 #33
0
 private void HyperlinkNext_Click(object sender, RoutedEventArgs e)
 {
     this.AddClientOrderFNAPropertyToCollection();
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }
コード例 #34
0
        /*private void HyperlinkNewSpecimen_Click(object sender, RoutedEventArgs e)
         * {
         *      Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.AddSpecimen);
         *      Return(this, args);
         * }*/

        private void HyperlinkFinish_Click(object sender, RoutedEventArgs e)
        {
            Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Command, PageNavigationCommandEnum.Finish);
            Return(this, args);
        }
コード例 #35
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     DataValidator dataValidator = this.CreateDataValidator(this.m_ClientOrderDetailClone);
     dataValidator.UpdateValidBindingSources();
     YellowstonePathology.Shared.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
         {
             Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
             Return(this, args);
         }
     }
 }
コード例 #36
0
 private void ShowOrderEntryPage()
 {
     Shared.PageNavigationReturnEventArgs args = new Shared.PageNavigationReturnEventArgs(Shared.PageNavigationDirectionEnum.Next, null);
     Return(this, args);
 }