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.

StatisticsProvince.js 4.1 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. },
  16. bind: function () {
  17. // 查询
  18. $('#btn_Search').on('click', function () {
  19. var Grade = $('#Grade').lrselectGet();
  20. if (Grade == null || Grade == "") {
  21. learun.alert.warning("请选择年级!");
  22. return;
  23. }
  24. page.search({ Grade: Grade });
  25. });
  26. // 刷新
  27. $('#lr_refresh').on('click', function () {
  28. location.reload();
  29. });
  30. },
  31. initGird: function () {
  32. $('#gridtable').lrAuthorizeJfGrid({
  33. url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticProvince',
  34. headData: [
  35. {
  36. label: '省份', name: 'Province', width: 100, align: "left",
  37. formatterAsync: function (callback, value, row, op, $cell) {
  38. learun.clientdata.getAsync('custmerData', {
  39. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
  40. key: value,
  41. keyId: 'pcode',
  42. callback: function (_data) {
  43. callback(_data['pname']);
  44. }
  45. });
  46. }
  47. },
  48. {
  49. label: '地市', name: 'City', width: 100, align: "left",
  50. formatterAsync: function (callback, value, row, op, $cell) {
  51. learun.clientdata.getAsync('custmerData', {
  52. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
  53. key: value,
  54. keyId: 'ccode',
  55. callback: function (_data) {
  56. callback(_data['cname']);
  57. }
  58. });
  59. }
  60. },
  61. { label: '总人数', name: 'TotalNum', width: 100, align: "left", statistics: true },
  62. { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left", statistics: true },
  63. { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left", statistics: true },
  64. { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left", statistics: true },
  65. { label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true },
  66. { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true },
  67. { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true },
  68. { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true },
  69. { label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left", statistics: true },
  70. { label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left", statistics: true },
  71. ],
  72. mainId: 'City',
  73. isPage: false,
  74. sidx: 'Province,City',
  75. });
  76. page.search();
  77. },
  78. search: function (param) {
  79. param = param || {};
  80. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  81. }
  82. };
  83. refreshGirdData = function () {
  84. page.search();
  85. };
  86. page.init();
  87. }