選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

130 行
7.1 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-11-04 16:28
  5. * 描 述:公益性岗位
  6. */
  7. var selectedRow;
  8. var refreshGirdData;
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.initGird();
  14. page.bind();
  15. },
  16. bind: function () {
  17. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  18. page.search(queryJson);
  19. }, 220, 400);
  20. //年份
  21. $('#IssueYear').lrselect({
  22. allowSearch: true,
  23. url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
  24. value: 'value',
  25. text: 'text'
  26. });
  27. $('#IssueMonth').lrDataItemSelect({ code: 'MPMonth' });
  28. // 刷新
  29. $('#lr_refresh').on('click', function () {
  30. location.reload();
  31. });
  32. // 新增
  33. $('#lr_add').on('click', function () {
  34. selectedRow = null;
  35. learun.layerForm({
  36. id: 'form',
  37. title: '新增',
  38. url: top.$.rootUrl + '/EducationalAdministration/Ououtsourcing/Form',
  39. width: 800,
  40. height: 800,
  41. callBack: function (id) {
  42. return top[id].acceptClick(refreshGirdData);
  43. }
  44. });
  45. });
  46. // 编辑
  47. $('#lr_edit').on('click', function () {
  48. var keyValue = $('#gridtable').jfGridValue('WPID');
  49. selectedRow = $('#gridtable').jfGridGet('rowdata');
  50. if (learun.checkrow(keyValue)) {
  51. learun.layerForm({
  52. id: 'form',
  53. title: '编辑',
  54. url: top.$.rootUrl + '/EducationalAdministration/Ououtsourcing/Form?keyValue=' + keyValue,
  55. width: 800,
  56. height: 800,
  57. callBack: function (id) {
  58. return top[id].acceptClick(refreshGirdData);
  59. }
  60. });
  61. }
  62. });
  63. // 删除
  64. $('#lr_delete').on('click', function () {
  65. var keyValue = $('#gridtable').jfGridValue('WPID');
  66. if (learun.checkrow(keyValue)) {
  67. learun.layerConfirm('是否确认删除该项!', function (res) {
  68. if (res) {
  69. learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Ououtsourcing/DeleteForm', { keyValue: keyValue }, function () {
  70. });
  71. }
  72. });
  73. }
  74. });
  75. },
  76. initGird: function () {
  77. $('#gridtable').lrAuthorizeJfGridLei({
  78. url: top.$.rootUrl + '/EducationalAdministration/Ououtsourcing/GetPageList',
  79. headData: [
  80. { label: '序号', name: 'No', width: 100, align: "left" },
  81. { label: '姓名', name: 'EmpName', width: 100, align: "left" },
  82. { label: '身份证', name: 'IdCardNo', width: 150, align: "left" },
  83. { label: '工资卡号', name: 'WageCardNo', width: 135, align: "left" },
  84. { label: '人员类别', name: 'PeopleType', width: 100, align: "left" },
  85. { label: '岗位等级', name: 'PostType', width: 100, align: "left" },
  86. { label: '薪级', name: 'PayGrade', width: 100, align: "left" },
  87. { label: '应发合计', name: 'TotalGrossPay', width: 80, align: "left", statistics: true },
  88. { label: '岗位工资', name: 'PostWage', width: 80, align: "left", statistics: true },
  89. { label: '薪级工资', name: 'PayGradeWage', width: 80, align: "left", statistics: true },
  90. { label: '百分之十', name: 'TenPercent', width: 80, align: "left", statistics: true },
  91. { label: '艰边津贴', name: 'RoughEdgeAllowance', width: 80, align: "left", statistics: true },
  92. { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 80, align: "left", statistics: true },
  93. { label: '教龄津贴', name: 'TeachAllowance', width: 80, align: "left", statistics: true },
  94. { label: '民族津贴', name: 'NationAllowance', width: 80, align: "left", statistics: true },
  95. { label: '基础性绩效', name: 'BasicsPerformance', width: 80, align: "left", statistics: true },
  96. { label: '交通补贴', name: 'Transportation', width: 80, align: "left", statistics: true },
  97. { label: '物业补贴', name: 'RealeState', width: 80, align: "left", statistics: true },
  98. { label: '九三年工改补贴', name: 'WorkKeep', width: 80, align: "left", statistics: true },
  99. { label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
  100. { label: '公积金', name: 'ProvidentFundPayment', width: 80, align: "left", statistics: true },
  101. { label: '考核工资', name: 'AssessmentWages', width: 100, align: "left", statistics: true },
  102. { label: '扣款合计', name: 'DeductionsCombined', width: 100, align: "left", statistics: true },
  103. { label: '(缴纳)公积金', name: 'HousingFundAllowance', width: 100, align: "left", statistics: true },
  104. { label: '工会工费', name: 'LaborUnionWage', width: 100, align: "left", statistics: true },
  105. { label: '所得税', name: 'PersonalIncomeTax', width: 100, align: "left", statistics: true },
  106. { label: '养老保险', name: 'EndowmentInsurance', width: 100, align: "left", statistics: true },
  107. { label: '医疗保险', name: 'MedicalInsurance', width: 100, align: "left", statistics: true },
  108. { label: '失业保险', name: 'UnemploymentInsurance', width: 100, align: "left", statistics: true },
  109. { label: '其他', name: 'Other', width: 100, align: "left", statistics: true },
  110. { label: '实发合计', name: 'NetCombined', width: 100, align: "left", statistics: true },
  111. { label: "发放月份", name: "IssueMonth", width: 100, align: "left" },
  112. { label: "发放年份", name: "IssueYear", width: 100, align: "left" },
  113. ],
  114. mainId: 'WPID',
  115. isPage: true,
  116. sidx: 'CreateTime'
  117. });
  118. page.search();
  119. },
  120. search: function (param) {
  121. param = param || {};
  122. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  123. }
  124. };
  125. refreshGirdData = function () {
  126. $('#gridtable').jfGridSet('reload');
  127. };
  128. page.init();
  129. }