diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/Index.js
index 64bac4e7e..a034494d3 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/Index.js
@@ -7,15 +7,71 @@
var refreshGirdData;
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);
+ }, 250, 400);
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptno',text: 'deptname' });
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj',value: 'classno',text: 'classname' });
$('#FundingLevel').lrDataItemSelect({ code: 'StateStipend' });
@@ -29,8 +85,8 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '新增',
url: top.$.rootUrl + '/EducationalAdministration/SchoolLevelScholarship/Form',
- width: 850,
- height: 650,
+ width: 1100,
+ height: 700,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -40,12 +96,17 @@ var bootstrap = function ($, learun) {
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
+ var Status = $('#gridtable').jfGridValue('Status');
+ if (Status != "0") {
+ learun.alert.warning("当前项不属于草稿状态,无法编辑!");
+ return false;
+ }
learun.layerForm({
id: 'form',
title: '编辑',
url: top.$.rootUrl + '/EducationalAdministration/SchoolLevelScholarship/Form?keyValue=' + keyValue,
- width: 850,
- height: 650,
+ width: 1100,
+ height: 700,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
@@ -56,6 +117,11 @@ var bootstrap = function ($, learun) {
$('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
if (learun.checkrow(keyValue)) {
+ var Status = $('#gridtable').jfGridValue('Status');
+ if (Status != "0") {
+ learun.alert.warning("当前项不属于草稿状态,无法删除!");
+ return false;
+ }
learun.layerConfirm('是否确认删除该项!', function (res) {
if (res) {
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/SchoolLevelScholarship/DeleteForm', { keyValue: keyValue}, function () {
@@ -65,14 +131,11 @@ var bootstrap = function ($, learun) {
});
}
});
- // 打印
- $('#lr_print').on('click', function () {
- $('#gridtable').jqprintTable();
- });
+
},
// 初始化列表
initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
+ $('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/SchoolLevelScholarship/GetPageList',
headData: [
{ label: "学号", name: "StuNo", width: 100, align: "left"},
@@ -99,8 +162,21 @@ var bootstrap = function ($, learun) {
}
});
}},
- { label: "身份证件类型", name: "IdCardType", width: 100, align: "left"},
+ {
+ 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: "IdCard", width: 100, align: "left"},
+ { label: "学年", name: "AcademicYearNo", width: 100, align: "left" },
+ { label: "学期", name: "Semester", width: 100, align: "left" },
{ label: "成绩排名总人数", name: "CalssNum", width: 100, align: "left"},
{ label: "成绩排名名次", name: "ClassRank", width: 100, align: "left"},
{ label: "资助等级", name: "FundingLevel", width: 100, align: "left",
@@ -116,27 +192,108 @@ var bootstrap = function ($, learun) {
{ label: "资助标准", name: "FundingCriteria", width: 100, align: "left"},
{ label: "应发金额", name: "ShoudAmount", width: 100, align: "left"},
{ label: "实发金额", name: "ActualAmount", width: 100, align: "left"},
- { label: "申请日期", name: "ApplyDate", width: 100, align: "left"},
- { label: "发放日期", name: "ProvideDate", width: 100, align: "left"},
+ {
+ label: "申请日期", name: "ApplyDate", width: 100, align: "left",
+ formatter: function (cellvalue) {
+ return learun.formatDate(cellvalue, 'yyyy-MM-dd');
+ }
+ },
+ {
+ label: "发放日期", name: "ProvideDate", width: 100, align: "left",
+ formatter: function (cellvalue) {
+ return learun.formatDate(cellvalue, 'yyyy-MM-dd');
+ }
+ },
{ label: "申请理由", name: "ApplyAccount", width: 100, align: "left"},
- { label: "开户银行", name: "DepositBank", width: 100, align: "left"},
+ {
+ label: "开户银行", name: "DepositBank", width: 100, 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: "BankCard", width: 100, align: "left"},
{ label: "开户行号", name: "BankCode", width: 100, align: "left"},
- { label: "备注", name: "Remark", width: 100, align: "left"},
- { label: "附件上传", name: "Url", width: 100, align: "left"},
+ { label: "备注说明", name: "Remark", width: 100, align: "left" },
+ {
+ label: '审核状态', name: 'Status', width: 100, align: "left", formatter: function (cellvalue) {
+ return cellvalue == "0" ? "
草稿" : cellvalue == "1" ? "
学院审核中" : cellvalue == "2" ? "
学工部审核中" : cellvalue == "3" ? "
已归档" : "
草稿";
+ }
+ },
+ {
+ 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
+ isPage: true,
+ sidx: 'CreateTime desc'
});
- page.search();
},
search: function (param) {
param = param || {};
- $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
+ param.StartTime = startTime;
+ param.EndTime = endTime;
+ param.StartTimeRelease = startTimeRelease;
+ param.EndTimeRelease = endTimeRelease;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
- $('#gridtable').jfGridSet('reload');
+ page.search();
};
page.init();
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/IndexInStuScore.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/IndexInStuScore.cshtml
index 8589c13b2..a45c218de 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/IndexInStuScore.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SchoolLevelScholarship/IndexInStuScore.cshtml
@@ -112,4 +112,3 @@