예제 #1
0
        //上一步
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionFour frmFour = new QuestionFour();

            frmFour.TopMost = false;
            frmFour.ShowDialog();
            Close();
        }
예제 #2
0
        //下一步
        private void btnNext_Click(object sender, EventArgs e)
        {
            //12
            M_QuestionnaireResultDetail question12 = new M_QuestionnaireResultDetail();
            string strResult12 = "";

            if (crdb12A.Checked)
            {
                strResult12 = "A,";
            }
            if (crdb12B.Checked)
            {
                strResult12 = "B,";
            }
            if (crdb12C.Checked)
            {
                strResult12 = "C,";
            }
            if (crdb12D.Checked)
            {
                strResult12 = "D,";
            }
            if (crdb12E.Checked)
            {
                strResult12 = "E,";
            }

            question12.QuestionResult = strResult12;
            question12.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".12";
            question12.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question12, QuestionnaireCode.KangFuShouShangZhi);

            //13
            M_QuestionnaireResultDetail question13 = new M_QuestionnaireResultDetail();
            string strResult13 = "";

            if (crdb13A.Checked)
            {
                strResult13 = "A,";
            }
            if (crdb13B.Checked)
            {
                strResult13 = "B,";
            }
            if (crdb13C.Checked)
            {
                strResult13 = "C,";
            }
            if (crdb13D.Checked)
            {
                strResult13 = "D,";
            }
            if (crdb13E.Checked)
            {
                strResult13 = "E,";
            }

            question13.QuestionResult = strResult13;
            question13.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".13";
            question13.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question13, QuestionnaireCode.KangFuShouShangZhi);

            //14
            M_QuestionnaireResultDetail question14 = new M_QuestionnaireResultDetail();
            string strResult14 = "";

            if (crdb14A.Checked)
            {
                strResult14 = "A,";
            }
            if (crdb14B.Checked)
            {
                strResult14 = "B,";
            }
            if (crdb14C.Checked)
            {
                strResult14 = "C,";
            }
            if (crdb14D.Checked)
            {
                strResult14 = "D,";
            }
            if (crdb14E.Checked)
            {
                strResult14 = "E,";
            }

            question14.QuestionResult = strResult14;
            question14.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".14";
            question14.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question14, QuestionnaireCode.KangFuShouShangZhi);

            //15
            M_QuestionnaireResultDetail question15 = new M_QuestionnaireResultDetail();
            string strResult15 = "";

            if (crdb15A.Checked)
            {
                strResult15 = "A,";
            }
            if (crdb15B.Checked)
            {
                strResult15 = "B,";
            }
            if (crdb15C.Checked)
            {
                strResult15 = "C,";
            }
            if (crdb15D.Checked)
            {
                strResult15 = "D,";
            }
            if (crdb15E.Checked)
            {
                strResult15 = "E,";
            }

            question15.QuestionResult = strResult15;
            question15.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".15";
            question15.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question15, QuestionnaireCode.KangFuShouShangZhi);

            //16
            M_QuestionnaireResultDetail question16 = new M_QuestionnaireResultDetail();
            string strResult16 = "";

            if (crdb16A.Checked)
            {
                strResult16 = "A,";
            }
            if (crdb16B.Checked)
            {
                strResult16 = "B,";
            }
            if (crdb16C.Checked)
            {
                strResult16 = "C,";
            }
            if (crdb16D.Checked)
            {
                strResult16 = "D,";
            }
            if (crdb16E.Checked)
            {
                strResult16 = "E,";
            }

            question16.QuestionResult = strResult16;
            question16.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".16";
            question16.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question16, QuestionnaireCode.KangFuShouShangZhi);

            //17
            M_QuestionnaireResultDetail question17 = new M_QuestionnaireResultDetail();
            string strResult17 = "";

            if (crdb17A.Checked)
            {
                strResult17 = "A,";
            }
            if (crdb17B.Checked)
            {
                strResult17 = "B,";
            }
            if (crdb17C.Checked)
            {
                strResult17 = "C,";
            }
            if (crdb17D.Checked)
            {
                strResult17 = "D,";
            }
            if (crdb17E.Checked)
            {
                strResult17 = "E,";
            }

            question17.QuestionResult = strResult17;
            question17.QuestionCode   = QuestionnaireCode.KangFuShouShangZhi + ".17";
            question17.QuestionType   = 1;

            ClientInfo.AddQuestionToQuestionnaire(question17, QuestionnaireCode.KangFuShouShangZhi);

            //第四页
            QuestionFour frmFour = new QuestionFour();

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