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

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
Beispiel #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 + ".1";
            question1.QuestionType   = 1;
            //打分
            if (strResult.Contains("A") || strResult.Contains("B"))
            {
                question1.QuestionScore = 5;
            }
            else
            {
                question1.QuestionScore = 0;
            }

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.KangFuLunYi);

            QuestionTwo frmNext = new QuestionTwo();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            //frmNext.Show();
            this.Close();
        }