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.
 
 
 
 
 
 

101 lines
3.8 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-06-22 10:04
  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. $('#Type').lrDataItemSelect({ code: 'projectType' });
  20. // 刷新
  21. $('#lr_refresh').on('click', function () {
  22. location.reload();
  23. });
  24. //校区基础数据
  25. $('#lr_company').on('click', function () {
  26. learun.layerConfirm('是否确认推送校区基础数据!', function (res) {
  27. if (res) {
  28. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncCompany', function () {
  29. refreshGirdData();
  30. });
  31. }
  32. });
  33. });
  34. //课程信息数据
  35. $('#lr_lesson').on('click', function () {
  36. learun.layerConfirm('是否确认推送课程信息数据!', function (res) {
  37. if (res) {
  38. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncLesson', function () {
  39. refreshGirdData();
  40. });
  41. }
  42. });
  43. });
  44. //教材数据
  45. $('#lr_textBook').on('click', function () {
  46. learun.layerConfirm('是否确认推送教材信息数据!', function (res) {
  47. if (res) {
  48. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncTextBook', function () {
  49. refreshGirdData();
  50. });
  51. }
  52. });
  53. });
  54. //排课数据
  55. $('#lr_arrangeLessonTerm').on('click', function () {
  56. learun.layerConfirm('是否确认推送排课数据!', function (res) {
  57. if (res) {
  58. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncArrangeLessonTerm', function () {
  59. refreshGirdData();
  60. });
  61. }
  62. });
  63. });
  64. //教师进修培训
  65. $('#lr_teacherTrain').on('click', function () {
  66. learun.layerConfirm('是否确认推送教师培训数据!', function (res) {
  67. if (res) {
  68. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncTeacherTrain', function () {
  69. refreshGirdData();
  70. });
  71. }
  72. });
  73. });
  74. //教师资质证书数据
  75. $('#lr_teacherQualifications').on('click', function () {
  76. learun.layerConfirm('是否确认推送教师资质证书数据!', function (res) {
  77. if (res) {
  78. learun.postForm(top.$.rootUrl + '/LR_Desktop/DataCollection/SyncTeacherQualifications', function () {
  79. refreshGirdData();
  80. });
  81. }
  82. });
  83. });
  84. },
  85. // 初始化列表
  86. initGird: function () {
  87. },
  88. search: function (param) {
  89. }
  90. };
  91. refreshGirdData = function () {
  92. };
  93. page.init();
  94. }