コード例 #1
0
        private void QueryScore(string classId)
        {
            Dictionary <string, string> infoList = objScoreListService.QueryScoreInfoByClassId(classId);

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


            // absent name list
            List <string> absentList = objScoreListService.QueryAbsentList(classId);

            this.lblList.Items.Clear();
            if (absentList.Count == 0)
            {
                this.lblList.Items.Add("no absent");
            }
            else
            {
                this.lblList.Items.AddRange(absentList.ToArray());
            }
        }