Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public void AddforCoumpte(string studentID, SemsSubjScoreInfo semsSubjScoreInfo)
        {
            if (!_DicSemsScoreInfo.ContainsKey(studentID))
            {
                _DicSemsScoreInfo.Add(studentID, new SemsTotalScoreInfo());
            }


            _DicSemsScoreInfo[studentID].AddScore(semsSubjScoreInfo);
        }
Exemplo n.º 2
0
        /// <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;
            }
        }