@@ -257,6 +257,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
if (ELCheckMark == 1) | if (ELCheckMark == 1) | ||||
{ | { | ||||
var entity = exam_ExamPlanLessonIBLL.GetExam_ExamPlanLessonEntity(keyValue); | 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) || | if ((entity.RealClassNum == null || entity.RealClassNum == 0) || | ||||
(entity.SeatCount == null || entity.SeatCount == 0)) | (entity.SeatCount == null || entity.SeatCount == 0)) | ||||
{ | { | ||||
@@ -5,8 +5,8 @@ | |||||
<div class="lr-form-wrap" id="form"> | <div class="lr-form-wrap" id="form"> | ||||
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom"> | <div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom"> | ||||
<div class="lr-form-item-title">考场名称<font face="宋体">*</font></div> | <div class="lr-form-item-title">考场名称<font face="宋体">*</font></div> | ||||
<input id="ClassroomName" type="text" readonly="readonly" class="form-control" isvalid="yes" checkexpession="NotNull" style="width: 85%;" /> | |||||
<button class="btn btn-primary" id="selectRoom" style="float: right;margin-top: -28px;">选择考场</button> | |||||
<input id="ClassroomName" type="text" readonly="readonly" class="form-control" style="width: 85%;" /> | |||||
<button class="btn btn-primary" id="selectRoom" style="float: right;margin-top: -28px;margin-right: 20px;">选择考场</button> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom"> | <div class="col-xs-12 lr-form-item" data-table="Exam_ExamPlanRoom"> | ||||
<div class="lr-form-item-title">考场编号</div> | <div class="lr-form-item-title">考场编号</div> | ||||
@@ -139,6 +139,11 @@ var bootstrap = function ($, learun) { | |||||
if (!$('.lr-form-wrap').lrValidform()) { | if (!$('.lr-form-wrap').lrValidform()) { | ||||
return false; | return false; | ||||
} | } | ||||
var ClassroomName = $('#ClassroomName').val(); | |||||
if (!ClassroomName) { | |||||
learun.alert.warning("请选择考场!"); | |||||
return false; | |||||
} | |||||
var datas = $('#Exam_ExamPlanTeacher').jfGridGet('rowdatas'); | var datas = $('#Exam_ExamPlanTeacher').jfGridGet('rowdatas'); | ||||
if (datas == null || datas.length == 0) { | if (datas == null || datas.length == 0) { | ||||
learun.alert.warning("请先新增监考老师!"); | learun.alert.warning("请先新增监考老师!"); | ||||
@@ -159,15 +164,19 @@ var bootstrap = function ($, learun) { | |||||
postData.strEntity = JSON.stringify(formData); | postData.strEntity = JSON.stringify(formData); | ||||
postData.Exam_ExamPlanTeacherList = JSON.stringify($('#Exam_ExamPlanTeacher').jfGridGet('rowdatas')); | postData.Exam_ExamPlanTeacherList = JSON.stringify($('#Exam_ExamPlanTeacher').jfGridGet('rowdatas')); | ||||
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/SaveRoomAndTeacher?keyValue=' + keyValue, postData, function (res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, formData, i); | |||||
} | |||||
}); | |||||
} | |||||
$.lrSaveForm( | |||||
top.$.rootUrl + | |||||
'/EducationalAdministration/Exam_ExamPlanLesson/SaveRoomAndTeacher?keyValue=' + | |||||
keyValue, | |||||
postData, | |||||
function(res) { | |||||
// 保存成功后才回调 | |||||
if (!!callBack) { | |||||
callBack(res, formData, i); | |||||
} | |||||
}); | |||||
} | |||||
}; | }; | ||||
page.init(); | page.init(); | ||||
} | } |
@@ -6,11 +6,13 @@ | |||||
#div_gridtable_Class { | #div_gridtable_Class { | ||||
float: left; | float: left; | ||||
width: 50%; | width: 50%; | ||||
height: 50%; | |||||
} | } | ||||
#div_gridtable_Room { | #div_gridtable_Room { | ||||
float: right; | float: right; | ||||
width: 50%; | width: 50%; | ||||
height: 50%; | |||||
padding-left: 10px; | padding-left: 10px; | ||||
} | } | ||||
@@ -43,7 +45,7 @@ | |||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<span class="examTimeShow">考试日期:<span id="examDate"></span></span> | <span class="examTimeShow">考试日期:<span id="examDate"></span></span> | ||||
<span class="examTimeShow"> 考试时间:<span id="examTime"></span></span> | <span class="examTimeShow"> 考试时间:<span id="examTime"></span></span> | ||||
<span id="checkspan" style="color: red;" ></span> | |||||
<span id="checkspan" style="color: red;"></span> | |||||
</div> | </div> | ||||
<div class="lr-layout-tool-right"> | <div class="lr-layout-tool-right"> | ||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
@@ -38,6 +38,9 @@ var bootstrap = function ($, learun) { | |||||
//设置考试时间 | //设置考试时间 | ||||
$('#lr_ExamTime').on('click', function () { | $('#lr_ExamTime').on('click', function () { | ||||
if (!!EPLId) { | if (!!EPLId) { | ||||
if (ELCheckMark == 1) { | |||||
return learun.alert.warning('该项已审核!'); | |||||
} | |||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'form', | id: 'form', | ||||
title: '设置考试时间', | title: '设置考试时间', | ||||