|
|
@@ -79,7 +79,7 @@ var bootstrap = function ($, learun) { |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认启用选择项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/AwardAndPunishment/EnableDisable', { keyValue: keyValue, status: "1" }, function () { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/AwardAndPunishment/EnableDisable', { keyValue: keyValue, status: "0" }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -88,11 +88,11 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
//禁用 |
|
|
|
$('#lr_disabled').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('StuId'); |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认禁用选择项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/AwardAndPunishment/EnableDisable', { keyValue: keyValue, status: "0" }, function () { |
|
|
|
learun.postForm(top.$.rootUrl + '/EducationalAdministration/AwardAndPunishment/EnableDisable', { keyValue: keyValue, status: "1" }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -105,8 +105,8 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/AwardAndPunishment/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "奖励名称", name: "AwardName", width: 100, align: "left" }, |
|
|
|
{ label: "奖励代码", name: "CodePrize", width: 100, align: "left" }, |
|
|
|
{ label: "惩罚名称", name: "AwardName", width: 100, align: "left" }, |
|
|
|
{ label: "惩罚代码", name: "CodePrize", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: '状态', name: 'IsValid', width: 100, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|