|
|
@@ -51,7 +51,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
// 新增 |
|
|
|
$('#lr_add').on('click', function () { |
|
|
|
learun.layerForm({ |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '新增', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuEncourgement/Form', |
|
|
@@ -82,9 +82,9 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuEncourgement/DeleteForm', { keyValue: keyValue}, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/StuEncourgement/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -97,14 +97,19 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuEncourgement/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "学号", name: "StuNo", width: 200, align: "left"}, |
|
|
|
{ label: "姓名", name: "StuName", width: 200, align: "left"}, |
|
|
|
{ label: "奖励名称", name: "EncourgeName", width: 200, align: "left"}, |
|
|
|
{ label: "奖励原因", name: "Reason", width: 200, align: "left"}, |
|
|
|
{ label: "奖励金额", name: "Fee", width: 200, align: "left"}, |
|
|
|
{ label: "奖励日期", name: "EncourgeDate", width: 200, align: "left"}, |
|
|
|
{ label: "学号", name: "StuNo", width: 200, align: "left" }, |
|
|
|
{ label: "姓名", name: "StuName", width: 200, align: "left" }, |
|
|
|
{ label: "奖励名称", name: "EncourgeName", width: 200, align: "left" }, |
|
|
|
{ label: "奖励原因", name: "Reason", width: 200, align: "left" }, |
|
|
|
{ label: "奖励金额", name: "Fee", width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: "奖励日期", name: "EncourgeDate", width: 200, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId:'ID', |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
page.search(); |
|
|
@@ -113,7 +118,7 @@ var bootstrap = function ($, learun) { |
|
|
|
param = param || {}; |
|
|
|
param.StartTime = startTime; |
|
|
|
param.EndTime = endTime; |
|
|
|
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|