Beispiel #1
0
        //上一步
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionFive frmFive = new QuestionFive();

            frmFive.TopMost = false;
            frmFive.ShowDialog();
            Close();
        }
Beispiel #2
0
        //下一步
        private void btnNext_Click(object sender, EventArgs e)
        {
            //18
            M_QuestionnaireResultDetail question18 = new M_QuestionnaireResultDetail();
            string strResult18 = "";

            if (crdb18A.Checked)
            {
                strResult18 = "A,";
            }
            if (crdb18B.Checked)
            {
                strResult18 = "B,";
            }
            if (crdb18C.Checked)
            {
                strResult18 = "C,";
            }
            if (crdb18D.Checked)
            {
                strResult18 = "D,";
            }
            if (crdb18E.Checked)
            {
                strResult18 = "E,";
            }

            question18.QuestionResult = strResult18;
            question18.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".18";
            question18.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question18, QuestionnaireCode.KangFuShouShangZhi);

            //19
            M_QuestionnaireResultDetail question19 = new M_QuestionnaireResultDetail();
            string strResult19 = "";

            if (crdb19A.Checked)
            {
                strResult19 = "A,";
            }
            if (crdb19B.Checked)
            {
                strResult19 = "B,";
            }
            if (crdb19C.Checked)
            {
                strResult19 = "C,";
            }
            if (crdb19D.Checked)
            {
                strResult19 = "D,";
            }
            if (crdb19E.Checked)
            {
                strResult19 = "E,";
            }

            question19.QuestionResult = strResult19;
            question19.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".19";
            question19.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question19, QuestionnaireCode.KangFuShouShangZhi);

            //20
            M_QuestionnaireResultDetail question20 = new M_QuestionnaireResultDetail();
            string strResult20 = "";

            if (crdb20A.Checked)
            {
                strResult20 = "A,";
            }
            if (crdb20B.Checked)
            {
                strResult20 = "B,";
            }
            if (crdb20C.Checked)
            {
                strResult20 = "C,";
            }
            if (crdb20D.Checked)
            {
                strResult20 = "D,";
            }
            if (crdb20E.Checked)
            {
                strResult20 = "E,";
            }

            question20.QuestionResult = strResult20;
            question20.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".20";
            question20.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question20, QuestionnaireCode.KangFuShouShangZhi);

            //21
            M_QuestionnaireResultDetail question21 = new M_QuestionnaireResultDetail();
            string strResult21 = "";

            if (crdb21A.Checked)
            {
                strResult21 = "A,";
            }
            if (crdb21B.Checked)
            {
                strResult21 = "B,";
            }
            if (crdb21C.Checked)
            {
                strResult21 = "C,";
            }
            if (crdb21D.Checked)
            {
                strResult21 = "D,";
            }
            if (crdb21E.Checked)
            {
                strResult21 = "E,";
            }

            question21.QuestionResult = strResult21;
            question21.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".21";
            question21.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question21, QuestionnaireCode.KangFuShouShangZhi);

            //22
            M_QuestionnaireResultDetail question22 = new M_QuestionnaireResultDetail();
            string strResult22 = "";

            if (crdb22A.Checked)
            {
                strResult22 = "A,";
            }
            if (crdb22B.Checked)
            {
                strResult22 = "B,";
            }
            if (crdb22C.Checked)
            {
                strResult22 = "C,";
            }
            if (crdb22D.Checked)
            {
                strResult22 = "D,";
            }
            if (crdb22E.Checked)
            {
                strResult22 = "E,";
            }

            question22.QuestionResult = strResult22;
            question22.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".22";
            question22.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question22, QuestionnaireCode.KangFuShouShangZhi);

            //23
            M_QuestionnaireResultDetail question23 = new M_QuestionnaireResultDetail();
            string strResult23 = "";

            if (crdb23A.Checked)
            {
                strResult23 = "A,";
            }
            if (crdb23B.Checked)
            {
                strResult23 = "B,";
            }
            if (crdb23C.Checked)
            {
                strResult23 = "C,";
            }
            if (crdb23D.Checked)
            {
                strResult23 = "D,";
            }
            if (crdb23E.Checked)
            {
                strResult23 = "E,";
            }

            question23.QuestionResult = strResult23;
            question23.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".23";
            question23.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question23, QuestionnaireCode.KangFuShouShangZhi);

            //第五页
            QuestionFive frmFive = new QuestionFive();

            frmFive.TopMost = false;
            frmFive.ShowDialog();
            Close();
        }