Example #1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionB2 questionB2 = new QuestionB2();

            questionB2.TopMost = false;
            questionB2.ShowDialog();
            this.Close();
        }
Example #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA = this.radCheckB13A.Checked ? "A" : radCheckB13B.Checked ? "B" : radCheckB13C.Checked?"C":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

            questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.3";
            questionA.QuestionType   = 1;   //单选
            questionA.QuestionResult = questionResultA;
            ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiWeiAi);

            string questionResultB = this.radCheckB15A.Checked ? "A" : radCheckB15B.Checked ? "B" : radCheckB15C.Checked?"C":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

            questionB.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.5";
            questionB.QuestionType   = 1;   //单选
            questionB.QuestionResult = questionResultB;
            ClientInfo.AddQuestionToQuestionnaire(questionB, QuestionnaireCode.ZaoAiWeiAi);

            string questionResultC = this.radCheckB16A.Checked ? "A" : radCheckB16B.Checked ? "B" : radCheckB16C.Checked?"C":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

            questionC.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.6";
            questionC.QuestionType   = 1;   //单选
            questionC.QuestionResult = questionResultC;
            ClientInfo.AddQuestionToQuestionnaire(questionC, QuestionnaireCode.ZaoAiWeiAi);


            string questionResultD = this.radCheckB17A.Checked ? "A" : radCheckB17B.Checked ? "B" : radCheckB17C.Checked?"C":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

            questionD.QuestionCode   = Public.QuestionnaireCode.ZaoAiWeiAi + ".B01.7";
            questionD.QuestionType   = 1;   //单选
            questionD.QuestionResult = questionResultD;
            ClientInfo.AddQuestionToQuestionnaire(questionD, QuestionnaireCode.ZaoAiWeiAi);


            QuestionB2 questionB2 = new QuestionB2();

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