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.
 
 
 
 
 
 

97 lines
4.0 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2020-11-04 14:08
  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. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  17. page.search(queryJson);
  18. }, 220, 400);
  19. $('#OldLevel').lrDataItemSelect({ code: 'PositionLevel' });
  20. $('#NewLevel').lrDataItemSelect({ code: 'PositionLevel' });
  21. // 刷新
  22. $('#lr_refresh').on('click', function () {
  23. location.reload();
  24. });
  25. },
  26. // 初始化列表
  27. initGird: function () {
  28. $('#gridtable').lrAuthorizeJfGrid({
  29. url: top.$.rootUrl + '/EducationalAdministration/PM_PositionChange/GetPageStatisticList',
  30. headData: [
  31. {
  32. label: "教师", name: "EmpId", width: 100, align: "left",
  33. formatterAsync: function (callback, value, row, op, $cell) {
  34. learun.clientdata.getAsync('custmerData', {
  35. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
  36. key: value,
  37. keyId: 'empid',
  38. callback: function (_data) {
  39. callback(_data['empname']);
  40. }
  41. });
  42. }
  43. },
  44. {
  45. label: "原聘任等级", name: "OldLevel", width: 100, align: "left",
  46. formatterAsync: function (callback, value, row, op, $cell) {
  47. learun.clientdata.getAsync('dataItem', {
  48. key: value,
  49. code: 'PositionLevel',
  50. callback: function (_data) {
  51. callback(_data.text);
  52. }
  53. });
  54. }
  55. },
  56. {
  57. label: "现聘任等级", name: "NewLevel", width: 100, align: "left",
  58. formatterAsync: function (callback, value, row, op, $cell) {
  59. learun.clientdata.getAsync('dataItem', {
  60. key: value,
  61. code: 'PositionLevel',
  62. callback: function (_data) {
  63. callback(_data.text);
  64. }
  65. });
  66. }
  67. },
  68. { label: "变更时间", name: "UpdateTime", width: 130, align: "left" },
  69. {
  70. label: "变更人", name: "Updater", width: 100, align: "left",
  71. formatterAsync: function (callback, value, row) {
  72. learun.clientdata.getAsync('user', {
  73. key: value,
  74. callback: function (item) {
  75. callback(item.name);
  76. }
  77. });
  78. }
  79. },
  80. ],
  81. mainId: 'ID',
  82. isPage: true,
  83. sidx:'UpdateTime desc'
  84. });
  85. page.search();
  86. },
  87. search: function (param) {
  88. param = param || {};
  89. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  90. }
  91. };
  92. refreshGirdData = function () {
  93. page.search();
  94. };
  95. page.init();
  96. }