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.
 
 
 
 
 
 

164 rivejä
7.9 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-09-05 16:23
  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. }, 240, 400);
  19. // 刷新
  20. $('#lr_refresh').on('click', function () {
  21. location.reload();
  22. });
  23. // 刷新
  24. $('#lr_refresh').on('click', function () {
  25. location.reload();
  26. });
  27. // 新增
  28. $('#lr_add').on('click', function () {
  29. learun.layerForm({
  30. id: 'form',
  31. title: '新增',
  32. url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/Form',
  33. width: 800,
  34. height: 800,
  35. callBack: function (id) {
  36. return top[id].acceptClick(refreshGirdData);
  37. }
  38. });
  39. });
  40. // 编辑
  41. $('#lr_edit').on('click', function () {
  42. var keyValue = $('#gridtable').jfGridValue('ID');
  43. if (learun.checkrow(keyValue)) {
  44. learun.layerForm({
  45. id: 'form',
  46. title: '编辑',
  47. url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/Form?keyValue=' + keyValue,
  48. width: 800,
  49. height: 800,
  50. callBack: function (id) {
  51. return top[id].acceptClick(refreshGirdData);
  52. }
  53. });
  54. }
  55. });
  56. // 删除
  57. $('#lr_delete').on('click', function () {
  58. var keyValue = $('#gridtable').jfGridValue('ID');
  59. if (learun.checkrow(keyValue)) {
  60. learun.layerConfirm('是否确认删除该项!', function (res) {
  61. if (res) {
  62. learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/HiringRegistration/DeleteForm', { keyValue: keyValue }, function () {
  63. refreshGirdData();
  64. });
  65. }
  66. });
  67. }
  68. });
  69. },
  70. // 初始化列表
  71. initGird: function () {
  72. $('#gridtable').jfGrid({
  73. url: top.$.rootUrl + '/EducationalAdministration/HiringRegistration/GetPageList',
  74. headData: [
  75. { label: "应聘单位", name: "Company", width: 100, align: "left" },
  76. { label: "应聘岗位", name: "Post", width: 100, align: "left" },
  77. { label: "报名序号", name: "BmNum", width: 100, align: "left" },
  78. { label: "姓名", name: "Name", width: 100, align: "left" },
  79. {
  80. label: "性别", name: "Gender", width: 100, align: "left",
  81. //formatterAsync: function (callback, value, row, op, $cell) {
  82. // learun.clientdata.getAsync('dataItem', {
  83. // key: value,
  84. // code: 'usersexbit',
  85. // callback: function (_data) {
  86. // callback(_data.text);
  87. // }
  88. // });
  89. //}
  90. },
  91. { label: "民族", name: "NationalityNo", width: 100, align: "left" },
  92. { label: "政治面貌", name: "Political", width: 100, align: "left" },
  93. { label: "学历学位", name: "Education", width: 100, align: "left" },
  94. { label: "毕业院校", name: "WilliamsSchool", width: 100, align: "left" },
  95. { label: "所学专业", name: "Major", width: 100, align: "left" },
  96. { label: "职称,执(职)业资格", name: "Qualification", width: 100, align: "left" },
  97. {
  98. label: "取得时间", name: "GetTime", width: 100, align: "left",
  99. formatter: function (cellvalue) {
  100. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  101. }
  102. },
  103. { label: "户籍所在地", name: "Domicile", width: 100, align: "left" },
  104. { label: "婚姻状况", name: "Marriage", width: 100, align: "left" },
  105. { label: "档案保管单位", name: "Archives", width: 100, align: "left" },
  106. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
  107. { label: "有何特长", name: "Specialty", width: 100, align: "left" },
  108. { label: "通讯地址", name: "ADDRESS", width: 100, align: "left" },
  109. { label: "邮政编码", name: "PostalCode", width: 100, align: "left" },
  110. { label: "联系电话", name: "Mobile", width: 100, align: "left" },
  111. { label: "实践与成绩", name: "Achievement", width: 100, align: "left" },
  112. {
  113. label: "附件", name: "FilePath", width: 500, align: "center",
  114. formatterAsync: function (callback, value, row, op, $cell) {
  115. $.ajax({
  116. url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
  117. data: { folderId: value },
  118. type: 'GET',
  119. dataType: "json",
  120. async: false,
  121. cache: false,
  122. success: function (res) {
  123. var bb = '';
  124. //$.each(res.data, function (i, item) {
  125. // bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ','
  126. //})
  127. $.each(res.data, function (i, item) {
  128. bb += '<span onclick="downLoad(\'' +
  129. item.F_Id +
  130. '\')" style="color:blue">' +
  131. item.F_FileName.substring(0, item.F_FileName.indexOf(".")) +
  132. '</span>,&nbsp;&nbsp;&nbsp;';
  133. })
  134. callback(bb);
  135. }
  136. });
  137. }
  138. },
  139. ],
  140. mainId: 'ID',
  141. isPage: true,
  142. sidx: 'CreateTime',
  143. sord: 'asc',
  144. });
  145. page.search();
  146. },
  147. search: function (param) {
  148. param = param || {};
  149. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  150. }
  151. };
  152. refreshGirdData = function () {
  153. $('#gridtable').jfGridSet('reload');
  154. };
  155. page.init();
  156. }
  157. function downLoad(fileId, fileTwo) {
  158. if (fileTwo) {
  159. top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
  160. });
  161. }
  162. top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
  163. }