protected virtual StudentClassSubject sumMarksInNewRecord(IEnumerable <StudentClassSubject> list) { int sum1 = list.Sum(x => Marks.firstSemester(x).sum()); int sum2 = list.Sum(x => Marks.secondSemester(x).sum()); return(new StudentClassSubject { Id = 0, Oral1 = sum1, //Homework1= sum1, //Activity1 = sum1, //FirstTestMark = sum1, //ExamMark1 = sum1, //Old_fstAvarage = sum1, Oral2 = sum2, //Homework2 = sum2, //Activity2 = sum2, //SecondTestMark = sum2, //ExamMark2 = sum2, //Old_sndAvarage = sum2, }); }
protected void drawSecondSemesterMarks(int rowOffest, StudentClassSubject m) { string[] a = C.SecondSemesterMarksColumnsLetters.Split(','); DrawSemeterMarks(rowOffest, m, Marks.secondSemester(m), a); }
private void drawFinalResult(int rowOffest, StudentClassSubject m) { string[] a = C.FinalYearMarksColumnsLetters.Split(','); DrawFinalYearResult(rowOffest, m, Marks.firstSemester(m), Marks.secondSemester(m), a); }