예제 #1
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            //停止播放
            if (wmPlayerForm != null)
            {
                wmPlayerForm.Stop();
            }
            QuestionEight frmBefore = new QuestionEight();

            frmBefore.TopMost = false;
            frmBefore.Show();
            this.Close();
        }
예제 #2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //停止播放
            if (wmPlayerForm != null)
            {
                wmPlayerForm.Stop();
            }

            string strResult = "";

            if (chkA.Checked)
            {
                strResult += "A,";
            }

            if (chkB.Checked)
            {
                strResult += "B,";
            }

            if (chkC.Checked)
            {
                strResult += "C,";
            }

            if (chkD.Checked)
            {
                strResult += "D,";
            }

            if (chkE.Checked)
            {
                strResult += "E,";
            }

            if (chkF.Checked)
            {
                strResult += "F,";
            }

            if (chkG.Checked)
            {
                strResult += "G,";
            }

            if (chkH.Checked)
            {
                strResult += "H,";
            }

            if (chkI.Checked)
            {
                strResult += "I,";
            }

            if (chkJ.Checked)
            {
                strResult += "J,";
            }


            M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail();

            question1.QuestionResult = strResult;

            question1.QuestionCode  = QuestionnaireCode.NaoNianChiDai + ".7";
            question1.QuestionType  = 2;
            question1.PQuestionCode = QuestionnaireCode.NaoNianChiDai + ".7";

            //打分
            //第七题,辨认1词记1分,共10分,权重1.4
            int tempScore = 0;

            if (strResult.Contains("A"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("B"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("C"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("D"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("E"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("F"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("G"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("H"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("I"))
            {
                tempScore += 1;
            }
            if (strResult.Contains("J"))
            {
                tempScore += 1;
            }

            question1.QuestionScore        = tempScore;//(decimal)(tempScore*1.4);
            question1.PQuestionWeightScore = (decimal)(tempScore * 1.4);

            ClientInfo.AddQuestionToQuestionnaire(question1, QuestionnaireCode.NaoNianChiDai);

            QuestionEight eight = new QuestionEight();

            eight.TopMost = false;
            //eight.Show();
            eight.Show();
            this.Close();
        }