Пример #1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionE2 questionE2 = new QuestionE2();

            questionE2.TopMost = false;
            questionE2.ShowDialog();
            this.Close();
        }
Пример #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultE01 = radCheckE01A.Checked ? "A" : radCheckE01B.Checked?"B":"";
            M_QuestionnaireResultDetail questionE01 = new M_QuestionnaireResultDetail();

            questionE01.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E01";
            questionE01.QuestionType   = 1;   //单选
            questionE01.QuestionResult = questionResultE01;
            ClientInfo.AddQuestionToQuestionnaire(questionE01, QuestionnaireCode.ZaoAiDaChangAi);

            if (radCheckE01A.Checked)
            {
                if (string.IsNullOrEmpty(this.txtE011.Text))
                {
                    MessageBox.Show("请输入您的癌症病史!");
                    this.label4.ForeColor = Color.Red;
                    return;
                }
                string questionResultA = this.txtE011.Text;
                M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();
                questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E01.1";
                questionA.QuestionType   = 3;   //填空
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiDaChangAi);
            }

            string questionResultB = radCheckE074A.Checked ? "A" : radCheckE074B.Checked?"B":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.4";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiDaChangAi);

            string questionResultC = radCheckE078A.Checked ? "A" : radCheckE078B.Checked?"B":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.8";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiDaChangAi);

            string questionResultD = radCheckE079A.Checked ? "A" : radCheckE079B.Checked?"B":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".E07.9";
            questionD.QuestionType   = 1;   //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiDaChangAi);


            QuestionE2 questionE2 = new QuestionE2();

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