成绩+点名
This commit is contained in:
@@ -7,7 +7,6 @@ public sealed class GradeSheet : EntityBase
|
||||
public Guid TeachingTaskId { get; set; }
|
||||
public TeachingTask? TeachingTask { get; set; }
|
||||
public decimal RegularWeight { get; set; } = 30;
|
||||
public decimal MidtermWeight { get; set; }
|
||||
public decimal FinalWeight { get; set; } = 70;
|
||||
public GradeSheetStatus Status { get; set; } = GradeSheetStatus.Draft;
|
||||
public string? ReviewComment { get; set; }
|
||||
@@ -15,6 +14,17 @@ public sealed class GradeSheet : EntityBase
|
||||
public DateTime? ReviewedAt { get; set; }
|
||||
public DateTime? PublishedAt { get; set; }
|
||||
public ICollection<GradeRecord> Records { get; set; } = [];
|
||||
public ICollection<GradeItem> Items { get; set; } = [];
|
||||
}
|
||||
|
||||
public sealed class GradeItem : EntityBase
|
||||
{
|
||||
public Guid GradeSheetId { get; set; }
|
||||
public GradeSheet? GradeSheet { get; set; }
|
||||
public required string Name { get; set; }
|
||||
public decimal Weight { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public ICollection<GradeItemScore> Scores { get; set; } = [];
|
||||
}
|
||||
|
||||
public sealed class GradeRecord : EntityBase
|
||||
@@ -24,12 +34,21 @@ public sealed class GradeRecord : EntityBase
|
||||
public Guid StudentId { get; set; }
|
||||
public Student? Student { get; set; }
|
||||
public decimal? RegularScore { get; set; }
|
||||
public decimal? MidtermScore { get; set; }
|
||||
public decimal? FinalScore { get; set; }
|
||||
public decimal? TotalScore { get; set; }
|
||||
public decimal? GradePoint { get; set; }
|
||||
public GradeExamStatus ExamStatus { get; set; } = GradeExamStatus.Normal;
|
||||
public string? Notes { get; set; }
|
||||
public ICollection<GradeItemScore> ItemScores { get; set; } = [];
|
||||
}
|
||||
|
||||
public sealed class GradeItemScore
|
||||
{
|
||||
public Guid GradeRecordId { get; set; }
|
||||
public GradeRecord? GradeRecord { get; set; }
|
||||
public Guid GradeItemId { get; set; }
|
||||
public GradeItem? GradeItem { get; set; }
|
||||
public decimal? Score { get; set; }
|
||||
}
|
||||
|
||||
public enum GradeSheetStatus
|
||||
|
||||
Reference in New Issue
Block a user