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

            ipssThree.TopMost = false;
            ipssThree.Show();
            Close();
        }
Ejemplo n.º 2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //第五题
            M_QuestionnaireResultDetail question5 = new M_QuestionnaireResultDetail();
            string strResult5 = "";

            if (rbQ5A.Checked)
            {
                strResult5 = "A,";
            }
            if (rbQ5B.Checked)
            {
                strResult5 = "B,";
            }
            if (rbQ5C.Checked)
            {
                strResult5 = "C,";
            }

            question5.QuestionResult       = strResult5;
            question5.QuestionCode         = QuestionnaireCode.Ipss + ".5";
            question5.PQuestionCode        = QuestionnaireCode.Ipss + ".5";
            question5.QuestionType         = 1;
            question5.QuestionScore        = 0;
            question5.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question5, QuestionnaireCode.Ipss);

            //第六题
            M_QuestionnaireResultDetail question6 = new M_QuestionnaireResultDetail();
            string strResult6 = "";

            if (rbQ6A.Checked)
            {
                strResult6 = "A,";
            }
            if (rbQ6B.Checked)
            {
                strResult6 = "B,";
            }
            if (rbQ6C.Checked)
            {
                strResult6 = "C,";
            }
            if (rbQ6D.Checked)
            {
                strResult6 = "D,";
            }
            if (rbQ6E.Checked)
            {
                strResult6 = "E,";
            }
            if (rbQ6F.Checked)
            {
                strResult6 = "F,";
            }

            question6.QuestionResult = strResult6;
            question6.QuestionCode   = QuestionnaireCode.Ipss + ".6";
            question6.PQuestionCode  = QuestionnaireCode.Ipss + ".6";
            question6.QuestionType   = 1;

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

            question6.PQuestionWeightScore = 0;

            ClientInfo.AddQuestionToQuestionnaire(question6, QuestionnaireCode.Ipss);

            //下一页
            IpssThree ipssThree = new IpssThree();

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