Esempio n. 1
0
        public ReportStudent(JHStudentRecord student)
        {
            Scores        = new TokenScoreCollection();
            Places        = new PlaceCollection();
            Id            = student.ID;
            Name          = student.Name;
            RefClassID    = student.RefClassID;
            SeatNo        = student.SeatNo + "";
            StudentNumber = student.StudentNumber;

            string RuleID = "";

            // 先使用學生
            if (student.OverrideScoreCalcRuleID != null)
            {
                RuleID = student.OverrideScoreCalcRuleID;
            }
            else
            {
                if (Utility.tmpClassRuleIDDict.ContainsKey(RefClassID))
                {
                    RuleID = Utility.tmpClassRuleIDDict[RefClassID];
                }
            }

            // 成績計算規則進位方式
            if (RuleID != "")
            {
                if (Utility.tmpScoreCalculatorDict.ContainsKey(RuleID))
                {
                    StudScoreCalculator = Utility.tmpScoreCalculatorDict[RuleID];
                }
            }
        }
Esempio n. 2
0
 public ReportStudent(JHStudentRecord student)
 {
     Scores        = new TokenScoreCollection();
     Places        = new PlaceCollection();
     Id            = student.ID;
     Name          = student.Name;
     RefClassID    = student.RefClassID;
     SeatNo        = student.SeatNo + "";
     StudentNumber = student.StudentNumber;
 }