Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

151 Zeilen
7.0 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-10-11 16:46
  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. // 刷新
  17. $('#lr_refresh').on('click', function () {
  18. location.reload();
  19. });
  20. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  21. page.search(queryJson);
  22. }, 220, 400);
  23. $('#SchoolType').lrselect({
  24. allowSearch: true,
  25. url: top.$.rootUrl + '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
  26. value: "Id",
  27. text: "ItemName"
  28. });
  29. $('#State').lrselect({
  30. data: [{ text: "待审核", value: "0" }, { text: "审核通过", value: "1" }, { text: "不通过", value: "2" }],
  31. text: "text",
  32. value: "value"
  33. })
  34. // 审核
  35. $('#lr_allaudit').on('click', function () {
  36. var keyValue = $('#gridtable').jfGridValue('Id');
  37. if (learun.checkrow(keyValue)) {
  38. if (keyValue.indexOf(",") != -1) {
  39. learun.layerConfirm('是否确认审核选中项!', function (res) {
  40. if (res) {
  41. learun.postForm(top.$.rootUrl + '/EducationalAdministration/Scholarshipxj/AduitForm', { keyValue: keyValue }, function () {
  42. refreshGirdData();
  43. });
  44. }
  45. });
  46. } else {
  47. var State = $('#gridtable').jfGridValue('State');
  48. if (State != 0) {
  49. learun.alert.warning("当前项不可进行审核!");
  50. return false;
  51. }
  52. learun.layerForm({
  53. id: 'form',
  54. title: '审核',
  55. url: top.$.rootUrl + '/EducationalAdministration/Scholarshipxj/FormAudit?keyValue=' + keyValue,
  56. width: 600,
  57. height: 580,
  58. callBack: function (id) {
  59. return top[id].acceptClick(refreshGirdData);
  60. }
  61. });
  62. }
  63. }
  64. });
  65. },
  66. // 初始化列表
  67. initGird: function () {
  68. $('#gridtable').lrAuthorizeJfGrid({
  69. url: top.$.rootUrl + '/EducationalAdministration/Scholarshipxj/GetPageList',
  70. headData: [
  71. { label: "学生", name: "StuName", width: 200, align: "left" },
  72. { label: "学生学号", name: "StuNo", width: 200, align: "left" },
  73. {
  74. label: "班级", name: "ClassNo", width: 200, align: "left",
  75. formatterAsync: function (callback, value, row, op, $cell) {
  76. learun.clientdata.getAsync('custmerData', {
  77. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
  78. key: value,
  79. keyId: 'classno',
  80. callback: function (_data) {
  81. callback(_data['classname']);
  82. }
  83. });
  84. }
  85. },
  86. {
  87. label: "助学金类型", name: "SchoolType", width: 200, align: "left",
  88. formatterAsync: function (callback, value, row, op, $cell) {
  89. learun.clientdata.getAsync('custmerData', {
  90. url: '/EducationalAdministration/Scholarship/GetList?queryJson=' + JSON.stringify({ IsType: 1, IsValid: 0 }),
  91. key: value,
  92. keyId: 'Id',
  93. callback: function (_data) {
  94. callback(_data['ItemName']);
  95. }
  96. });
  97. }
  98. },
  99. {
  100. label: "申请时间", name: "GetTime", width: 200, align: "left",
  101. formatter: function (cellvalue) {
  102. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  103. }
  104. },
  105. {
  106. label: "审核状态", name: "State", width: 200, align: "left",
  107. formatter: function (cellvalue) {
  108. if (cellvalue == '0') {
  109. return '<span class=\"label label-warning\">待审核</span>';
  110. } else if (cellvalue == '1') {
  111. return '<span class=\"label label-success\">审核通过</span>';
  112. } else if (cellvalue == '2') {
  113. return '<span class=\"label label-danger\">不通过</span>';
  114. }
  115. }
  116. },
  117. {
  118. label: "审核时间", name: "AuditTime", width: 200, align: "left",
  119. formatter: function (cellvalue) {
  120. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  121. }
  122. },
  123. ],
  124. mainId: 'Id',
  125. isPage: true,
  126. isMultiselect: true,//复选框
  127. });
  128. page.search();
  129. },
  130. search: function (param) {
  131. param = param || {};
  132. param.IsType = 1;
  133. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  134. },
  135. downLoad: function (fileId) {
  136. top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: top.$.lrToken }, method: 'POST' });
  137. }
  138. };
  139. refreshGirdData = function () {
  140. $('#gridtable').jfGridSet('reload');
  141. };
  142. page.init();
  143. }
  144. function downLoad(fileId, fileTwo) {
  145. if (fileTwo) {
  146. top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
  147. });
  148. }
  149. top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
  150. }