Example #1
0
        private void UpdateSemesterDisciplineMarks(DisciplineWithMark dwm)
        {
            var marks = mRepo.studentDisciplineSemesterAll(currentStudentId, dwm.id);

            marks = Utilities.ConstrainMarksToOneAttestation(marks, dwm);

            var teachers = tRepo.all().ToDictionary(t => t.id, t => t);

            var markTypes       = mtypeRepo.all();
            var markTypeOptions = mtoRepo.all();

            SetMarkTypeAndAttestationType(dwm);

            MarksGridView.DataSource = MarkView
                                       .FromMarkList(marks, markTypes, markTypeOptions, teachers, mtRepo)
                                       .OrderBy(mv => mv.attempt)
                                       .ToList();

            FormatMarksGrid();
        }