From c2eb40de65d2ac79a312e1c315c77fce495a4a67 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Fri, 6 May 2022 14:40:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E6=8E=92=E8=80=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Exam_ExamPlanLessonController.cs | 5 ++++ .../FormRoomTeacher.cshtml | 4 +-- .../Exam_ExamPlanLesson/FormRoomTeacher.js | 25 +++++++++++++------ .../Views/Exam_ExamPlanLesson/Index.cshtml | 4 ++- .../Views/Exam_ExamPlanLesson/Index.js | 3 +++ 5 files changed, 30 insertions(+), 11 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs index 1dc76c0f2..7fdec2ab7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Exam_ExamPlanLessonController.cs @@ -257,6 +257,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers if (ELCheckMark == 1) { var entity = exam_ExamPlanLessonIBLL.GetExam_ExamPlanLessonEntity(keyValue); + if (entity.ExamDate == null || entity.ExamTimeStart == null || entity.ExamTimeEnd == null) + { + return Fail("请先设置考试时间!"); + } + if ((entity.RealClassNum == null || entity.RealClassNum == 0) || (entity.SeatCount == null || entity.SeatCount == 0)) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml index b4257ae8d..8c4e3feee 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.cshtml @@ -5,8 +5,8 @@