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.
 
 
 
 
 
 

62 lines
2.1 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-02-27 11:05
  5. * 描 述:按条件同步排课数据
  6. */
  7. var acceptClick;
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.bind();
  13. //page.initData();
  14. },
  15. bind: function () {
  16. $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
  17. //学年
  18. $('#AcademicYearNo').lrselect({
  19. placeholder: "请选择学年",
  20. allowSearch: true,
  21. url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
  22. value: 'value',
  23. text: 'text'
  24. });
  25. //学期
  26. $('#Semester').lrselect({
  27. placeholder: "请选择学期",
  28. allowSearch: true,
  29. url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
  30. value: 'value',
  31. text: 'text'
  32. });
  33. $('#SyncType').lrselect({
  34. placeholder: "请选择同步内容",
  35. data: [{ text: "课表", value: "1" }, { text: "开课计划", value: "2" }],
  36. value: 'value',
  37. text: 'text'
  38. });
  39. },
  40. initData: function () {
  41. //if (!!selectedRow) {
  42. // $('#form').lrSetFormData(selectedRow);
  43. //}
  44. }
  45. };
  46. // 保存数据
  47. acceptClick = function (callBack) {
  48. if (!$('#form').lrValidform()) {
  49. return false;
  50. }
  51. var postData = $('#form').lrGetFormData();
  52. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/ArrangeLessonTerm/AsyncArrangeLessonDataByCondition', postData, function (res) {
  53. // 保存成功后才回调
  54. if (!!callBack) {
  55. callBack();
  56. }
  57. });
  58. };
  59. page.init();
  60. }