コード例 #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 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;
            }
        }
コード例 #3
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);
                }
            }
        }