/// <summary> /// /// </summary> public void AddforCoumpte(string studentID, SemsSubjScoreInfo semsSubjScoreInfo) { if (!_DicSemsScoreInfo.ContainsKey(studentID)) { _DicSemsScoreInfo.Add(studentID, new SemsTotalScoreInfo()); } _DicSemsScoreInfo[studentID].AddScore(semsSubjScoreInfo); }
/// <summary> /// 將成績++ (算術平均運算用) /// </summary> /// <param name="semsSubjScoreInfo"></param> public void AddScore(SemsSubjScoreInfo semsSubjScoreInfo) { this.ListSubjects.Add(semsSubjScoreInfo.Subject); if (semsSubjScoreInfo.SemsScore != null) { this.SubjectCountScore++; this.TotalSubjScore += semsSubjScoreInfo.SemsScore; } if (semsSubjScoreInfo.SemsGPA != null) { this.SubjectCountGPA++; this.TotalSubjGAP += semsSubjScoreInfo.SemsGPA; } }