教师成绩报告
This commit is contained in:
@@ -79,6 +79,48 @@ public sealed class CourseGradeStatistic : EntityBase
|
||||
public DateTime CalculatedAt { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Materialized analysis for one published teaching class. Course/term
|
||||
/// organizational benchmarks stay in <see cref="CourseGradeStatistic"/>;
|
||||
/// this table is the grain used for peer-class and historical comparisons.
|
||||
/// </summary>
|
||||
public sealed class TeachingTaskGradeStatistic : EntityBase
|
||||
{
|
||||
public Guid GradeSheetId { get; set; }
|
||||
public GradeSheet? GradeSheet { get; set; }
|
||||
public Guid TeachingTaskId { get; set; }
|
||||
public TeachingTask? TeachingTask { get; set; }
|
||||
public Guid CourseId { get; set; }
|
||||
public Guid AcademicTermId { get; set; }
|
||||
public int StudentCount { get; set; }
|
||||
public int PassedCount { get; set; }
|
||||
public int ExcellentCount { get; set; }
|
||||
public decimal HighestScore { get; set; }
|
||||
public decimal AverageScore { get; set; }
|
||||
public decimal MedianScore { get; set; }
|
||||
public decimal LowestScore { get; set; }
|
||||
public decimal StandardDeviation { get; set; }
|
||||
public decimal PassRate { get; set; }
|
||||
public decimal ExcellentRate { get; set; }
|
||||
public DateTime CalculatedAt { get; set; }
|
||||
public ICollection<TeachingTaskGradeScoreBand> ScoreBands { get; set; } = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flexible score-band rows are kept separately so future band definitions do
|
||||
/// not require widening the teaching-class summary table.
|
||||
/// </summary>
|
||||
public sealed class TeachingTaskGradeScoreBand : EntityBase
|
||||
{
|
||||
public Guid TeachingTaskGradeStatisticId { get; set; }
|
||||
public TeachingTaskGradeStatistic? TeachingTaskGradeStatistic { get; set; }
|
||||
public required string Label { get; set; }
|
||||
public decimal LowerBound { get; set; }
|
||||
public decimal? UpperBound { get; set; }
|
||||
public int StudentCount { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
|
||||
public enum CourseGradeStatisticScope
|
||||
{
|
||||
AdministrativeClass = 1,
|
||||
|
||||
Reference in New Issue
Block a user