diff --git a/src/Jiaowu.Api/Controllers/ExamsController.cs b/src/Jiaowu.Api/Controllers/ExamsController.cs index 378aedb..3321121 100644 --- a/src/Jiaowu.Api/Controllers/ExamsController.cs +++ b/src/Jiaowu.Api/Controllers/ExamsController.cs @@ -8,10 +8,12 @@ using Jiaowu.Api.Infrastructure.Exams; using Jiaowu.Api.Infrastructure.Excel; using Jiaowu.Api.Infrastructure.Files; using Jiaowu.Api.Infrastructure.Persistence; +using Jiaowu.Api.Infrastructure.Localization; using Jiaowu.Api.Infrastructure.Teaching; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Localization; namespace Jiaowu.Api.Controllers; @@ -21,8 +23,50 @@ namespace Jiaowu.Api.Controllers; public sealed class ExamsController( AppDbContext db, ICurrentUserDataScope currentUserDataScope, - IAppCache cache) : ControllerBase + IAppCache cache, + IStringLocalizer? localizer = null) : ControllerBase { + private static readonly IReadOnlyDictionary ExamsErrorKeys = new Dictionary + { + ["所选学期不存在或已停用。"] = "Exams.TermUnavailable", + ["考试计划正在后台编排,暂时不能删除。"] = "Exams.Plan.ArrangementRunningCannotDelete", + ["只有草稿考试计划可以删除。"] = "Exams.Plan.DraftCanDelete", + ["删除考试计划失败,关联数据可能已发生变化。"] = "Exams.Plan.DeleteFailed", + ["分配状态筛选值无效。"] = "Exams.Assignments.InvalidStatusFilter", + ["考试计划正在后台编排,暂时不能调整场次。"] = "Exams.Plan.ArrangementRunningCannotEditSessions", + ["已发布的考试计划不能调整场次。"] = "Exams.Plan.PublishedCannotEditSessions", + ["请至少选择一个教学班。"] = "Exams.Sessions.TeachingClassRequired", + ["一次最多选择100个教学班。"] = "Exams.Sessions.TeachingClassLimit", + ["所选教学班包含不存在、跨学期或未发布的教学班。"] = "Exams.Sessions.InvalidTeachingClasses", + ["批量创建考试场次失败,关联数据可能已发生变化。"] = "Exams.Sessions.BatchCreateFailed", + ["请至少选择一个考试场次。"] = "Exams.Sessions.RequiredForRemoval", + ["一次最多移除100个考试场次。"] = "Exams.Sessions.RemoveLimit", + ["批量移除考试场次失败,关联数据可能已发生变化。"] = "Exams.Sessions.BatchRemoveFailed", + ["请至少选择分配考场或分配监考教师。"] = "Exams.Assignments.RoomOrInvigilatorRequired", + ["一次最多处理100个考试场次。"] = "Exams.Assignments.BatchLimit", + ["只有草稿状态的考试计划可以自动编排。"] = "Exams.Plan.DraftOnlyForAutomaticArrangement", + ["所选场次不存在或不属于当前考试计划。"] = "Exams.Session.NotInPlan", + ["考试计划正在后台编排,完成后才能发布。"] = "Exams.Plan.WaitForArrangementBeforePublish", + ["考试计划正在后台发布,请等待任务完成。"] = "Exams.Plan.PublishAlreadyRunning", + ["只有草稿考试计划可以发布。"] = "Exams.Plan.DraftOnlyForPublish", + ["至少安排一个考试场次后才能发布。"] = "Exams.Plan.SessionRequiredForPublish", + ["当前考试计划没有可导出的考试场次。"] = "Exams.Export.NoSessions", + ["开始日期不能晚于结束日期。"] = "Exams.DateRange.Invalid", + ["当前账号未关联学生档案。"] = "Exams.StudentProfile.NotLinked", + ["当前学期未配置上课时间表,请先在排课设置中配置节次时间。"] = "Exams.Term.PeriodsNotConfigured", + ["考试开始时间必须早于结束时间。"] = "Exams.Session.InvalidTimeRange", + ["教学班与考试计划必须属于同一学期。"] = "Exams.Session.TermMismatch", + ["所选考场不存在或已停用。"] = "Exams.Room.Unavailable", + ["存在无效监考教师。"] = "Exams.Invigilator.Invalid", + ["该时段考场已被占用。"] = "Exams.Room.TimeSlotOccupied", + ["该时段考场已被混排考试占用。"] = "Exams.Room.MixedExamOccupied", + ["监考教师在该时段已有考试任务。"] = "Exams.Invigilator.TimeSlotOccupied", + ["监考教师在该时段已有混排考场任务。"] = "Exams.Invigilator.MixedExamOccupied", + ["存在学生考试时间冲突。"] = "Exams.Student.TimeConflict", + ["考试场次重复,或关联数据已发生变化。"] = "Exams.Session.DuplicateOrChanged", + ["所选考试场次包含不存在或不属于当前计划的记录,请刷新后重新选择。"] = "Exams.Sessions.SomeNotInPlan", + }; + private const string Managers = SystemRoles.SuperAdmin + "," + SystemRoles.AcademicAdmin; @@ -427,7 +471,7 @@ public sealed class ExamsController( .Select(x => x.TeachingTaskId) .ToListAsync(cancellationToken); if (duplicateTaskIds.Count > 0) - return ConflictProblem($"所选教学班中有 {duplicateTaskIds.Count} 个已在当前计划中安排考试。"); + return ConflictProblem(SharedResourceText.Get(localizer, "Exams.Sessions.DuplicateCount", duplicateTaskIds.Count)); var rosterPairs = await TeachingTaskRosterQuery.LoadForTasksAsync( db, @@ -437,8 +481,10 @@ public sealed class ExamsController( .GroupBy(x => x.StudentId) .Count(group => group.Select(x => x.TeachingTaskId).Distinct().Skip(1).Any()); if (conflictedStudentCount > 0) - return ConflictProblem( - $"所选教学班在同一时段安排会造成 {conflictedStudentCount} 名学生考试冲突,请分批选择不同时间。"); + return ConflictProblem(SharedResourceText.Get( + localizer, + "Exams.Sessions.StudentTimeConflictCount", + conflictedStudentCount)); foreach (var taskId in taskIds) { @@ -1526,7 +1572,7 @@ public sealed class ExamsController( if (startSlot is null) return (default, default, - ValidationProblem($"起始节次 {startPeriod} 不在已配置的时间表中。")); + ValidationProblem(SharedResourceText.Get(localizer, "Exams.Timetable.StartPeriodUnconfigured", startPeriod))); if (endSlot is null) return (default, default, ValidationProblem( @@ -1566,8 +1612,11 @@ public sealed class ExamsController( x => x.Id == classroomId.Value && x.IsEnabled, cancellationToken); if (room is null) return ValidationProblem("所选考场不存在或已停用。"); if (studentCount > room.Capacity) - return ConflictProblem( - $"考场容量不足:需容纳 {studentCount} 人,教室容量为 {room.Capacity}。"); + return ConflictProblem(SharedResourceText.Get( + localizer, + "Exams.Room.CapacityExceeded", + studentCount, + room.Capacity)); } var teacherIds = (invigilatorIds ?? []).Distinct().ToArray(); @@ -1743,10 +1792,17 @@ public sealed class ExamsController( private ActionResult ConflictProblem(string detail) => Conflict(new ProblemDetails { - Title = "无法完成考务操作", - Detail = detail, + Title = SharedResourceText.Get(localizer, "Exams.Errors.Title"), + Detail = LocalizeExamsMessage(detail), Status = StatusCodes.Status409Conflict }); + + private ActionResult ValidationProblem(string detail) => + base.ValidationProblem(detail: LocalizeExamsMessage(detail)); + + private string LocalizeExamsMessage(string detail) => + ExamsErrorKeys.TryGetValue(detail, out var key) ? SharedResourceText.Get(localizer, key) : detail; + private static string? Normalize(string? value) => string.IsNullOrWhiteSpace(value) ? null : value.Trim(); private static string? SerializeBuildingIds(IReadOnlyCollection? ids) => diff --git a/src/Jiaowu.Api/Controllers/MakeupExamsController.cs b/src/Jiaowu.Api/Controllers/MakeupExamsController.cs index 2721ba2..e110345 100644 --- a/src/Jiaowu.Api/Controllers/MakeupExamsController.cs +++ b/src/Jiaowu.Api/Controllers/MakeupExamsController.cs @@ -6,9 +6,11 @@ using Jiaowu.Api.Infrastructure.Auth; using Jiaowu.Api.Infrastructure.Exams; using Jiaowu.Api.Infrastructure.Grades; using Jiaowu.Api.Infrastructure.Persistence; +using Jiaowu.Api.Infrastructure.Localization; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Localization; namespace Jiaowu.Api.Controllers; @@ -18,8 +20,46 @@ namespace Jiaowu.Api.Controllers; public sealed class MakeupExamsController( AppDbContext db, ICurrentUserDataScope currentUserDataScope, - MakeupExamEligibilityService eligibilityService) : ControllerBase + MakeupExamEligibilityService eligibilityService, + IStringLocalizer? localizer = null) : ControllerBase { + private static readonly IReadOnlyDictionary MakeupExamsErrorKeys = new Dictionary + { + ["所选学期不存在或已停用。"] = "MakeupExams.TermUnavailable", + ["补考计划正在后台编排,完成后才能发布。"] = "MakeupExams.Plan.WaitForArrangementBeforePublish", + ["补考计划正在后台发布,请等待任务完成。"] = "MakeupExams.Plan.PublishAlreadyRunning", + ["只有草稿补考计划可以发布。"] = "MakeupExams.Plan.DraftOnlyForPublish", + ["至少安排一个考试场次后才能发布。"] = "MakeupExams.Plan.SessionRequiredForPublish", + ["补考计划正在后台编排,暂时不能归档。"] = "MakeupExams.Plan.ArrangementRunningCannotArchive", + ["只有已发布的补考计划可以归档。"] = "MakeupExams.Plan.PublishedOnlyForArchive", + ["补考计划正在后台编排,暂时不能调整场次。"] = "MakeupExams.Plan.ArrangementRunningCannotEditSessions", + ["已发布的补考计划不能调整场次。"] = "MakeupExams.Plan.PublishedCannotEditSessions", + ["请至少选择一个教学班。"] = "MakeupExams.Sessions.TeachingClassRequired", + ["一次最多选择100个教学班。"] = "MakeupExams.Sessions.TeachingClassLimit", + ["所选教学班包含不存在、跨学期或未发布的教学班。"] = "MakeupExams.Sessions.InvalidTeachingClasses", + ["批量创建补考场次失败,关联数据可能已发生变化。"] = "MakeupExams.Sessions.BatchCreateFailed", + ["请至少选择分配考场或分配监考教师。"] = "MakeupExams.Assignments.RoomOrInvigilatorRequired", + ["一次最多处理100个补考场次。"] = "MakeupExams.Assignments.BatchLimit", + ["只有草稿状态的补考计划可以自动编排。"] = "MakeupExams.Plan.DraftOnlyForAutomaticArrangement", + ["所选场次不存在或不属于当前补考计划。"] = "MakeupExams.Session.NotInPlan", + ["该计划正在自动生成补考场次,请完成后再编排。"] = "MakeupExams.Plan.GenerationRunningCannotArrange", + ["只有草稿状态的补考计划可以自动生成。"] = "MakeupExams.Plan.DraftOnlyForAutomaticGeneration", + ["该计划正在自动编排,请完成后再自动生成场次。"] = "MakeupExams.Plan.ArrangementRunningCannotGenerate", + ["已发布的补考计划不能调整登记。"] = "MakeupExams.Enrollment.PublishedCannotEdit", + ["所选学生均已登记或无效。"] = "MakeupExams.Enrollment.NoValidStudents", + ["只有已发布的补考计划可以录入成绩。"] = "MakeupExams.Grades.PublishedPlanRequired", + ["存在无法关联原课程成绩的补考考生,不能录入补考成绩。请先建立该教学班成绩单后重试。"] = "MakeupExams.Grades.SourceGradeSheetRequired", + ["当前账号未关联学生档案。"] = "MakeupExams.StudentProfile.NotLinked", + ["当前学期未配置上课时间表,请先在排课设置中配置节次时间。"] = "MakeupExams.Term.PeriodsNotConfigured", + ["考试开始时间必须早于结束时间。"] = "MakeupExams.Session.InvalidTimeRange", + ["教学班与补考计划必须属于同一学期。"] = "MakeupExams.Session.TermMismatch", + ["所选考场不存在或已停用。"] = "MakeupExams.Room.Unavailable", + ["存在无效监考教师。"] = "MakeupExams.Invigilator.Invalid", + ["该时段考场已被占用。"] = "MakeupExams.Room.TimeSlotOccupied", + ["监考教师在该时段已有补考任务。"] = "MakeupExams.Invigilator.TimeSlotOccupied", + ["补考场次重复,或关联数据已发生变化。"] = "MakeupExams.Session.DuplicateOrChanged", + }; + private const string Managers = SystemRoles.SuperAdmin + "," + SystemRoles.AcademicAdmin; private const string ScoreEnterers = @@ -319,7 +359,7 @@ public sealed class MakeupExamsController( .Select(x => x.TeachingTaskId) .ToListAsync(cancellationToken); if (duplicateTaskIds.Count > 0) - return ConflictProblem($"所选教学班中有 {duplicateTaskIds.Count} 个已在当前补考计划中安排。"); + return ConflictProblem(SharedResourceText.Get(localizer, "MakeupExams.Sessions.DuplicateCount", duplicateTaskIds.Count)); foreach (var taskId in taskIds) { @@ -665,7 +705,7 @@ public sealed class MakeupExamsController( var invalidIds = validIds.Where(sid => !eligibleIds.Contains(sid)).ToList(); if (invalidIds.Count > 0) - return ConflictProblem($"{invalidIds.Count} 名学生不符合补考资格。"); + return ConflictProblem(SharedResourceText.Get(localizer, "MakeupExams.Enrollment.IneligibleCount", invalidIds.Count)); // Check for time conflicts with other makeup sessions var conflictIds = await db.MakeupExamEnrollments.AsNoTracking() @@ -682,8 +722,10 @@ public sealed class MakeupExamsController( .WhereIn(conflictIds, s => s.Id) .Select(s => s.StudentNumber) .ToListAsync(cancellationToken); - return ConflictProblem( - $"以下学生该时段已有其他补考:{string.Join("、", conflictNumbers)}"); + return ConflictProblem(SharedResourceText.Get( + localizer, + "MakeupExams.Enrollment.ExistingMakeupExams", + string.Join(", ", conflictNumbers))); } foreach (var studentId in validIds) @@ -1191,7 +1233,7 @@ public sealed class MakeupExamsController( if (startSlot is null) return (default, default, - ValidationProblem($"起始节次 {startPeriod} 不在已配置的时间表中。")); + ValidationProblem(SharedResourceText.Get(localizer, "MakeupExams.Timetable.StartPeriodUnconfigured", startPeriod))); if (endSlot is null) return (default, default, ValidationProblem( @@ -1385,10 +1427,17 @@ public sealed class MakeupExamsController( private ActionResult ConflictProblem(string detail) => Conflict(new ProblemDetails { - Title = "无法完成补考操作", - Detail = detail, + Title = SharedResourceText.Get(localizer, "MakeupExams.Errors.Title"), + Detail = LocalizeMakeupExamsMessage(detail), Status = StatusCodes.Status409Conflict }); + + private ActionResult ValidationProblem(string detail) => + base.ValidationProblem(detail: LocalizeMakeupExamsMessage(detail)); + + private string LocalizeMakeupExamsMessage(string detail) => + MakeupExamsErrorKeys.TryGetValue(detail, out var key) ? SharedResourceText.Get(localizer, key) : detail; + private static string? Normalize(string? value) => string.IsNullOrWhiteSpace(value) ? null : value.Trim(); private static string? SerializeBuildingIds(IReadOnlyCollection? ids) => diff --git a/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.en-US.resx b/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.en-US.resx index 21a9114..2a05a85 100644 --- a/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.en-US.resx +++ b/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.en-US.resx @@ -292,4 +292,86 @@ administrative class “{0}” and “{1}” have a {2} conflict. A timetable for the same term is already being checked and published. Wait for it to finish. + Exam operations could not be completed + The selected term does not exist or is disabled. + The exam plan cannot be deleted while scheduling is running. + Only draft exam plans can be deleted. + The exam plan could not be deleted. Related data may have changed. + The assignment status filter is invalid. + Sessions cannot be changed while the exam plan is being scheduled. + Sessions cannot be changed after the exam plan is published. + Select at least one teaching class. + Select no more than 100 teaching classes at a time. + The selected classes include nonexistent, cross-term or unpublished teaching classes. + Exam sessions could not be created. Related data may have changed. + Select at least one exam session. + Remove no more than 100 exam sessions at a time. + Exam sessions could not be removed. Related data may have changed. + Select at least one room or invigilator to assign. + Process no more than 100 exam sessions at a time. + Only draft exam plans can be scheduled automatically. + The selected session does not exist or does not belong to this exam plan. + Wait for scheduling to finish before publishing the exam plan. + The exam plan is being published. Wait for the task to finish. + Only draft exam plans can be published. + Add at least one exam session before publishing. + There are no exam sessions to export from the current plan. + The start date cannot be later than the end date. + The current account is not linked to a student record. + Class periods are not configured for this term. Configure them in schedule settings first. + The exam start time must be earlier than the end time. + The teaching class and exam plan must belong to the same term. + The selected exam room does not exist or is disabled. + One or more invigilators are invalid. + The exam room is already occupied at this time. + The room is occupied by a combined exam at this time. + The invigilator already has an exam assignment at this time. + The invigilator already has a combined exam assignment at this time. + Some students have an exam time conflict. + The exam session is duplicated or related data has changed. + Some selected sessions do not exist or are outside this plan. Refresh and select again. + Makeup exam operations could not be completed + The selected term does not exist or is disabled. + Wait for scheduling to finish before publishing the makeup exam plan. + The makeup exam plan is being published. Wait for the task to finish. + Only draft makeup exam plans can be published. + Add at least one exam session before publishing. + The makeup exam plan cannot be archived while scheduling is running. + Only published makeup exam plans can be archived. + Sessions cannot be changed while the makeup exam plan is being scheduled. + Sessions cannot be changed after the makeup exam plan is published. + Select at least one teaching class. + Select no more than 100 teaching classes at a time. + The selected classes include nonexistent, cross-term or unpublished teaching classes. + Makeup exam sessions could not be created. Related data may have changed. + Select at least one room or invigilator to assign. + Process no more than 100 makeup exam sessions at a time. + Only draft makeup exam plans can be scheduled automatically. + The selected session does not exist or does not belong to this makeup exam plan. + Wait for automatic session generation to finish before scheduling this plan. + Only draft makeup exam plans can generate sessions automatically. + Wait for scheduling to finish before generating sessions automatically. + Enrollments cannot be changed after the makeup exam plan is published. + All selected students are already enrolled or invalid. + Grades can only be entered for a published makeup exam plan. + Some makeup exam students cannot be linked to an original course grade. Create the teaching class grade sheet first, then try again. + The current account is not linked to a student record. + Class periods are not configured for this term. Configure them in schedule settings first. + The exam start time must be earlier than the end time. + The teaching class and makeup exam plan must belong to the same term. + The selected exam room does not exist or is disabled. + One or more invigilators are invalid. + The exam room is already occupied at this time. + The invigilator already has a makeup exam assignment at this time. + The makeup exam session is duplicated or related data has changed. + {0} selected teaching classes already have exams scheduled in this plan. + Scheduling these classes at the same time would cause exam conflicts for {0} students. Select different times in separate batches. + Starting period {0} is not configured in the timetable. + Ending period {0} is not configured in the timetable. + The exam room is too small: it needs to hold {0} people, but its capacity is {1}. + {0} selected teaching classes already have sessions in this makeup exam plan. + {0} students are not eligible for the makeup exam. + The following students already have another makeup exam at this time: {0} + Starting period {0} is not configured in the timetable. + Ending period {0} is not configured in the timetable. diff --git a/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.resx b/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.resx index 79dc7f9..a3676dc 100644 --- a/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.resx +++ b/src/Jiaowu.Api/Resources/Infrastructure/Localization/SharedResource.resx @@ -292,4 +292,86 @@ 行政班 “{0}”与“{1}”存在{2}冲突。 同一学期已有课表正在后台检查并发布,请等待任务完成。 + 无法完成考务操作 + 所选学期不存在或已停用。 + 考试计划正在后台编排,暂时不能删除。 + 只有草稿考试计划可以删除。 + 删除考试计划失败,关联数据可能已发生变化。 + 分配状态筛选值无效。 + 考试计划正在后台编排,暂时不能调整场次。 + 已发布的考试计划不能调整场次。 + 请至少选择一个教学班。 + 一次最多选择100个教学班。 + 所选教学班包含不存在、跨学期或未发布的教学班。 + 批量创建考试场次失败,关联数据可能已发生变化。 + 请至少选择一个考试场次。 + 一次最多移除100个考试场次。 + 批量移除考试场次失败,关联数据可能已发生变化。 + 请至少选择分配考场或分配监考教师。 + 一次最多处理100个考试场次。 + 只有草稿状态的考试计划可以自动编排。 + 所选场次不存在或不属于当前考试计划。 + 考试计划正在后台编排,完成后才能发布。 + 考试计划正在后台发布,请等待任务完成。 + 只有草稿考试计划可以发布。 + 至少安排一个考试场次后才能发布。 + 当前考试计划没有可导出的考试场次。 + 开始日期不能晚于结束日期。 + 当前账号未关联学生档案。 + 当前学期未配置上课时间表,请先在排课设置中配置节次时间。 + 考试开始时间必须早于结束时间。 + 教学班与考试计划必须属于同一学期。 + 所选考场不存在或已停用。 + 存在无效监考教师。 + 该时段考场已被占用。 + 该时段考场已被混排考试占用。 + 监考教师在该时段已有考试任务。 + 监考教师在该时段已有混排考场任务。 + 存在学生考试时间冲突。 + 考试场次重复,或关联数据已发生变化。 + 所选考试场次包含不存在或不属于当前计划的记录,请刷新后重新选择。 + 无法完成补考操作 + 所选学期不存在或已停用。 + 补考计划正在后台编排,完成后才能发布。 + 补考计划正在后台发布,请等待任务完成。 + 只有草稿补考计划可以发布。 + 至少安排一个考试场次后才能发布。 + 补考计划正在后台编排,暂时不能归档。 + 只有已发布的补考计划可以归档。 + 补考计划正在后台编排,暂时不能调整场次。 + 已发布的补考计划不能调整场次。 + 请至少选择一个教学班。 + 一次最多选择100个教学班。 + 所选教学班包含不存在、跨学期或未发布的教学班。 + 批量创建补考场次失败,关联数据可能已发生变化。 + 请至少选择分配考场或分配监考教师。 + 一次最多处理100个补考场次。 + 只有草稿状态的补考计划可以自动编排。 + 所选场次不存在或不属于当前补考计划。 + 该计划正在自动生成补考场次,请完成后再编排。 + 只有草稿状态的补考计划可以自动生成。 + 该计划正在自动编排,请完成后再自动生成场次。 + 已发布的补考计划不能调整登记。 + 所选学生均已登记或无效。 + 只有已发布的补考计划可以录入成绩。 + 存在无法关联原课程成绩的补考考生,不能录入补考成绩。请先建立该教学班成绩单后重试。 + 当前账号未关联学生档案。 + 当前学期未配置上课时间表,请先在排课设置中配置节次时间。 + 考试开始时间必须早于结束时间。 + 教学班与补考计划必须属于同一学期。 + 所选考场不存在或已停用。 + 存在无效监考教师。 + 该时段考场已被占用。 + 监考教师在该时段已有补考任务。 + 补考场次重复,或关联数据已发生变化。 + 所选教学班中有 {0} 个已在当前计划中安排考试。 + 所选教学班在同一时段安排会造成 {0} 名学生考试冲突,请分批选择不同时间。 + 起始节次 {0} 不在已配置的时间表中。 + 结束节次 {0} 不在已配置的时间表中。 + 考场容量不足:需容纳 {0} 人,教室容量为 {1}。 + 所选教学班中有 {0} 个已在当前补考计划中安排。 + {0} 名学生不符合补考资格。 + 以下学生该时段已有其他补考:{0} + 起始节次 {0} 不在已配置的时间表中。 + 结束节次 {0} 不在已配置的时间表中。