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.
 
 
 
 
 
 

159 line
9.0 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-11-07 11:54
  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/WageSchedule/Form',
  39. width: 700,
  40. height: 400,
  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('Id');
  49. selectedRow = $('#gridtable').jfGridGet('rowdata');
  50. if (learun.checkrow(keyValue)) {
  51. learun.layerForm({
  52. id: 'form',
  53. title: '编辑',
  54. url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/Form?keyValue=' + keyValue,
  55. width: 700,
  56. height: 400,
  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('Id');
  66. if (learun.checkrow(keyValue)) {
  67. learun.layerConfirm('是否确认删除该项!', function (res) {
  68. if (res) {
  69. learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WageSchedule/DeleteForm', { keyValue: keyValue }, function () {
  70. });
  71. }
  72. });
  73. }
  74. });
  75. },
  76. initGird: function () {
  77. $('#gridtable').jfGrid({
  78. url: top.$.rootUrl + '/EducationalAdministration/WageSchedule/GetPageList',
  79. headData: [
  80. { label: '序号', name: 'No', width: 70, align: "left" },
  81. { label: '姓名', name: 'EmpName', width: 70, align: "left" },
  82. { label: '身份证号', name: 'IdCardNo', width: 140, align: "left" },
  83. { label: '人员类别', name: 'PeopleType', width: 70, align: "left" },
  84. { label: '岗位等级', name: 'PostType', width: 70, align: "left" },
  85. { label: '薪级', name: 'PayGrade', width: 50, align: "left" },
  86. { label: '应发合计', name: 'TotalGrossPay', width: 70, align: "left", statistics: true },
  87. {
  88. label: '基本工资', name: '基本工资', width: 130, align: "center", statistics: true,
  89. children: [
  90. { label: '岗位工资', name: 'PostWage', width: 70, align: "left", statistics: true },
  91. { label: '薪级工资', name: 'PayGradeWage', width: 70, align: "left", statistics: true },
  92. { label: '百分之十', name: 'TenPercent', width: 70, align: "left", statistics: true },
  93. { label: '小计', name: 'BasePay', width: 70, align: "left", statistics: true }
  94. ]
  95. },
  96. {
  97. label: '津贴补贴', name: '津贴补贴', width: 130, align: "center", statistics: true,
  98. children: [
  99. { label: '艰边津贴', name: 'RoughEdgeAllowance', width: 70, align: "left", statistics: true },
  100. { label: '民族津贴', name: 'NationAllowance', width: 70, align: "left", statistics: true },
  101. { label: '教师津贴', name: 'TeachAllowance', width: 70, align: "left", statistics: true },
  102. { label: '小计', name: 'SubsidiesAllowances', width: 70, align: "left", statistics: true },
  103. ]
  104. },
  105. { label: '基础性绩效', name: 'BasicsPerformance', width: 70, align: "left", statistics: true },
  106. { label: '女职工卫生费', name: 'GirlStaffSanitation', width: 70, align: "left", statistics: true },
  107. {
  108. label: '改革性补贴', name: '改革性补贴', width: 70, align: "center", statistics: true,
  109. children: [
  110. { label: '交通补贴', name: 'Transportation', width: 70, align: "left", statistics: true },
  111. { label: '物业补贴', name: 'RealeState', width: 70, align: "left", statistics: true },
  112. { label: '工改保留补贴', name: 'WorkKeep', width: 90, align: "left", statistics: true },
  113. { label: '小计', name: 'ReformSubsidySum', width: 70, align: "left", statistics: true }
  114. ]
  115. },
  116. { label: '住房补贴', name: 'HousingAllowance', width: 80, align: "left", statistics: true },
  117. { label: '住房公积金', name: 'HousingFundAllowance', width: 80, align: "left", statistics: true },
  118. { label: '特级教师津贴和乡镇补贴', name: 'TeacherAndTown', width: 130, align: "center", statistics: true },
  119. {
  120. label: '扣款', name: '扣款', width: 130, align: "center", statistics: true,
  121. children: [
  122. { label: '小计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
  123. { label: '公积金', name: 'AccumulationFund', width: 70, align: "left", statistics: true },
  124. { label: '工会工费', name: 'LaborUnionWage', width: 70, align: "left", statistics: true },
  125. { label: '个人所得税', name: 'PersonalIncomeTax', width: 70, align: "left", statistics: true },
  126. { label: '养老保险', name: 'EndowmentInsurance', width: 70, align: "left", statistics: true },
  127. { label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
  128. { label: '医疗保险', name: 'MedicalInsurance', width: 70, align: "left", statistics: true },
  129. { label: '失业保险', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
  130. { label: '其他', name: 'Other', width: 70, align: "left", statistics: true }
  131. ]
  132. },
  133. { label: '财政直达', name: 'FiscalDirect', width: 70, align: "left", statistics: true },
  134. { label: '银行代扣', name: 'BankWithholding', width: 70, align: "left", statistics: true },
  135. { label: '实发合计', name: 'NetCombined', width: 70, align: "left", statistics: true },
  136. { label: '工资卡号', name: 'WageCardNo', width: 130, align: "left" },
  137. { label: '创建用户', name: 'CreateUser', width: 70, align: "left" },
  138. { label: '创建时间', name: 'CreateTime', width: 130, align: "left" },
  139. { label: '发放月份', name: 'IssueMonth', width: 70, align: "left" },
  140. { label: '发放年份', name: 'IssueYear', width: 70, align: "left" },
  141. ],
  142. mainId: 'Id',
  143. isPage: true,
  144. rows: 300,
  145. sidx: 'CreateTime',
  146. });
  147. page.search();
  148. },
  149. search: function (param) {
  150. param = param || {};
  151. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  152. }
  153. };
  154. refreshGirdData = function () {
  155. $('#gridtable').jfGridSet('reload');
  156. };
  157. page.init();
  158. }