diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormYearSemester.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormYearSemester.js index c9bfd383e..34afd6899 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormYearSemester.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormYearSemester.js @@ -36,13 +36,13 @@ var bootstrap = function ($, learun) { initData: function () { //从教室导入 if (type == 1) { - $('body').find('.SeatClass').attr('display', 'block'); + $('body').find('.SeatClass').show(); $('body').find('.SeatClass input').attr('isvalid', 'yes'); $('body').find('.SeatClass input').attr('checkexpession', 'PositiveInteger'); } else if (type == 2) {//按条件清空 $('body').find('.SeatClass input').removeAttr('isvalid'); $('body').find('.SeatClass input').removeAttr('checkexpession'); - $('body').find('.SeatClass').attr('display', 'none'); + $('body').find('.SeatClass').hide(); } } }; @@ -51,14 +51,8 @@ var bootstrap = function ($, learun) { if (!$('body').lrValidform()) { return false; } - //var postData = { - // AcademicYearNo: $('#AcademicYearNo').lrselectGet(), - // Semester: $('#Semester').lrselectGet() - //}; + var postData = $('body').lrGetFormData(); - console.log(postData); - //TODO: - return false; //从教室导入 if (type == 1) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.cshtml index 7bd6cb232..3354a819e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.cshtml @@ -41,7 +41,6 @@  启用  停用 -  打印
 从教室导入 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.js index e5438725a..922009c4f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/Index.js @@ -54,6 +54,11 @@ var bootstrap = function ($, learun) { learun.alert.warning("只能选择一条记录进行编辑!"); return false; } + var EREnabled = $('#gridtable').jfGridValue('EREnabled'); + if (EREnabled == "true") { + learun.alert.warning("选中记录已启用!"); + return false; + } if (learun.checkrow(keyValue)) { learun.layerForm({ id: 'form', @@ -151,10 +156,7 @@ var bootstrap = function ($, learun) { }); } }); - // 打印 - $('#lr_print').on('click', function () { - $('#gridtable').jqprintTable(); - }); + }, // 初始化列表 initGird: function () {