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.
 
 
 
 
 
 

95 lines
3.7 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-08-29 16:34
  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. $('#GenderNo').lrDataItemSelect({ code: 'usersexbit' });
  19. $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
  20. $('#EduSystem').lrDataItemSelect({ code: 'EduSystem' });
  21. $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
  22. $('#GraduateGo').lrDataItemSelect({ code: 'GraduateGo' });
  23. $('#UniversityLevel').lrDataItemSelect({ code: 'GraduateLevel' });
  24. $('#EmployerProvince').lrDataSourceSelect({
  25. code: 'DIC_PROVINCE', value: 'pcode', text: 'pname',
  26. select: function (item) {
  27. if (item) {
  28. $('#EmployerCity').lrselectRefresh({
  29. url: top.$.rootUrl + "/DIC_CITY/GetListByProvinceCode",
  30. param: { ProvinceCode: item.pcode },
  31. value: 'CCODE',
  32. text: 'CNAME'
  33. });
  34. } else {
  35. $('#EmployerCity').lrselectRefresh({
  36. url: "",
  37. data: []
  38. });
  39. }
  40. $('#EmployerCountry').lrselectRefresh({
  41. url: "",
  42. data: []
  43. });
  44. }
  45. });
  46. $('#EmployerCity').lrselect({
  47. value: 'ccode', text: 'cname',
  48. select: function (item) {
  49. if (item) {
  50. $('#EmployerCountry').lrselectRefresh({
  51. url: top.$.rootUrl + "/DIC_AREA/GetAreasListByCityCode",
  52. param: { cityCode: item.CCODE },
  53. value: 'ACODE',
  54. text: 'ANAME'
  55. });
  56. }
  57. }
  58. });
  59. $('#EmployerCountry').lrselect({
  60. value: 'ACODE', text: 'ANAME'
  61. });
  62. },
  63. initData: function () {
  64. if (!!keyValue) {
  65. $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/GetFormData?keyValue=' + keyValue, function (data) {
  66. for (var id in data) {
  67. if (!!data[id].length && data[id].length > 0) {
  68. $('#' + id).jfGridSet('refreshdata', data[id]);
  69. }
  70. else {
  71. $('[data-table="' + id + '"]').lrSetFormData(data[id]);
  72. }
  73. }
  74. });
  75. }
  76. }
  77. };
  78. // 保存数据
  79. acceptClick = function (callBack) {
  80. if (!$('body').lrValidform()) {
  81. return false;
  82. }
  83. var postData = {
  84. strEntity: JSON.stringify($('body').lrGetFormData())
  85. };
  86. $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuGraduateStatistic/SaveForm?keyValue=' + keyValue, postData, function (res) {
  87. // 保存成功后才回调
  88. if (!!callBack) {
  89. callBack();
  90. }
  91. });
  92. };
  93. page.init();
  94. }