示例#1
0
        public int SortResultScore(ResultScoreRecord rsr1, ResultScoreRecord rsr2)
        {
            string schoolYear1 = rsr1.SchoolYear.ToString().PadLeft(5, '0');

            schoolYear1 += rsr1.Semester.ToString().PadLeft(2, '0');

            string schoolYear2 = rsr2.SchoolYear.ToString().PadLeft(5, '0');

            schoolYear2 += rsr2.Semester.ToString().PadLeft(2, '0');

            return(schoolYear1.CompareTo(schoolYear2));
        }
示例#2
0
 /// <summary>
 /// 設定學生社團參與記錄
 /// </summary>
 public void SetRSR(ResultScoreRecord rsr)
 {
     _ResultList.Add(rsr);
 }