|
|
@@ -139,6 +139,11 @@ var bootstrap = function ($, learun) { |
|
|
|
if (!$('.lr-form-wrap').lrValidform()) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
var ClassroomName = $('#ClassroomName').val(); |
|
|
|
if (!ClassroomName) { |
|
|
|
learun.alert.warning("请选择考场!"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
var datas = $('#Exam_ExamPlanTeacher').jfGridGet('rowdatas'); |
|
|
|
if (datas == null || datas.length == 0) { |
|
|
|
learun.alert.warning("请先新增监考老师!"); |
|
|
@@ -159,15 +164,19 @@ var bootstrap = function ($, learun) { |
|
|
|
postData.strEntity = JSON.stringify(formData); |
|
|
|
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(); |
|
|
|
} |