Esempio n. 1
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

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

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

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuJiZhu + ".1";
            question.QuestionType   = 1;
            question.QuestionResult = strResult;
            //打分
            question.QuestionScore = strResult.Contains("A") ? 10 : 0;

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuJiZhu);
            QuestionTwo frmNext = new QuestionTwo();

            //frmNext.ShowDialog();
            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
Esempio n. 2
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionTwo frmBefore = new QuestionTwo();

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