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

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
Exemple #2
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,";
            }

            if (rdC.Checked)
            {
                strResult = "C,";
            }

            if (rdD.Checked)
            {
                strResult = "D,";
            }

            question1.QuestionResult = strResult;
            question1.QuestionCode   = QuestionnaireCode.KangFuLunYi + ".6";
            question1.QuestionType   = 1;
            if (strResult.Contains("A") || strResult.Contains("B"))
            {
                question1.QuestionScore = 5;
            }
            else
            {
                question1.QuestionScore = 0;
            }

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionSeven frmNext = new QuestionSeven();

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

            this.Close();
        }