예제 #1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionC2 questionC2 = new QuestionC2();

            questionC2.TopMost = false;
            questionC2.ShowDialog();
            this.Close();
        }
예제 #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            if (radCheckC03A.Checked)
            {
                string questionResult = "A";
                M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();
                question.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03";
                question.QuestionType   = 1; //单选
                question.QuestionResult = questionResult;
                ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiDaChangAi);
            }

            if (radCheckC03B.Checked)
            {
                string questionResult = "B";
                M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();
                question.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03";
                question.QuestionType   = 1; //单选
                question.QuestionResult = questionResult;
                ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiDaChangAi);

                string resultChildA = this.radCheckC031A.Checked ? "A" : radCheckC031B.Checked ? "B" : this.radCheckC031C.Checked ? "C" : radCheckC031D.Checked?"D":"";
                M_QuestionnaireResultDetail questionChildA = new M_QuestionnaireResultDetail();
                questionChildA.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03.1";
                questionChildA.QuestionType   = 1; //单选
                questionChildA.QuestionResult = resultChildA;
                ClientInfo.AddQuestionToQuestionnaire(questionChildA, QuestionnaireCode.ZaoAiDaChangAi);

                string resultChildB = this.radCheckC032A.Checked ? "A" : radCheckC032B.Checked ? "B" : this.radCheckC032C.Checked ? "C" : radCheckC032D.Checked?"D":"";
                M_QuestionnaireResultDetail questionChildB = new M_QuestionnaireResultDetail();
                questionChildB.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03.2";
                questionChildB.QuestionType   = 1; //单选
                questionChildB.QuestionResult = resultChildB;
                ClientInfo.AddQuestionToQuestionnaire(questionChildB, QuestionnaireCode.ZaoAiDaChangAi);
            }

            if (radCheckC03C.Checked)
            {
                string questionResult = "C";
                M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();
                question.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03";
                question.QuestionType   = 1; //单选
                question.QuestionResult = questionResult;
                ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiDaChangAi);

                string resultChildA = this.radCheckC031A.Checked ? "A" : radCheckC031B.Checked ? "B" : this.radCheckC031C.Checked ? "C" : radCheckC031D.Checked ? "D" : "";
                M_QuestionnaireResultDetail questionChildA = new M_QuestionnaireResultDetail();
                questionChildA.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03.1";
                questionChildA.QuestionType   = 1; //单选
                questionChildA.QuestionResult = resultChildA;
                ClientInfo.AddQuestionToQuestionnaire(questionChildA, QuestionnaireCode.ZaoAiDaChangAi);

                string resultChildB = this.radCheckC032A.Checked ? "A" : radCheckC032B.Checked ? "B" : this.radCheckC032C.Checked ? "C" : radCheckC032D.Checked ? "D" : "";
                M_QuestionnaireResultDetail questionChildB = new M_QuestionnaireResultDetail();
                questionChildB.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03.2";
                questionChildB.QuestionType   = 1; //单选
                questionChildB.QuestionResult = resultChildB;
                ClientInfo.AddQuestionToQuestionnaire(questionChildB, QuestionnaireCode.ZaoAiDaChangAi);

                string resultChildC = this.radCheckC033A.Checked ? "A" : radCheckC033B.Checked ? "B" :"";
                M_QuestionnaireResultDetail questionChildC = new M_QuestionnaireResultDetail();
                questionChildC.QuestionCode   = Public.QuestionnaireCode.ZaoAiDaChangAi + ".C03.3";
                questionChildC.QuestionType   = 1; //单选
                questionChildC.QuestionResult = resultChildC;
                ClientInfo.AddQuestionToQuestionnaire(questionChildC, QuestionnaireCode.ZaoAiDaChangAi);
            }


            QuestionC2 questionC2 = new QuestionC2();

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