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.
 
 
 
 
 
 

80 lines
3.4 KiB

  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/GetStatisticListOfClass',
  46. headData: [
  47. { label: '年级', name: 'Grade', width: 80, align: "left" },
  48. { label: '专业编号', name: 'MajorNo', width: 100, align: "left" },
  49. { label: '专业名称', name: 'MajorName', width: 100, align: "left" },
  50. { label: "班级编号", name: "ClassNo", width: 100, align: "left" },
  51. { label: "班级名称", name: "ClassName", width: 100, align: "left" },
  52. { label: '总人数', name: 'TotalNum', width: 100, align: "left", statistics: true },
  53. { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left", statistics: true },
  54. { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left", statistics: true },
  55. { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left", statistics: true },
  56. { label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true },
  57. { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true },
  58. { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true },
  59. { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true },
  60. ],
  61. mainId: 'MajorNo',
  62. isPage: false,
  63. sidx: 'MajorNo,ClassNo',
  64. sord: 'asc',
  65. });
  66. page.search({ Grade: Grade });
  67. },
  68. search: function (param) {
  69. param = param || {};
  70. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  71. }
  72. };
  73. refreshGirdData = function () {
  74. page.search();
  75. };
  76. page.init();
  77. }