/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 * 创建人:超级管理员 * 日 期:2023-03-13 10:37 * 描 述:资助管理统计 */ var refreshGirdData; var bootstrap = function ($, learun) { "use strict"; var page = { init: function () { page.initGird(); page.bind(); }, bind: function () { $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { page.search(queryJson); }, 220, 400); //下拉框绑定 $('#Types').lrselect({ data: [{ id: "1", text: "国家助学金" }, { id: "2", text: "校级助学金" }, { id: "3", text: "校级奖学金" }]}); $('#ApplyDate').lrselect({ url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GenerateNearByYear', value:'value', text:'text' }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); }); }, initGird: function () { $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StuFellowship/GetStatisticList', headData: [ { label: '资助类型', name: 'Types', width: 100, align: "left" , formatter: function (cellvalue) { return cellvalue == "1" ? "国家助学金" : cellvalue == "2" ? "校级助学金" : "校级奖学金"; } }, { label: '年度', name: 'YearName', width: 100, align: "left" }, { label: '资助人数', name: 'TotalCount', width: 100, align: "left" }, { label: '资助金额', name: 'TotalAmount', width: 100, align: "left" }, ], mainId: '', }); page.search(); }, search: function (param) { param = param || {}; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { page.search(); }; page.init(); }