Show detailed grade breakdown in student transcript

This commit is contained in:
biss committed 2026-08-17 21:53:11 +08:00
1 parent 4c95edb678
commit 9c8c21dd73
3 files changed
+138 -3

No files matched your search

@@ -989,6 +989,18 @@ public sealed class GradesController(
CourseCode = x.GradeSheet.TeachingTask.Course!.Code,
CourseName = x.GradeSheet.TeachingTask.Course.Name,
x.GradeSheet.TeachingTask.Course.Credits,
x.RegularScore,
x.GradeSheet.RegularWeight,
ItemScores = x.ItemScores
.OrderBy(itemScore => itemScore.GradeItem!.SortOrder)
.Select(itemScore => new
{
itemScore.GradeItem!.Name,
itemScore.GradeItem!.Weight,
itemScore.Score
}),
x.FinalScore,
x.GradeSheet.FinalWeight,
x.TotalScore,
x.GradePoint,
x.ExamStatus,