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.
 
 
 
 
 
 

53 lines
1.9 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-12-26 14:43
  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. $('#lr_refresh').on('click', function () {
  21. location.reload();
  22. });
  23. },
  24. // 初始化列表
  25. initGird: function () {
  26. $('#gridtable').lrAuthorizeJfGrid({
  27. url: top.$.rootUrl + '/PersonnelManagement/TimeTable/GetAttendanceStatisticPageList',
  28. headData: [
  29. { label: "学年", name: "AcademicYearNo", width: 100, align: "left" },
  30. { label: "学期", name: "Semester", width: 100, align: "left" },
  31. { label: "学号", name: "StuNo", width: 100, align: "left" },
  32. { label: "姓名", name: "StuName", width: 100, align: "left" },
  33. { label: "总课程", name: "totalCourse", width: 100, align: "left" },
  34. { label: "考勤课程", name: "attendanceCourse", width: 100, align: "left" },
  35. ],
  36. mainId: '',
  37. isPage: true,
  38. sidx: 'AcademicYearNo,Semester',
  39. sord: 'desc'
  40. });
  41. page.search();
  42. },
  43. search: function (param) {
  44. param = param || {};
  45. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  46. }
  47. };
  48. refreshGirdData = function () {
  49. page.search();
  50. };
  51. page.init();
  52. }