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.
 
 
 
 
 
 

54 lines
1.9 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-08-08 17:21
  5. * 描 述:现场缴费
  6. */
  7. var acceptClick;
  8. var keyValue = request('keyValue');
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. $('.lr-form-wrap').lrscroll();
  14. page.bind();
  15. page.initData();
  16. },
  17. bind: function () {
  18. $('#OnsitePayFeeStatus').lrDataItemSelect({ code: 'OnsitePayStatus' });
  19. },
  20. initData: function () {
  21. if (!!keyValue) {
  22. $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetFormData?keyValue=' + keyValue, function (data) {
  23. for (var id in data) {
  24. if (id == "StuInfoFresh") {
  25. if (!!data[id].length && data[id].length > 0) {
  26. $('#' + id).jfGridSet('refreshdata', data[id]);
  27. }
  28. else {
  29. $('[data-table="' + id + '"]').lrSetFormData(data[id]);
  30. }
  31. }
  32. }
  33. });
  34. }
  35. }
  36. };
  37. // 保存数据
  38. acceptClick = function (callBack) {
  39. if (!$('body').lrValidform()) {
  40. return false;
  41. }
  42. var postData = {};
  43. postData.strEntity = JSON.stringify($('[data-table="StuInfoFresh"]').lrGetFormData());
  44. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SaveLoanForm?keyValue=' + keyValue, postData, function (res) {
  45. // 保存成功后才回调
  46. if (!!callBack) {
  47. callBack();
  48. }
  49. });
  50. };
  51. page.init();
  52. }