Exemple #1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionW3 questionW3 = new QuestionW3();

            questionW3.TopMost = false;
            questionW3.ShowDialog();
            this.Close();
        }
Exemple #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResult = radCheckW08A.Checked ? "A" : radCheckW08B.Checked?"B":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08";
            question.QuestionType   = 1;   //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);
            if (radCheckW08A.Checked)
            {
                string questionResultA = radCheckW081A.Checked ? "A" : radCheckW081B.Checked?"B":"";
                if (string.IsNullOrEmpty(questionResultA))
                {
                    MessageBox.Show("请选择是否您的二级内血缘亲属");
                    return;
                }
                M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();
                questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08.1";
                questionA.QuestionType   = 1;   //单选
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);

                string questionResultB = radCheckW082A.Checked ? "A" : radCheckW082B.Checked?"B":"";
                if (string.IsNullOrEmpty(questionResultB))
                {
                    MessageBox.Show("请选择是否您的一级内血缘亲属");
                    return;
                }
                M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();
                questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".W08.2";
                questionB.QuestionType   = 1;   //单选
                questionB.QuestionResult = questionResultB;
                ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiRuXianAi);
            }


            QuestionW3 questionW3 = new QuestionW3();

            questionW3.TopMost = false;
            questionW3.ShowDialog();
            this.Close();
        }