优化排课

This commit is contained in:
2026-07-24 19:35:49 +08:00 Unverified
parent 6538b6080a
commit e6d8eb0662
17 changed files with 4073 additions and 6 deletions
@@ -15,12 +15,30 @@ public sealed class TeachingTask : EntityBase
public int EndWeek { get; set; } = 16;
public int WeeklyHours { get; set; } = 2;
public TeachingTaskStatus Status { get; set; } = TeachingTaskStatus.Draft;
public string? GenerationBatchCode { get; set; }
public string? Notes { get; set; }
public DateTime? PublishedAt { get; set; }
public ICollection<TeachingTaskTeacher> Teachers { get; set; } = [];
public ICollection<TeachingTaskClass> Classes { get; set; } = [];
}
public sealed class TeacherCourseApplication : EntityBase
{
public Guid AcademicTermId { get; set; }
public AcademicTerm? AcademicTerm { get; set; }
public Guid TeacherId { get; set; }
public Teacher? Teacher { get; set; }
public Guid CourseId { get; set; }
public Course? Course { get; set; }
public TeacherCourseApplicationStatus Status { get; set; } =
TeacherCourseApplicationStatus.Pending;
public string? Statement { get; set; }
public string? ReviewComment { get; set; }
public DateTime SubmittedAt { get; set; } = DateTime.UtcNow;
public DateTime? ReviewedAt { get; set; }
public Guid? ReviewedByUserId { get; set; }
}
public sealed class TeachingTaskTeacher
{
public Guid TeachingTaskId { get; set; }
@@ -44,3 +62,11 @@ public enum TeachingTaskStatus
Published = 2,
Closed = 3
}
public enum TeacherCourseApplicationStatus
{
Pending = 1,
Approved = 2,
Rejected = 3,
Withdrawn = 4
}