Ejemplo n.º 1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionSix frmBefore = new QuestionSix();

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
Ejemplo n.º 2
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";
            }
            AddResult(question1, QuestionnaireCode.NaoCuZhong + ".5", 1);

            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();

            if (rd2A.Checked)
            {
                question2.QuestionResult = "A";
            }
            if (rd2B.Checked)
            {
                question2.QuestionResult = "B";
            }
            AddResult(question2, QuestionnaireCode.NaoCuZhong + ".6", 1);

            M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail();

            question3.QuestionResult = txt61.Text.Trim();
            AddResult(question3, QuestionnaireCode.NaoCuZhong + ".6.1", 3);

            M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail();

            question4.QuestionResult = txt62.Text.Trim();
            AddResult(question4, QuestionnaireCode.NaoCuZhong + ".6.2", 3);

            M_QuestionnaireResultDetail question5 = new M_QuestionnaireResultDetail();

            question5.QuestionResult = txt63.Text.Trim();
            AddResult(question5, QuestionnaireCode.NaoCuZhong + ".6.3", 3);

            M_QuestionnaireResultDetail question51 = new M_QuestionnaireResultDetail();

            question51.QuestionResult = txtBMI.Text.Trim();
            AddResult(question51, QuestionnaireCode.NaoCuZhong + ".6.3.1", 3);


            M_QuestionnaireResultDetail question6 = new M_QuestionnaireResultDetail();

            question6.QuestionResult = txt64.Text.Trim();
            AddResult(question6, QuestionnaireCode.NaoCuZhong + ".6.4", 3);

            M_QuestionnaireResultDetail question61 = new M_QuestionnaireResultDetail();

            question61.QuestionResult = txtYTB.Text.Trim();
            AddResult(question61, QuestionnaireCode.NaoCuZhong + ".6.4.1", 3);


            M_QuestionnaireResultDetail question7 = new M_QuestionnaireResultDetail();

            if (rd3A.Checked)
            {
                question7.QuestionResult = "A";
            }
            if (rd3B.Checked)
            {
                question7.QuestionResult = "B";
            }
            AddResult(question7, QuestionnaireCode.NaoCuZhong + ".7", 1);

            QuestionSix frmNext = new QuestionSix();

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