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

            if (rd1A.Checked) question1.QuestionResult = "A,";
            if (rd1B.Checked) question1.QuestionResult = "B,";
            //打分
            question1.QuestionScore = !string.IsNullOrEmpty(question1.QuestionResult) ? (question1.QuestionResult.Contains("A") ? 10 : 0) : 0;

            AddResult(question1, QuestionnaireCode.KangFuJiZhu + ".3.B.1");

            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();

            if (rd2A.Checked) question2.QuestionResult = "A,";
            if (rd2B.Checked) question2.QuestionResult = "B,";
            //打分
            question2.QuestionScore = !string.IsNullOrEmpty(question2.QuestionResult) ? (question2.QuestionResult.Contains("A") ? 10 : 0) : 0;

            AddResult(question2, QuestionnaireCode.KangFuJiZhu + ".3.B.2");

            M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail();

            if (rd3A.Checked) question3.QuestionResult = "A,";
            if (rd3B.Checked) question3.QuestionResult = "B,";
            //打分
            question3.QuestionScore = !string.IsNullOrEmpty(question3.QuestionResult) ? (question3.QuestionResult.Contains("A") ? 10 : 0) : 0;

            AddResult(question3, QuestionnaireCode.KangFuJiZhu + ".3.B.3");

            QuestionSix frmNext = new QuestionSix();
            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
예제 #2
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionSix frmBefore = new QuestionSix();

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