Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

165 строки
8.2 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2022-09-09 13: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_add').on('click', function () {
  25. learun.layerForm({
  26. id: 'form',
  27. title: '新增',
  28. url: top.$.rootUrl + '/EducationalAdministration/TalentsJoinInfo/Form',
  29. width: 900,
  30. height: 600,
  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/TalentsJoinInfo/Form?keyValue=' + keyValue,
  44. width: 900,
  45. height: 600,
  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/TalentsJoinInfo/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/TalentsJoinInfo/GetPageList',
  74. headData: [
  75. { label: "姓名", name: "Name", width: 100, align: "left"},
  76. { label: "性别", name: "Gender", width: 100, align: "left"},
  77. { label: "政治面貌", name: "Political", width: 100, align: "left"},
  78. { label: "籍贯", name: "Origin", 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. { label: "民族", name: "Nationality", width: 100, align: "left"},
  86. { label: "文化程度", name: "CultureDegree", width: 100, align: "left"},
  87. { label: "婚姻状况", name: "Marriage", width: 100, align: "left" },
  88. { label: "第一学历毕业院校", name: "WilliamsSchool", width: 100, align: "left" },
  89. { label: "第一学历专业", name: "Major", width: 100, align: "left" },
  90. { label: "硕士毕业院校", name: "MasterSchool", width: 100, align: "left" },
  91. { label: "硕士专业", name: "MasterMajor", width: 100, align: "left" },
  92. { label: "博士毕业院校", name: "DoctorSchool", width: 100, align: "left"},
  93. { label: "博士专业", name: "DoctorMajor", width: 100, align: "left"},
  94. {
  95. label: "毕业时间", name: "GraduateTime", width: 100, align: "left",
  96. },
  97. {
  98. label: "参加工作时间", name: "JobTime", width: 100, align: "left",
  99. formatter: function (cellvalue) {
  100. return learun.formatDate(cellvalue, 'yyyy-MM-dd');
  101. }
  102. },
  103. { label: "专业技术职称", name: "Professiona", width: 100, align: "left"},
  104. { label: "学位", name: "Degree", width: 100, align: "left"},
  105. { label: "职业资格证", name: "NVQ", width: 100, align: "left"},
  106. { label: "现工作单位", name: "NowCompany", width: 100, align: "left"},
  107. { label: "职务", name: "Position", width: 100, align: "left"},
  108. { label: "所报岗位", name: "Post", width: 100, align: "left"},
  109. { label: "通讯地址", name: "Address", width: 100, align: "left"},
  110. { label: "身份证号", name: "IdentityCardNo", width: 100, align: "left"},
  111. { label: "联系电话", name: "Phone", width: 100, align: "left"},
  112. { label: "手机", name: "Mobile", width: 100, align: "left" },
  113. { label: "邮箱", name: "Email", width: 100, align: "left" },
  114. { label: "简历", name: "Resume", width: 100, align: "left" },
  115. {
  116. label: "附件", name: "FilePath", width: 500, align: "center",
  117. formatterAsync: function (callback, value, row, op, $cell) {
  118. $.ajax({
  119. url: '/LR_SystemModule/Annexes/GetAnnexesFileList',
  120. data: { folderId: value },
  121. type: 'GET',
  122. dataType: "json",
  123. async: false,
  124. cache: false,
  125. success: function (res) {
  126. var bb = '';
  127. //$.each(res.data, function (i, item) {
  128. // bb += item.F_FileName.substring(0, item.F_FileName.indexOf(".")) + ','
  129. //})
  130. $.each(res.data, function (i, item) {
  131. bb += '<span onclick="downLoad(\'' +
  132. item.F_Id +
  133. '\')" style="color:blue">' +
  134. item.F_FileName.substring(0, item.F_FileName.indexOf(".")) +
  135. '</span>,&nbsp;&nbsp;&nbsp;';
  136. })
  137. callback(bb);
  138. }
  139. });
  140. }
  141. },
  142. ],
  143. mainId:'ID',
  144. isPage: true
  145. });
  146. page.search();
  147. },
  148. search: function (param) {
  149. param = param || {};
  150. $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
  151. }
  152. };
  153. refreshGirdData = function () {
  154. $('#gridtable').jfGridSet('reload');
  155. };
  156. page.init();
  157. }
  158. function downLoad(fileId, fileTwo) {
  159. if (fileTwo) {
  160. top.learun.postFormSilence(top.$.rootUrl + '/PersonnelManagement/MP_QualityObjectives/AddRecord', { fileId: fileTwo }, function () {
  161. });
  162. }
  163. top.learun.download({ url: top.$.rootUrl + '/LR_SystemModule/Annexes/DownAnnexesFile', param: { fileId: fileId, __RequestVerificationToken: $.lrToken }, method: 'POST' });
  164. }