Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

161 rader
7.7 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-09-09 11:42
  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. // 刷新
  20. $('#lr_refresh').on('click', function () {
  21. location.reload();
  22. });
  23. // 新增
  24. $('#lr_add').on('click', function () {
  25. learun.layerForm({
  26. id: 'form',
  27. title: '新增',
  28. url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form',
  29. width: 1000,
  30. height: 900,
  31. callBack: function (id) {
  32. return top[id].acceptClick(refreshGirdData);
  33. }
  34. });
  35. });
  36. // 编辑
  37. $('#lr_edit').on('click', function () {
  38. var keyValue = $('#gridtable').jfGridValue('ID');
  39. if (learun.checkrow(keyValue)) {
  40. learun.layerForm({
  41. id: 'form',
  42. title: '编辑',
  43. url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/Form?keyValue=' + keyValue,
  44. width: 1000,
  45. height: 900,
  46. callBack: function (id) {
  47. return top[id].acceptClick(refreshGirdData);
  48. }
  49. });
  50. }
  51. });
  52. // 删除
  53. $('#lr_delete').on('click', function () {
  54. var keyValue = $('#gridtable').jfGridValue('ID');
  55. if (learun.checkrow(keyValue)) {
  56. learun.layerConfirm('是否确认删除该项!', function (res) {
  57. if (res) {
  58. learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/WorkStaff/DeleteForm', { keyValue: keyValue }, function () {
  59. refreshGirdData();
  60. });
  61. }
  62. });
  63. }
  64. });
  65. // 打印
  66. $('#lr_print').on('click', function () {
  67. $('#gridtable').jqprintTable();
  68. });
  69. },
  70. // 初始化列表
  71. initGird: function () {
  72. $('#gridtable').lrAuthorizeJfGrid({
  73. url: top.$.rootUrl + '/EducationalAdministration/WorkStaff/GetPageList',
  74. headData: [
  75. { label: "姓名", name: "Name", width: 100, align: "left" },
  76. { label: "性别", name: "Gender", width: 100, align: "left" },
  77. { label: "身份证号", name: "IdentityCardNo", width: 120, align: "left" },
  78. { label: "民族", name: "Nationality", width: 100, align: "left" },
  79. {
  80. label: "出生年月日", name: "Birthday", width: 100, align: "left",
  81. formatter: function (cellvalue) {
  82. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  83. }
  84. },
  85. {
  86. label: "参加工作时间", name: "jobTime", width: 100, align: "left",
  87. formatter: function (cellvalue) {
  88. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  89. }
  90. },
  91. {
  92. label: "入党时间", name: "PartyTime", width: 100, align: "left",
  93. formatter: function (cellvalue) {
  94. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  95. }
  96. },
  97. { label: "籍贯", name: "Origin", width: 100, align: "left" },
  98. { label: "健康状况", name: "HealthStatus", width: 100, align: "left" },
  99. { label: "有何专长", name: "Speciality", width: 100, align: "left" },
  100. { label: "现单位及职务", name: "NowComPany", width: 100, align: "left" },
  101. { label: "报名岗位", name: "ApplyPost", width: 100, align: "left" },
  102. { label: "全日制教育", name: "TimeEducation", width: 100, align: "left" },
  103. { label: "毕业院校", name: "T_School", width: 100, align: "left" },
  104. { label: "所属专业", name: "T_Major", width: 100, align: "left" },
  105. { label: "在职教育", name: "ServiceEducation", width: 100, align: "left" },
  106. { label: "通讯地址", name: "Address", width: 100, align: "left" },
  107. { label: "手机号码", name: "Mobile", width: 100, align: "left" },
  108. { label: "个人简历", name: "Resume", width: 100, align: "left" },
  109. { label: "奖惩情况", name: "RandP", width: 100, align: "left" },
  110. { label: "近三年年度考核情况", name: "Triennium", width: 100, align: "left" },
  111. {
  112. label: "附件", name: "FilePath", width: 500, align: "center",
  113. formatterAsync: function (callback, value, row, op, $cell) {
  114. $.ajax({
  115. url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
  116. data: { folderId: value },
  117. type: 'GET',
  118. dataType: "json",
  119. async: false,
  120. cache: false,
  121. success: function (res) {
  122. var bb = '';
  123. //$.each(res.data, function (i, item) {
  124. // bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ','
  125. //})
  126. $.each(res.data, function(i, item) {
  127. bb += '<span onclick="downLoad(\'' +
  128. item.F_Id +
  129. '\')" style="color:blue">' +
  130. item.F_FileName.substring(0,item.F_FileName.indexOf(".")) +
  131. '</span>,&nbsp;&nbsp;&nbsp;';
  132. })
  133. callback(bb);
  134. }
  135. });
  136. }
  137. },
  138. ],
  139. mainId: 'ID',
  140. isPage: true
  141. });
  142. page.search();
  143. },
  144. search: function (param) {
  145. param = param || {};
  146. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  147. }
  148. };
  149. refreshGirdData = function () {
  150. $('#gridtable').jfGridSet('reload');
  151. };
  152. page.init();
  153. }
  154. function downLoad(fileId, fileTwo) {
  155. if (fileTwo) {
  156. top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
  157. });
  158. }
  159. top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
  160. }