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

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }
示例#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,";
            }
            //question1.QuestionResult = rd1A.Checked ? "A," : "B,";
            AddResult(question1, QuestionnaireCode.NaoCuZhong + ".1", 1);

            M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail();

            //question2.QuestionResult =dtpConfirm.Value.ToString() ;
            question2.QuestionResult = cbxYear.Text + "/" + cbxMonth.Text + "/" + cbxDay.Text + " " + DateTime.Now.TimeOfDay;
            AddResult(question2, QuestionnaireCode.NaoCuZhong + ".1.1", 3);

            M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail();

            if (rd2A.Checked)
            {
                question3.QuestionResult = "A,";
            }
            if (rd2B.Checked)
            {
                question3.QuestionResult = "B,";
            }

            //question3.QuestionResult = rd2A.Checked ? "A," : "B,";
            AddResult(question3, QuestionnaireCode.NaoCuZhong + ".1.2", 1);

            M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail();

            question4.QuestionResult = txtBlood.Text;
            AddResult(question4, QuestionnaireCode.NaoCuZhong + ".1.3", 3);

            QuestionTwo frmNext = new QuestionTwo();

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