|
- /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
- * Copyright (c) 2013-2018 北京泉江科技有限公司
- * 创建人:超级管理员
- * 日 期:2019-08-08 17:21
- * 描 述:新生信息统计
- */
- var selectedRow;
- var refreshGirdData;
- var bootstrap = function ($, learun) {
- "use strict";
- var page = {
- init: function () {
- page.initGird();
- page.bind();
- },
- bind: function () {
- // 查询
- $('#btn_Search').on('click', function () {
- var Grade = $('#Grade').lrselectGet();
- if (Grade == null || Grade == "") {
- learun.alert.warning("请选择年级!");
- return;
- }
- page.search({ Grade: Grade });
- });
- // 刷新
- $('#lr_refresh').on('click', function () {
- location.reload();
- });
-
-
- },
- initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticProvince',
- headData: [
- {
- label: '省份', name: 'Province', width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
- key: value,
- keyId: 'pcode',
- callback: function (_data) {
- callback(_data['pname']);
- }
- });
- }
- },
- {
- label: '地市', name: 'City', width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
- key: value,
- keyId: 'ccode',
- callback: function (_data) {
- callback(_data['cname']);
- }
- });
- }
- },
- { label: '总人数', name: 'TotalNum', width: 100, align: "left", statistics: true },
- { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left", statistics: true },
- { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left", statistics: true },
- { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left", statistics: true },
- { label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true },
- { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true },
- { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true },
- { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true },
- { label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left", statistics: true },
- { label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left", statistics: true },
- ],
- mainId: 'City',
- isPage: false,
- sidx: 'Province,City',
- });
- page.search();
- },
- search: function (param) {
- param = param || {};
- $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
- }
- };
- refreshGirdData = function () {
- page.search();
- };
- page.init();
- }
|