|
|
@@ -28,10 +28,8 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
$('#CheckUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); |
|
|
|
$('#CreateUserId').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); |
|
|
|
$('#F_EnabledMark').lrDataItemSelect({ code: 'YesOrNoInt' }); |
|
|
|
|
|
|
|
$('#F_EnabledMark').lrselect({ |
|
|
|
data: [{ text: "作废", value: "0" }, { text: "未审核", value: "1" }, { text: "已审核", value: "2" }], |
|
|
|
data: [{ text: "未生效", value: "0" }, { text: "已生效", value: "1" }], |
|
|
|
text: "text", |
|
|
|
value: "value" |
|
|
|
}) |
|
|
@@ -49,21 +47,14 @@ var bootstrap = function ($, learun) { |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); |
|
|
|
if (CheckMark.indexOf('1') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已审核项,已审核项不能二次审核!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (CheckMark.indexOf('2') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已作废项,不可审核!"); |
|
|
|
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); |
|
|
|
learun.layerConfirm('是否确认审核选中项进行学籍异动,该项不可逆转!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/CheckForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@@ -74,10 +65,10 @@ var bootstrap = function ($, learun) { |
|
|
|
var CheckMark = $('#gridtable').jfGridValue('F_EnabledMark'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (CheckMark.indexOf('1') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已审核项目,不可删除!"); |
|
|
|
learun.alert.warning("选中记录中包含已生效项目,不可删除!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
learun.layerConfirm('是否确认删除该项,此项不可逆!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
@@ -261,11 +252,9 @@ var bootstrap = function ($, learun) { |
|
|
|
label: '审核状态', name: 'F_EnabledMark', width: 100, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
if (cellvalue == "0") { |
|
|
|
return "<span class=\"label label-danger\">未审核</span>"; |
|
|
|
return "<span class=\"label label-danger\">未生效</span>"; |
|
|
|
} else if (cellvalue == "1") { |
|
|
|
return "<span class=\"label label-success\">已审核</span>"; |
|
|
|
} else if (cellvalue == "2") { |
|
|
|
return "<span class=\"label label-default\">作废</span>"; |
|
|
|
return "<span class=\"label label-success\">已生效</span>"; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|