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.
 
 
 
 
 
 

87 lines
3.9 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 ClassNo = "";
  12. var page = {
  13. init: function () {
  14. page.initGird();
  15. page.bind();
  16. page.bindSelect();
  17. },
  18. bind: function () {
  19. // 查询
  20. $('#btn_Search').on('click', function () {
  21. var Grade = $('#Grade').lrselectGet();
  22. if (Grade == null || Grade == "") {
  23. learun.alert.warning("请选择年级!");
  24. return;
  25. }
  26. ClassNo = $('#ClassNo').lrselectGet();
  27. page.search({ Grade: Grade, ClassNo: ClassNo });
  28. });
  29. // 刷新
  30. $('#lr_refresh').on('click', function () {
  31. location.reload();
  32. });
  33. },
  34. bindSelect: function () {
  35. //年级
  36. $('#Grade').lrselect({
  37. placeholder: "请选择年级",
  38. allowSearch: true,
  39. url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData',
  40. value: 'value',
  41. text: 'text'
  42. });
  43. $('#Grade').lrselectSet(Grade);
  44. //班级
  45. $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  46. },
  47. initGird: function () {
  48. $('#gridtable').jfGrid({
  49. url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticListOfClass',
  50. headData: [
  51. { label: '年级', name: 'Grade', width: 80, align: "left" },
  52. { label: '专业编号', name: 'MajorNo', width: 100, align: "left" },
  53. { label: '专业名称', name: 'MajorName', width: 100, align: "left" },
  54. { label: "班级编号", name: "ClassNo", width: 100, align: "left" },
  55. { label: "班级名称", name: "ClassName", width: 100, align: "left" },
  56. { label: '总人数', name: 'TotalNum', width: 100, align: "left", statistics: true },
  57. { label: '已完善个人信息人数', name: 'InfoNum', width: 130, align: "left", statistics: true },
  58. { label: '已报到人数', name: 'RegisterNum', width: 100, align: "left", statistics: true },
  59. { label: '已缴费人数', name: 'PayFeeNum', width: 100, align: "left", statistics: true },
  60. { label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true },
  61. { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true },
  62. { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true },
  63. { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true },
  64. { label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left", statistics: true },
  65. { label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left", statistics: true },
  66. ],
  67. mainId: 'MajorNo',
  68. isPage: false,
  69. sidx: 'MajorNo,ClassNo',
  70. sord: 'asc',
  71. });
  72. page.search({ Grade: Grade, ClassNo: ClassNo });
  73. },
  74. search: function (param) {
  75. param = param || {};
  76. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  77. }
  78. };
  79. refreshGirdData = function () {
  80. page.search();
  81. };
  82. page.init();
  83. }