Esempio n. 1
0
        private void btn_assert_Click(object sender, EventArgs e)
        {
            exam_statistic_id = Convert.ToInt32(dgv_exam_statistic.SelectedRows[0].Cells[0].Value);
            DAL.ExamResult dal = new DAL.ExamResult();

            tb_average.Text  = dal.get_ExamResult_statistic_info_avg(exam_statistic_id).Rows[0][0].ToString();
            tb_highest.Text  = dal.get_ExamResult_statistic_info_max(exam_statistic_id).Rows[0][0].ToString();
            tb_last.Text     = dal.get_ExamResult_statistic_info_min(exam_statistic_id).Rows[0][0].ToString();
            tb_oknumber.Text = dal.get_ExamResult_statistic_info(exam_statistic_id, 100, 60).Rows[0][0].ToString();
            chart();
        }
Esempio n. 2
0
        void chart()
        {
            chart_exam.Series.Clear();


            DAL.ExamResult dal      = new DAL.ExamResult();
            Series         Strength = new Series("人数");

            Strength.Points.AddXY("60以下", Convert.ToInt32(dal.get_ExamResult_statistic_info(exam_statistic_id, 60, 0).Rows[0][0]));
            Strength.Points.AddXY("60-70", Convert.ToInt32(dal.get_ExamResult_statistic_info(exam_statistic_id, 60, 0).Rows[0][0]));
            Strength.Points.AddXY("70-80", Convert.ToInt32(dal.get_ExamResult_statistic_info(exam_statistic_id, 80, 70).Rows[0][0]));
            Strength.Points.AddXY("80-90", Convert.ToInt32(dal.get_ExamResult_statistic_info(exam_statistic_id, 90, 80).Rows[0][0]));
            Strength.Points.AddXY("90-100", Convert.ToInt32(dal.get_ExamResult_statistic_info(exam_statistic_id, 100, 90).Rows[0][0]));
            chart_exam.Series.Add(Strength);
        }