Example #1
0
        private void ParseMarks(string source) // examId:mark:planId
        {
            var exams  = source.Split(',');
            var result = new EnrolleeMarkDO[exams.Length];

            string[] rawExam;
            long     examId;
            int      value;
            long     planEntryId;

            for (var i = 0; i < exams.Length; i++)
            {
                rawExam     = exams[i].Split(':');
                examId      = long.Parse(rawExam[0]);
                value       = int.Parse(rawExam[1]);
                planEntryId = long.Parse(rawExam[2]);

                result[i] = new EnrolleeMarkDO
                {
                    MarkValue = value,
                    ExamId    = examId,
                    PlanId    = planEntryId
                };
            }

            Marks = result;
        }
Example #2
0
 public EnrolleeDO()
 {
     Plans    = new EnrolleePlanDO[0];
     Marks    = new EnrolleeMarkDO[0];
     FinTypes = new EnrolleeFinTypeDO[0];
 }