|
|
@@ -46,17 +46,25 @@ var bootstrap = function ($, learun) { |
|
|
|
// 审核 |
|
|
|
$('#lr_check').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
console.log(keyValue, "keyValue") |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var CheckMark = $('#gridtable').jfGridValue('CheckMark'); |
|
|
|
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); |
|
|
|
if (CheckMark.indexOf('1') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已审核项目,已审核项不能二次审核!"); |
|
|
|
learun.alert.warning("选中记录中包含已审核项,已审核项不能二次审核!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认审核选中项进行学籍异动,该项不可逆转!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
if (CheckMark.indexOf('2') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已作废项,不可审核!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '审核页面', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm?keyValue=' + keyValue, |
|
|
|
width: 400, |
|
|
|
height: 300, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|