Esempio n. 1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionSix frmBefore = new QuestionSix();

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
Esempio n. 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 + ".5";
            question.QuestionType   = 1;//单选
            question.QuestionResult = strResult;
            //打分
            int score = 0;

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

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);

            QuestionSix frmNext = new QuestionSix();

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