//all the students score
        private void btnStat_Click(object sender, EventArgs e)
        {
            this.dgvScoreList.DataSource = objScoreListService.QueryScoreListByClassName("");


            Dictionary <string, string> infoList = objScoreListService.QueryScoreInfo();

            this.lblAttendCount.Text = infoList["stuCount"];
            this.lblAbsentCount.Text = infoList["absentCount"];
            this.lblCSharpAvg.Text   = infoList["avgCSharp"];
            this.lblDBAvg.Text       = infoList["avgDB"];


            List <string> absentList = objScoreListService.QueryAbsentList();

            this.lblList.Items.Clear();
            this.lblList.Items.AddRange(absentList.ToArray());
        }
示例#2
0
        private void QueryScore(string classId)
        {
            //【2】显示查询统计结果
            Dictionary <string, string> infoList = objScoreService.QueryScoreInfo(classId);

            this.lblAttendCount.Text = infoList["stuCount"];
            this.lblCount.Text       = infoList["absentCount"];
            this.lblCSharpAvg.Text   = infoList["avgCSharp"];
            this.lblDBAvg.Text       = infoList["avgDB"];
            //【3】显示缺考人员列表
            List <string> absentList = objScoreService.QueryAbsentList(classId);

            this.lblList.Items.Clear();
            if (absentList.Count == 0)
            {
                this.lblList.Items.Add("没有缺考");
            }
            else
            {
                this.lblList.Items.AddRange(absentList.ToArray());
            }
        }
示例#3
0
        private void QueryScore(string classId)
        {
            scoreStastic = objScoreService.QueryScoreInfo(classId);
            nameList     = objScoreService.QueryAbsentList(classId);

            this.lblAttendCount.Text = scoreStastic["stuCount"];
            this.lblCount.Text       = scoreStastic["absentCount"];
            this.lblCSharpAvg.Text   = scoreStastic["avgCSharp"];
            this.lblDBAvg.Text       = scoreStastic["avgDB"];

            //this.lblList.DataSource = null;
            // this.lblList.DataSource = nameList;

            this.lblList.Items.Clear();
            if (nameList.Count == 0)
            {
                this.lblList.Items.Add("没有缺考");
            }
            else
            {
                this.lblList.Items.AddRange(nameList.ToArray());
            }
        }