|
|
@@ -272,6 +272,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
|
return Fail("考场座位数不足!"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
exam_ExamPlanLessonIBLL.Check(keyValue, ELCheckMark); |
|
|
@@ -308,11 +309,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
|
|
|
|
entity.EPLId = keyValue; |
|
|
|
//判断考试时间是否冲突 |
|
|
|
var res = exam_ExamPlanLessonIBLL.IsExamTimeClash(entity); |
|
|
|
if (res.flag && !string.IsNullOrEmpty(res.lessonname)) |
|
|
|
{ |
|
|
|
return Fail("考试时间与课程(" + res.lessonname + ")冲突!"); |
|
|
|
} |
|
|
|
//var res = exam_ExamPlanLessonIBLL.IsExamTimeClash(entity); |
|
|
|
//if (res.flag && !string.IsNullOrEmpty(res.lessonname)) |
|
|
|
//{ |
|
|
|
// return Fail("考试时间与课程(" + res.lessonname + ")冲突!"); |
|
|
|
//} |
|
|
|
|
|
|
|
//保存 |
|
|
|
exam_ExamPlanLessonIBLL.SaveEntity(keyValue, entity); |
|
|
@@ -325,6 +326,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public ActionResult SaveClass(string EPLId, string strEntity) |
|
|
|
{ |
|
|
|
var list = strEntity.ToObject<List<Exam_ExamPlanClassEntity>>(); |
|
|
|
//判断排考班级的考试时间是否冲突 |
|
|
|
var res = exam_ExamPlanClassIBLL.IsExamConflict(list); |
|
|
|
if (res.flag && !string.IsNullOrEmpty(res.msg)) |
|
|
|
{ |
|
|
|
return Fail(res.msg); |
|
|
|
} |
|
|
|
|
|
|
|
exam_ExamPlanClassIBLL.SaveList(list); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
@@ -342,14 +350,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
//[HttpPost] |
|
|
|
//[ValidateAntiForgeryToken] |
|
|
|
//[AjaxOnly] |
|
|
|
//public ActionResult SaveRoom(List<Exam_ExamPlanRoomEntity> list) |
|
|
|
//{ |
|
|
|
// exam_ExamPlanRoomIBLL.SaveList(list); |
|
|
|
// return Success("保存成功!"); |
|
|
|
//} |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|