/* * 版 本 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(); page.bindSelect(); }, 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(); }); }, bindSelect: function () { //年级 $('#Grade').lrselect({ placeholder: "请选择年级", allowSearch: true, url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData', value: 'value', text: 'text' }); $('#Grade').lrselectSet(Grade); }, initGird: function () { $('#gridtable').jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticList', headData: [ { label: '年级', name: 'Grade', width: 80, align: "left" }, { label: '专业编号', name: 'MajorNo', width: 100, align: "left" }, { label: '专业名称', name: 'MajorName', width: 100, align: "left" }, { 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: 'MajorNo', isPage: false, sidx: 'MajorNo', sord: 'asc', isSubGrid: true, subGridExpanded: function (subContentId, rowItem) { $('#' + subContentId).jfGrid({ url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticListOfClass', headData: [ { label: '年级', name: 'Grade', width: 80, align: "left" }, { label: "班级编号", name: "ClassNo", width: 100, align: "left" }, { label: "班级名称", name: "ClassName", width: 100, align: "left" }, { label: '总人数', name: 'TotalNum', width: 100, align: "left" }, { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left" }, { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left" }, { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left" }, { label: '贷款人数', name: 'LoanNum', width: 100, align: "left" }, { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left" }, { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left" }, { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left" }, { label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left" }, { label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left" }, ], mainId: 'ClassNo', isPage: false, sidx: 'ClassNo' }); var param; param = param || {}; param.Grade = rowItem.Grade; param.MajorNo = rowItem.MajorNo; $('#' + subContentId).jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }); page.search({ Grade: Grade }); }, search: function (param) { param = param || {}; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function () { page.search(); }; page.init(); }