示例#1
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();

            string strResult = "";

            if (rdA.Checked)
            {
                strResult = "A,";
            }

            if (rdB.Checked)
            {
                strResult = "B,";
            }

            question1.QuestionResult = strResult;
            question1.QuestionCode   = QuestionnaireCode.KangFuLunYi + ".3";
            question1.QuestionType   = 1;
            //打分
            question1.QuestionScore = strResult.Contains("B") ? 10 : 0;

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionFour frmNext = new QuestionFour();

            frmNext.TopMost = false;
            frmNext.ShowDialog();

            this.Close();
        }
示例#2
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionFour frmBefore = new QuestionFour();

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