You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StatisticIndex.js 2.9 KiB

4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-08-08 17:21
  5. * 描 述:新生信息统计
  6. */
  7. var selectedRow;
  8. var refreshGirdData;
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.initGird();
  14. page.bind();
  15. page.bindSelect();
  16. },
  17. bind: function () {
  18. // 查询
  19. $('#btn_Search').on('click', function () {
  20. var Grade = $('#Grade').lrselectGet();
  21. if (Grade == null || Grade == "") {
  22. learun.alert.warning("请选择年级!");
  23. return;
  24. }
  25. page.search({ Grade: Grade });
  26. });
  27. // 刷新
  28. $('#lr_refresh').on('click', function () {
  29. location.reload();
  30. });
  31. },
  32. bindSelect: function () {
  33. //年级
  34. $('#Grade').lrselect({
  35. placeholder: "请选择年级",
  36. allowSearch: true,
  37. url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData',
  38. value: 'value',
  39. text: 'text'
  40. });
  41. $('#Grade').lrselectSet(Grade);
  42. },
  43. initGird: function () {
  44. $('#gridtable').lrAuthorizeJfGrid({
  45. url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticList',
  46. headData: [
  47. { label: '年级', name: 'Grade', width: 150, align: "left" },
  48. { label: '专业编号', name: 'MajorNo', width: 150, align: "left" },
  49. { label: '专业名称', name: 'MajorName', width: 150, align: "left" },
  50. { label: '总人数', name: 'TotalNum', width: 150, align: "left", statistics: true },
  51. { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left", statistics: true },
  52. { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left", statistics: true },
  53. { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left", statistics: true },
  54. { label: '已领取用品人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true },
  55. ],
  56. mainId: 'MajorNo',
  57. isPage: false,
  58. sidx: 'MajorNo',
  59. sord: 'asc'
  60. });
  61. page.search({ Grade: Grade });
  62. },
  63. search: function (param) {
  64. param = param || {};
  65. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  66. }
  67. };
  68. refreshGirdData = function () {
  69. page.search();
  70. };
  71. page.init();
  72. }