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.
 
 
 
 
 
 

90 lines
3.8 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-12-16 10:14
  5. * 描 述:长阳迎新
  6. */
  7. var refreshGirdData;
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.initGird();
  13. page.bind();
  14. },
  15. bind: function () {
  16. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  17. page.search(queryJson);
  18. }, 220, 400);
  19. $('#DeptNo').lrselect({
  20. allowSearch: true,
  21. value: "deptno",
  22. text: "deptname",
  23. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  24. });
  25. $('#Grade').lrselect({
  26. url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
  27. value: "year",
  28. text: "year",
  29. });
  30. $('#Sex').lrDataItemSelect({ code: 'usersex' });
  31. // 刷新
  32. $('#lr_refresh').on('click', function () {
  33. location.reload();
  34. });
  35. },
  36. // 初始化列表
  37. initGird: function () {
  38. $('#gridtable').lrAuthorizeJfGrid({
  39. url: top.$.rootUrl + '/EducationalAdministration/StuVolunteer/GetMajorStatistics',
  40. headData: [
  41. {
  42. label: "专业部", name: "DeptNo", width: 200, align: "left",
  43. formatterAsync: function (callback, value, row, op, $cell) {
  44. learun.clientdata.getAsync('custmerData', {
  45. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  46. key: value,
  47. keyId: 'deptno',
  48. callback: function (_data) {
  49. callback(_data['deptname']);
  50. }
  51. });
  52. }
  53. },
  54. {
  55. label: "专业", name: "MajorNo", width: 200, align: "left",
  56. formatterAsync: function (callback, value, row, op, $cell) {
  57. learun.clientdata.getAsync('custmerData', {
  58. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
  59. key: value,
  60. keyId: 'majorno',
  61. callback: function (_data) {
  62. callback(_data['majorname']);
  63. }
  64. });
  65. }
  66. },
  67. { label: "总人数", name: "ZRNum", width: 200, align: "left" },
  68. { label: "年级", name: "Grade", width: 200, align: "left" },
  69. { label: "录取人数", name: "EnrollNum", width: 200, align: "left" },
  70. { label: "报名人数", name: "WillNum", width: 200, align: "left" },
  71. { label: "男生", name: "ManNum", width: 200, align: "left" },
  72. { label: "女生", name: "WoManNum", width: 200, align: "left" },
  73. ],
  74. mainId: 'DeptNo',
  75. sidx: 'DeptNo asc,MajorNo desc,Grade desc',
  76. isPage: false,
  77. });
  78. page.search();
  79. },
  80. search: function (param) {
  81. param = param || {};
  82. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  83. }
  84. };
  85. refreshGirdData = function () {
  86. $('#gridtable').jfGridSet('reload');
  87. };
  88. page.init();
  89. }