|
|
@@ -0,0 +1,247 @@ |
|
|
|
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) |
|
|
|
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 |
|
|
|
* 创建人:超级管理员 |
|
|
|
* 日 期:2023-03-13 10:37 |
|
|
|
* 描 述:定制功能助学金 |
|
|
|
*/ |
|
|
|
var refreshGirdData; |
|
|
|
var types = request('types');//助学金类型:1国家助学金,2校级助学金 |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var startTime; |
|
|
|
var endTime; |
|
|
|
var startTimeRelease; |
|
|
|
var endTimeRelease; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
|
page.initGird(); |
|
|
|
page.bind(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
$('#datesearch').lrdate({ |
|
|
|
dfdata: [ |
|
|
|
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } } |
|
|
|
], |
|
|
|
// 月 |
|
|
|
mShow: false, |
|
|
|
premShow: false, |
|
|
|
// 季度 |
|
|
|
jShow: false, |
|
|
|
prejShow: false, |
|
|
|
// 年 |
|
|
|
ysShow: false, |
|
|
|
yxShow: false, |
|
|
|
preyShow: false, |
|
|
|
yShow: false, |
|
|
|
// 默认 |
|
|
|
dfvalue: '1', |
|
|
|
selectfn: function (begin, end) { |
|
|
|
startTime = begin; |
|
|
|
endTime = end; |
|
|
|
page.search(); |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#datesearchRelease').lrdate({ |
|
|
|
dfdata: [ |
|
|
|
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, |
|
|
|
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } } |
|
|
|
], |
|
|
|
// 月 |
|
|
|
mShow: false, |
|
|
|
premShow: false, |
|
|
|
// 季度 |
|
|
|
jShow: false, |
|
|
|
prejShow: false, |
|
|
|
// 年 |
|
|
|
ysShow: false, |
|
|
|
yxShow: false, |
|
|
|
preyShow: false, |
|
|
|
yShow: false, |
|
|
|
// 默认 |
|
|
|
dfvalue: '1', |
|
|
|
selectfn: function (begin, end) { |
|
|
|
startTimeRelease = begin; |
|
|
|
endTimeRelease = end; |
|
|
|
page.search(); |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 350, 400); |
|
|
|
//下拉框绑定 |
|
|
|
$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' }); |
|
|
|
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); |
|
|
|
$('#SubsidizeType').lrDataItemSelect({ code: 'StateStipend' }); |
|
|
|
|
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuFellowship/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: '学号', name: 'StuNo', width: 120, align: "left" }, |
|
|
|
{ label: '姓名', name: 'StuName', width: 150, align: "left" }, |
|
|
|
{ |
|
|
|
label: '院校', name: 'F_SchoolId', width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', |
|
|
|
key: value, |
|
|
|
keyId: 'f_companyid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_fullname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "所属班级", name: "ClassNo", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj', |
|
|
|
key: value, |
|
|
|
keyId: 'classno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['classname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '身份证件类型', name: 'IdCardType', width: 100, align: "left" |
|
|
|
, formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'IdCardType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '身份证件号', name: 'IdentityCardNo', width: 160, align: "left" }, |
|
|
|
{ |
|
|
|
label: '资助等级', name: 'SubsidizeType', width: 100, align: "left" |
|
|
|
, formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'StateStipend', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '资助标准', name: 'FunderNationStandard', width: 100, align: "left" }, |
|
|
|
{ label: '应发金额', name: 'AmountPayable', width: 100, align: "left" }, |
|
|
|
{ label: '实发金额', name: 'FinalPayingAmount', width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: '申请日期', name: 'ApplyDate', width: 100, align: "left", |
|
|
|
formatter: function (cellvalue) { |
|
|
|
return learun.formatDate(cellvalue, 'yyyy-MM-dd'); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '发放日期', name: 'ReleaseDate', width: 100, align: "left" }, |
|
|
|
{ label: '申请理由', name: 'ApplyReason', width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: '开户银行', name: 'OpenBank', width: 200, align: "left" |
|
|
|
, formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'DepositBank', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '开户卡账号', name: 'OpenAccount', width: 200, align: "left" }, |
|
|
|
{ label: '开户行号', name: 'OpenBankNo', width: 120, align: "left" }, |
|
|
|
{ label: '备注说明', name: 'Remark', width: 200, align: "left" }, |
|
|
|
{ |
|
|
|
label: '审核状态', name: 'Status', width: 100, align: "left", formatter: function (cellvalue) { |
|
|
|
return cellvalue == "0" ? "<span class=\"label label-default\">草稿</span>" : cellvalue == "1" ? "<span class=\"label label-success\">学院审核中</span>" : cellvalue == "2" ? "<span class=\"label label-success\">学工部审核中</span>" : cellvalue == "3" ? "<span class=\"label label-success\">已归档</span>" : "<span class=\"label label-default\">草稿</span>"; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建人', name: 'CreateUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '创建时间', name: 'CreateTime', width: 130, align: "left" }, |
|
|
|
{ label: '提交时间', name: 'SubmitTime', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '提交人', name: 'SubmitUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '学院审核人', name: 'FirstCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '学院审核时间', name: 'FirstCheckTime', width: 130, align: "left" }, |
|
|
|
{ |
|
|
|
label: '学工部审核人', name: 'SecondCheckUserId', width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: '学工部审核时间', name: 'SecondCheckTime', width: 130, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
sidx: 'SubmitTime desc' |
|
|
|
}); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
param.Types = types; |
|
|
|
param.StartTime = startTime; |
|
|
|
param.EndTime = endTime; |
|
|
|
param.StartTimeRelease = startTimeRelease; |
|
|
|
param.EndTimeRelease = endTimeRelease; |
|
|
|
param.StuNo = learun.clientdata.get(['userinfo']).account;//学生学号 |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
page.search(); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |