Ejemplo n.º 1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionA2 questionA2 = new QuestionA2();

            questionA2.TopMost = false;
            questionA2.ShowDialog();
            this.Close();
        }
Ejemplo n.º 2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string questionResultA07 = this.radCheckA.Checked ? "A" : radCheckB.Checked ? "B" : radCheckC.Checked ? "C" : radCheckD.Checked ? "D" : radCheckE.Checked ? "E" : radCheckF.Checked?"F":"";
            M_QuestionnaireResultDetail questionA07 = new M_QuestionnaireResultDetail();

            questionA07.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".A07";
            questionA07.QuestionType   = 1;  //单选
            questionA07.QuestionResult = questionResultA07;
            ClientInfo.AddQuestionToQuestionnaire(questionA07, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResultA08 = this.radCheckA08A.Checked ? "A" : radCheckA08B.Checked?"B":"";
            M_QuestionnaireResultDetail questionA08 = new M_QuestionnaireResultDetail();

            questionA08.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".A08";
            questionA08.QuestionType   = 1;  //单选
            questionA08.QuestionResult = questionResultA08;
            ClientInfo.AddQuestionToQuestionnaire(questionA08, QuestionnaireCode.ZaoAiRuXianAi);

            string questionResult = this.radCheckA09A.Checked ? "A" : radCheckA09B.Checked?"B":"";
            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".A09";
            question.QuestionType   = 1;  //单选
            question.QuestionResult = questionResult;
            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.ZaoAiRuXianAi);
            if (radCheckA09A.Checked)
            {
                string questionResultA = "";
                if (cbCheckA.Checked)
                {
                    questionResultA += "A,";
                }
                if (cbCheckB.Checked)
                {
                    questionResultA += "B,";
                }
                if (cbCheckC.Checked)
                {
                    questionResultA += "C,";
                }
                if (cbCheckD.Checked)
                {
                    questionResultA += "D,";
                }
                if (cbCheckE.Checked)
                {
                    questionResultA += "E,";
                }
                if (cbCheckF.Checked)
                {
                    questionResultA += "F,";
                }
                if (cbCheckG.Checked)
                {
                    questionResultA += "G,";
                }
                if (cbCheckH.Checked)
                {
                    questionResultA += "H,";
                }
                M_QuestionnaireResultDetail questionA = new M_QuestionnaireResultDetail();
                questionA.QuestionCode   = Public.QuestionnaireCode.ZaoAiRuXianAi + ".A09.1";
                questionA.QuestionType   = 2;  //单选
                questionA.QuestionResult = questionResultA;
                ClientInfo.AddQuestionToQuestionnaire(questionA, QuestionnaireCode.ZaoAiRuXianAi);
            }

            QuestionA2 questionA2 = new QuestionA2();

            questionA2.TopMost = false;
            questionA2.ShowDialog();
            //questionA2.Show();
            this.Close();
        }