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.
 
 
 
 
 
 

78 lines
3.4 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-05-24 10:27
  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. // 刷新
  17. $('#lr_refresh').on('click', function () {
  18. location.reload();
  19. });
  20. //排考数据同步
  21. $('#lr_arrange').on('click', function () {
  22. learun.layerConfirm('是否确认同步数据!', function (res) {
  23. if (res) {
  24. learun.getForm(top.$.rootUrl + '/EducationalAdministration/ArrangeExamTerm/AsyncArrangeExamData', function () {
  25. refreshGirdData();
  26. });
  27. }
  28. });
  29. });
  30. },
  31. // 初始化列表
  32. initGird: function () {
  33. $('#gridtable').lrAuthorizeJfGrid({
  34. url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTerm/GetPageList',
  35. headData: [
  36. { label: "学年", name: "AcademicYearNo", width: 100, align: "left"},
  37. { label: "学期", name: "Semester", width: 100, align: "left"},
  38. { label: "考试日期", name: "ExamDate", width: 100, align: "left"},
  39. { label: "考试时间", name: "ExamTime", width: 100, align: "left"},
  40. { label: "考试节次", name: "ExamSection", width: 100, align: "left"},
  41. { label: "班级号", name: "ClassNo", width: 100, align: "left"},
  42. { label: "班级名称", name: "ClassName", width: 100, align: "left"},
  43. { label: "课程号", name: "LessonNo", width: 100, align: "left"},
  44. { label: "课程名称", name: "LessonName", width: 150, align: "left"},
  45. {
  46. label: "课程类型号", name: "LessonSortNo", width: 100, align: "left",
  47. formatter: function (cellvalue, row) {
  48. if (cellvalue == '1') {
  49. return '<span>必修课</span>';
  50. } else if(cellvalue == '2') {
  51. return '<span>选修课</span>';
  52. }
  53. }
  54. },
  55. { label: "监考教师号", name: "EmpNo", width: 150, align: "left"},
  56. { label: "监考教师名称", name: "EmpName", width: 150, align: "left"},
  57. { label: "教室号", name: "ClassRoomNo", width: 100, align: "left"},
  58. { label: "教室名称", name: "ClassRoomName", width: 100, align: "left"},
  59. ],
  60. mainId: 'AETId',
  61. sidx: 'AcademicYearNo,Semester,ExamDate',
  62. sord:'desc',
  63. isPage: true
  64. });
  65. page.search();
  66. },
  67. search: function (param) {
  68. param = param || {};
  69. $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
  70. }
  71. };
  72. refreshGirdData = function () {
  73. page.search();
  74. };
  75. page.init();
  76. }