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

            ipssFour.TopMost = false;
            ipssFour.Show();
            Close();
        }
Ejemplo n.º 2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //第七题
            M_QuestionnaireResultDetail question7 = new M_QuestionnaireResultDetail();
            string strResult7 = "";

            if (rbQ7A.Checked)
            {
                strResult7 = "A,";
            }
            if (rbQ7B.Checked)
            {
                strResult7 = "B,";
            }
            if (rbQ7C.Checked)
            {
                strResult7 = "C,";
            }
            if (rbQ7D.Checked)
            {
                strResult7 = "D,";
            }
            if (rbQ7E.Checked)
            {
                strResult7 = "E,";
            }
            if (rbQ7F.Checked)
            {
                strResult7 = "F,";
            }

            question7.QuestionResult = strResult7;
            question7.QuestionCode   = QuestionnaireCode.Ipss + ".7";
            question7.PQuestionCode  = QuestionnaireCode.Ipss + ".7";
            question7.QuestionType   = 1;

            //打分
            if (strResult7.Contains("A"))
            {
                question7.QuestionScore = 0;
            }
            if (strResult7.Contains("B"))
            {
                question7.QuestionScore = 1;
            }
            if (strResult7.Contains("C"))
            {
                question7.QuestionScore = 2;
            }
            if (strResult7.Contains("D"))
            {
                question7.QuestionScore = 3;
            }
            if (strResult7.Contains("E"))
            {
                question7.QuestionScore = 4;
            }
            if (strResult7.Contains("F"))
            {
                question7.QuestionScore = 5;
            }

            question7.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question7, QuestionnaireCode.Ipss);

            //第八题
            M_QuestionnaireResultDetail question8 = new M_QuestionnaireResultDetail();
            string strResult8 = "";

            if (rbQ8A.Checked)
            {
                strResult8 = "A,";
            }
            if (rbQ8B.Checked)
            {
                strResult8 = "B,";
            }
            if (rbQ8C.Checked)
            {
                strResult8 = "C,";
            }
            if (rbQ8D.Checked)
            {
                strResult8 = "D,";
            }
            if (rbQ8E.Checked)
            {
                strResult8 = "E,";
            }
            if (rbQ8F.Checked)
            {
                strResult8 = "F,";
            }

            question8.QuestionResult = strResult8;
            question8.QuestionCode   = QuestionnaireCode.Ipss + ".8";
            question8.PQuestionCode  = QuestionnaireCode.Ipss + ".8";
            question8.QuestionType   = 1;

            //打分
            if (strResult8.Contains("A"))
            {
                question8.QuestionScore = 0;
            }
            if (strResult8.Contains("B"))
            {
                question8.QuestionScore = 1;
            }
            if (strResult8.Contains("C"))
            {
                question8.QuestionScore = 2;
            }
            if (strResult8.Contains("D"))
            {
                question8.QuestionScore = 3;
            }
            if (strResult8.Contains("E"))
            {
                question8.QuestionScore = 4;
            }
            if (strResult8.Contains("F"))
            {
                question8.QuestionScore = 5;
            }

            question8.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question8, QuestionnaireCode.Ipss);

            //下一页
            IpssFour ipssFour = new IpssFour();

            ipssFour.TopMost = false;
            ipssFour.Show();
            Close();
        }