示例#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 + ".7";
            question1.QuestionType   = 1;
            //打分
            question1.QuestionScore = strResult.Contains("B") ? 10 : 0;

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionEight frmNext = new QuestionEight();

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

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

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