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.
 
 
 
 
 
 

58 lines
2.3 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2023-03-13 10:37
  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. //下拉框绑定
  20. $('#Types').lrselect({ data: [{ id: "1", text: "国家助学金" }, { id: "2", text: "校级助学金" }, { id: "3", text: "校级奖学金" }]});
  21. $('#ApplyDate').lrselect({
  22. url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GenerateNearByYear',
  23. value:'value',
  24. text:'text'
  25. });
  26. // 刷新
  27. $('#lr_refresh').on('click', function () {
  28. location.reload();
  29. });
  30. },
  31. initGird: function () {
  32. $('#gridtable').jfGrid({
  33. url: top.$.rootUrl + '/EducationalAdministration/StuFellowship/GetStatisticList',
  34. headData: [
  35. {
  36. label: '资助类型', name: 'Types', width: 100, align: "left" , formatter: function (cellvalue) {
  37. return cellvalue == "1" ? "国家助学金" : cellvalue == "2" ? "校级助学金" : "校级奖学金";
  38. }
  39. },
  40. { label: '年度', name: 'YearName', width: 100, align: "left" },
  41. { label: '资助人数', name: 'TotalCount', width: 100, align: "left" },
  42. { label: '资助金额', name: 'TotalAmount', width: 100, align: "left" },
  43. ],
  44. mainId: '',
  45. });
  46. page.search();
  47. },
  48. search: function (param) {
  49. param = param || {};
  50. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  51. }
  52. };
  53. refreshGirdData = function () {
  54. page.search();
  55. };
  56. page.init();
  57. }