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.

InitByConditionForm.js 1.9 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. $('#LessonSortNo').lrDataSourceSelect({ code: 'CdLessonSort', value: 'lessonsortno', text: 'lessonsortname' });
  34. },
  35. initData: function () {
  36. //if (!!selectedRow) {
  37. // $('#form').lrSetFormData(selectedRow);
  38. //}
  39. }
  40. };
  41. // 保存数据
  42. acceptClick = function (callBack) {
  43. if (!$('#form').lrValidform()) {
  44. return false;
  45. }
  46. var postData = $('#form').lrGetFormData();
  47. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/EADateArrange/SaveInitByConditionForm', postData, function (res) {
  48. // 保存成功后才回调
  49. if (!!callBack) {
  50. callBack();
  51. }
  52. });
  53. };
  54. page.init();
  55. }