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

            questionC1.TopMost = false;
            questionC1.ShowDialog();
            this.Close();
        }
Пример #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //B01.4
            string questionResultA = this.radCheckB014A.Checked ? "A" : radCheckB014B.Checked ? "B" : radCheckB014C.Checked?"C":"";
            M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();

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

            //B01.5
            string questionResultB = this.radCheckB015A.Checked ? "A" : radCheckB015B.Checked ? "B" : radCheckB015C.Checked?"C":"";
            M_QuestionnaireResultDetail questionB = new M_QuestionnaireResultDetail();

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

            //B01.6
            string questionResultC = this.radCheckB016A.Checked ? "A" : radCheckB016B.Checked ? "B" : radCheckB016C.Checked?"C":"";
            M_QuestionnaireResultDetail questionC = new M_QuestionnaireResultDetail();

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

            //B01.7
            string questionResultD = this.radCheckB017A.Checked ? "A" : radCheckB017B.Checked ? "B" : radCheckB017C.Checked?"C":"";
            M_QuestionnaireResultDetail questionD = new M_QuestionnaireResultDetail();

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

            //B01.8
            string questionResultE = this.radCheckB018A.Checked ? "A" : radCheckB018B.Checked ? "B" : radCheckB018C.Checked?"C":"";
            M_QuestionnaireResultDetail questionE = new M_QuestionnaireResultDetail();

            questionE.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".B01.8";
            questionE.QuestionType   = 1;  //单选
            questionE.QuestionResult = questionResultE;
            ClientInfo.AddQuestionToQuestionnaire(questionE, QuestionnaireCode.ZaoAiDaChangAi);

            QuestionC1 questionC1 = new QuestionC1();

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