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

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
Example #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (rdA.Checked)
            {
                strResult = "A";
            }
            if (rdB.Checked)
            {
                strResult = "B";
            }
            if (rdC.Checked)
            {
                strResult = "C";
            }
            if (rdD.Checked)
            {
                strResult = "D";
            }

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuZuHuai + ".6";
            question.QuestionType   = 1;//单选
            question.QuestionResult = strResult;
            //打分
            int score = 0;

            if (strResult.Contains("A") || strResult.Contains("B") || strResult.Contains("C"))
            {
                score += 10;
            }
            question.QuestionScore = score;

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);


            QuestionSeven frmNext = new QuestionSeven();

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