editStaff.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>修改人员信息</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
  19. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  20. <script type="text/javascript" src="/shares/js/yw/yongfu/editStaff.js"></script>
  21. <script type="text/javascript" src="/shares/js/file.js"></script>
  22. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  23. <script type="text/javascript" src="/shares/js/constant.js"></script>
  24. <script type="text/javascript" src="/shares/js/common.js"></script>
  25. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  26. <script type="text/javascript">
  27. function showBorrow(obj) {
  28. if (obj == 'tabitem2') {//学历信息
  29. getEducation();
  30. } else if (obj == 'tabitem3') {//工作经历
  31. getExperience();
  32. } else if (obj == 'tabitem4') {//家庭成员
  33. getFamily();
  34. } else if (obj == 'tabitem5') {//职称
  35. getPosition();
  36. } else if (obj == 'tabitem6') {//建造师
  37. getConstruction();
  38. } else if (obj == 'tabitem7') {//八大员
  39. getEightType();
  40. } else if (obj == 'tabitem8') {//三类人员
  41. getThreeType();
  42. } else if (obj == 'tabitem9') {//特种工
  43. getSpecialWork();
  44. } else if (obj == 'tabitem10') {//其他
  45. getOther();
  46. }
  47. }
  48. function getEducation(){
  49. var grid = null;
  50. $(function () {
  51. grid = $("#maingrid2").ligerGrid({
  52. columns: [
  53. { display: '学习类型', name: 'study_type', width: 100},
  54. { display: '学校名称', name: 'study_school_name', width: 170 },
  55. { display: '专业', name: 'study_subject', width: 100},
  56. { display: '学历', name: 'study_educational_background', width: 100},
  57. { display: '学位', name: 'study_degree', width: 100},
  58. { display: '起止年月', name: 'study_start_end_time', width: 200},
  59. {
  60. display: '操作', isAllowHide: false,width: 150,
  61. render: function (row)
  62. {
  63. var html = '<a href=\"#\" onclick=\"toEditEducation('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  64. html += '<a href=\"#\" onclick=\"delEducation('+row.universalid+')\">删除</a>&nbsp;';
  65. return html;
  66. }
  67. }
  68. ],
  69. usePager: false, //是否分页
  70. pageSize:50,
  71. url: 'StaffAction.do?task=listEducation&staff_id=${staff_id}&time=' + new Date().getTime(),
  72. pageParmName: 'p', //页索引参数名,(提交给服务器)
  73. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  74. width: '99.8%',
  75. height: '99%'
  76. });
  77. $("#pageloading").hide();
  78. });
  79. }
  80. function getExperience(){
  81. var grid = null;
  82. $(function () {
  83. grid = $("#maingrid3").ligerGrid({
  84. columns: [
  85. { display: '单位名称', name: 'work_company', width: 200},
  86. { display: '职务', name: 'work_position', width: 170 },
  87. { display: '起止年月', name: 'work_start_end_time', width: 200},
  88. { display: '离职原因', name: 'work_resignation_reason', width: 200},
  89. {
  90. display: '操作', isAllowHide: false,width: 150,
  91. render: function (row)
  92. {
  93. var html = '<a href=\"#\" onclick=\"toEditExperience('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  94. html += '<a href=\"#\" onclick=\"delExperience('+row.universalid+')\">删除</a>&nbsp;';
  95. return html;
  96. }
  97. }
  98. ],
  99. usePager: false, //是否分页
  100. pageSize:50,
  101. url: 'StaffAction.do?task=listExperience&staff_id=${staff_id}&time=' + new Date().getTime(),
  102. pageParmName: 'p', //页索引参数名,(提交给服务器)
  103. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  104. width: '99.8%',
  105. height: '99%'
  106. });
  107. $("#pageloading").hide();
  108. });
  109. }
  110. function getFamily(){
  111. var grid = null;
  112. $(function () {
  113. grid = $("#maingrid4").ligerGrid({
  114. columns: [
  115. { display: '姓名', name: 'member_name', width: 150},
  116. { display: '关系', name: 'member_relation', width: 100 },
  117. { display: '单位', name: 'member_company', width: 200},
  118. { display: '职务', name: 'member_position', width: 150},
  119. { display: '联系电话', name: 'member_phone', width: 150},
  120. { display: '借用信息', name: 'member_remark', width: 200},
  121. {
  122. display: '操作', isAllowHide: false,width: 150,
  123. render: function (row)
  124. {
  125. var html = '<a href=\"#\" onclick=\"toEditFamily('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  126. html += '<a href=\"#\" onclick=\"delFamily('+row.universalid+')\">删除</a>&nbsp;';
  127. return html;
  128. }
  129. }
  130. ],
  131. usePager: false, //是否分页
  132. pageSize:50,
  133. url: 'StaffAction.do?task=listFamilyMember&staff_id=${staff_id}&time=' + new Date().getTime(),
  134. pageParmName: 'p', //页索引参数名,(提交给服务器)
  135. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  136. width: '99.8%',
  137. height: '99%'
  138. });
  139. $("#pageloading").hide();
  140. });
  141. }
  142. function getPosition(){
  143. var grid = null;
  144. $(function () {
  145. grid = $("#maingrid5").ligerGrid({
  146. columns: [
  147. { display: '职称', name: 'position_name', width: 150},
  148. { display: '专业', name: 'position_subject', width: 100 },
  149. { display: '发证单位', name: 'send_unit', width: 100},
  150. { display: '证书编号', name: 'card_num', width: 150},
  151. { display: '批准文号', name: 'refe_num', width: 150},
  152. { display: '发证日期', name: 'issue_date', width: 100},
  153. { display: '借用信息', name: 'position_remark', width: 200},
  154. {
  155. display: '操作', isAllowHide: false,width: 150,
  156. render: function (row)
  157. {
  158. var html = '<a href=\"#\" onclick=\"toEditPosition('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  159. html += '<a href=\"#\" onclick=\"delPosition('+row.universalid+')\">删除</a>&nbsp;';
  160. return html;
  161. }
  162. }
  163. ],
  164. usePager: false, //是否分页
  165. pageSize:50,
  166. url: 'StaffCardAction.do?task=listPosition&staff_id=${staff_id}&time=' + new Date().getTime(),
  167. pageParmName: 'p', //页索引参数名,(提交给服务器)
  168. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  169. width: '99.8%',
  170. height: '99%'
  171. });
  172. $("#pageloading").hide();
  173. });
  174. }
  175. function getConstruction(){
  176. var grid = null;
  177. $(function () {
  178. grid = $("#maingrid6").ligerGrid({
  179. columns: [
  180. { display: '注册号', name: 'registration_number', width: 150},
  181. { display: '注册证书编号', name: 'registration_certificate_id', width: 100 },
  182. { display: '执业资格证书编号', name: 'operation_certificate', width: 150},
  183. { display: '发证日期', name: 'send_card_time', width: 100},
  184. { display: '借用信息', name: 'construction_engineer_remark', width: 200},
  185. {
  186. display: '操作', isAllowHide: false,width: 150,
  187. render: function (row)
  188. {
  189. var html = '<a href=\"#\" onclick=\"toEditConstruction('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  190. html += '<a href=\"#\" onclick=\"delConstruction('+row.universalid+')\">删除</a>&nbsp;';
  191. return html;
  192. }
  193. }
  194. ],
  195. usePager: false, //是否分页
  196. pageSize:50,
  197. url: 'StaffCardAction.do?task=listConstructionEngineer&staff_id=${staff_id}&time=' + new Date().getTime(),
  198. pageParmName: 'p', //页索引参数名,(提交给服务器)
  199. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  200. width: '99.8%',
  201. height: '99%'
  202. });
  203. $("#pageloading").hide();
  204. });
  205. }
  206. function getEightType(){
  207. var grid = null;
  208. $(function () {
  209. grid = $("#maingrid7").ligerGrid({
  210. columns: [
  211. { display: '岗位职务', name: 'eight_post_job', width: 100 },
  212. { display: '其他岗位', name: 'eight_other_job', width: 150},
  213. { display: '证书编号', name: 'eight_card_id', width: 150},
  214. { display: '发证日期', name: 'eight_type_date', width: 100},
  215. { display: '有效期至', name: 'eight_type_effective_date', width: 100},
  216. { display: '借用信息', name: 'eight_type_remark', width: 200},
  217. {
  218. display: '操作', isAllowHide: false,width: 150,
  219. render: function (row)
  220. {
  221. var html = '<a href=\"#\" onclick=\"toEditEightType('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  222. html += '<a href=\"#\" onclick=\"delEightType('+row.universalid+')\">删除</a>&nbsp;';
  223. return html;
  224. }
  225. }
  226. ],
  227. usePager: false, //是否分页
  228. pageSize:50,
  229. url: 'StaffCardAction.do?task=listEightType&staff_id=${staff_id}&time=' + new Date().getTime(),
  230. pageParmName: 'p', //页索引参数名,(提交给服务器)
  231. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  232. width: '99.8%',
  233. height: '99%'
  234. });
  235. $("#pageloading").hide();
  236. });
  237. }
  238. function getThreeType(){
  239. var grid = null;
  240. $(function () {
  241. grid = $("#maingrid8").ligerGrid({
  242. columns: [
  243. { display: '安全考核证号', name: 'three_type_safety_check_id', width: 150},
  244. { display: '发证时间', name: 'provide_certificate_time', width: 100 },
  245. { display: '职务', name: 'three_type_position', width: 200},
  246. { display: '有效期至', name: 'b_three_type_effective_date', width: 100},
  247. { display: '技术职称', name: 'three_type_technology_position', width: 150},
  248. { display: '借用信息', name: 'three_type_remark', width: 150},
  249. {
  250. display: '操作', isAllowHide: false,width: 150,
  251. render: function (row)
  252. {
  253. var html = '<a href=\"#\" onclick=\"toEditThreeType('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  254. html += '<a href=\"#\" onclick=\"delThreeType('+row.universalid+')\">删除</a>&nbsp;';
  255. return html;
  256. }
  257. }
  258. ],
  259. usePager: false, //是否分页
  260. pageSize:50,
  261. url: 'StaffCardAction.do?task=listThreeType&staff_id=${staff_id}&time=' + new Date().getTime(),
  262. pageParmName: 'p', //页索引参数名,(提交给服务器)
  263. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  264. width: '99.8%',
  265. height: '99%'
  266. });
  267. $("#pageloading").hide();
  268. });
  269. }
  270. function getSpecialWork(){
  271. var grid = null;
  272. $(function () {
  273. grid = $("#maingrid9").ligerGrid({
  274. columns: [
  275. { display: '证书编号', name: 'certificate_id', width: 150},
  276. { display: '职能工种', name: 'work_type', width: 100 },
  277. { display: '发证时间', name: 'special_work_start_certificate_time', width: 100},
  278. { display: '有效期至', name: 'special_work_effective_date', width: 100},
  279. { display: '一次复审', name: 'first_check_time', width: 150},
  280. { display: '二次复审', name: 'second_check_time', width: 150},
  281. { display: '借用信息', name: 'special_work_remark', width: 150},
  282. {
  283. display: '操作', isAllowHide: false,width: 150,
  284. render: function (row)
  285. {
  286. var html = '<a href=\"#\" onclick=\"toEditSpecialWork('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  287. html += '<a href=\"#\" onclick=\"delSpecialWork('+row.universalid+')\">删除</a>&nbsp;';
  288. return html;
  289. }
  290. }
  291. ],
  292. usePager: false, //是否分页
  293. pageSize:50,
  294. url: 'StaffCardAction.do?task=listSpecialWork&staff_id=${staff_id}&time=' + new Date().getTime(),
  295. pageParmName: 'p', //页索引参数名,(提交给服务器)
  296. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  297. width: '99.8%',
  298. height: '99%'
  299. });
  300. $("#pageloading").hide();
  301. });
  302. }
  303. function getOther(){
  304. var grid = null;
  305. $(function () {
  306. grid = $("#maingrid10").ligerGrid({
  307. columns: [
  308. { display: '证书名称', name: 'other_card_name', width: 150 },
  309. { display: '证书编号', name: 'other_card_id', width: 150},
  310. { display: '专业', name: 'other_major', width: 150},
  311. { display: '有效期至', name: 'other_effective_date', width: 100},
  312. { display: '借用信息', name: 'other_remark', width: 150},
  313. {
  314. display: '操作', isAllowHide: false,width: 150,
  315. render: function (row)
  316. {
  317. var html = '<a href=\"#\" onclick=\"toEditOther('+row.universalid+')\">修改</a>&nbsp&nbsp;';
  318. html += '<a href=\"#\" onclick=\"delOther('+row.universalid+')\">删除</a>&nbsp;';
  319. return html;
  320. }
  321. }
  322. ],
  323. usePager: false, //是否分页
  324. pageSize:50,
  325. url: 'StaffCardAction.do?task=listOther&staff_id=${staff_id}&time=' + new Date().getTime(),
  326. pageParmName: 'p', //页索引参数名,(提交给服务器)
  327. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  328. width: '99.8%',
  329. height: '99%'
  330. });
  331. $("#pageloading").hide();
  332. });
  333. }
  334. </script>
  335. <style type="text/css">
  336. .file-style {
  337. width: 300px;
  338. }
  339. .file-style input[type='file'] {
  340. width: 260px;
  341. height: 24px;
  342. line-height: 22px;
  343. vertical-align: bottom;
  344. background-color: #fff;
  345. border: 1px solid #cccccc;
  346. margin-top: 2px;
  347. margin-bottom: 2px;
  348. }
  349. layout{width:100%;margin:0; padding:0;}
  350. body{padding:5px; margin:0;}
  351. .forum-container table td{padding-left: 5px;}
  352. .temp-form{background-color: #ffffff; overflow-y: auto; margin-top:5px}
  353. .notice{color: blue; display: none; margin-top: 2px}
  354. .warn{color: red; display: none; margin-top: 2px}
  355. .default-text{width: 173px;}
  356. .default-select{width: 177px}
  357. .notice-msg{position: absolute;z-index: 100; float: left; top: 30%; left: 45%; background-color: #ffffff; width: 150px; overflow: hidden; border: 1px solid #cccccc; text-align: center; padding: 5px 5px 5px 5px; display: none}
  358. .forum-container-2 table tr td{font-size: 14px;}
  359. .forum-container-2 .l-table-edit-text {width: 150px; font-size: 14px;}
  360. .forum-container-2 .l-table-edit-content{width: 250px; font-size: 14px;}
  361. .dialogTable{margin: 5px auto; width: 400px}
  362. .dialogTable tr{height: 25px; padding-bottom: 2px; margin: 10px auto}
  363. .dialogTable .left-text {width: 80px; font-weight: bold;}
  364. .dialogTable .save-and-prov-notice { color: blue; }
  365. .dialogTable .input {width: 100px;height:18px; line-height: 18px;border: 1px solid #cccccc}
  366. </style>
  367. </head>
  368. <body>
  369. <input type="hidden" id="isEdit" name="isEdit" value="${isEdit }">
  370. <input type="hidden" id="staff_id" name="staff_id" value="${staff_id }">
  371. <div id="tab1"
  372. style="width: 100%; overflow: hidden; border: 1px solid #A3C0E8;">
  373. <div title="员工信息">
  374. <jsp:include page="/yw/yongfu/staff/include/staffInfo.jsp">
  375. <jsp:param value="${staff_id}" name="staff_id"/>
  376. </jsp:include>
  377. </div>
  378. <div title="学历信息">
  379. <jsp:include page="/yw/yongfu/staff/include/educationInfo.jsp">
  380. <jsp:param value="${staff_id}" name="staff_id"/>
  381. </jsp:include>
  382. </div>
  383. <div title="工作经历">
  384. <jsp:include page="/yw/yongfu/staff/include/experienceInfo.jsp">
  385. <jsp:param value="${staff_id}" name="staff_id"/>
  386. </jsp:include>
  387. </div>
  388. <div title="家庭成员">
  389. <jsp:include page="/yw/yongfu/staff/include/familyInfo.jsp">
  390. <jsp:param value="${staff_id}" name="staff_id"/>
  391. </jsp:include>
  392. </div>
  393. <div title="职称">
  394. <jsp:include page="/yw/yongfu/staff/include/positionInfo.jsp">
  395. <jsp:param value="${staff_id}" name="staff_id"/>
  396. </jsp:include>
  397. </div>
  398. <div title="建造师">
  399. <jsp:include page="/yw/yongfu/staff/include/constructionInfo.jsp">
  400. <jsp:param value="${staff_id}" name="staff_id"/>
  401. </jsp:include>
  402. </div>
  403. <div title="八大员">
  404. <jsp:include page="/yw/yongfu/staff/include/eightTypeInfo.jsp">
  405. <jsp:param value="${staff_id}" name="staff_id"/>
  406. </jsp:include>
  407. </div>
  408. <div title="三类人员">
  409. <jsp:include page="/yw/yongfu/staff/include/threeTypeInfo.jsp">
  410. <jsp:param value="${staff_id}" name="staff_id"/>
  411. </jsp:include>
  412. </div>
  413. <div title="特种工">
  414. <jsp:include page="/yw/yongfu/staff/include/specialWorkInfo.jsp">
  415. <jsp:param value="${staff_id}" name="staff_id"/>
  416. </jsp:include>
  417. </div>
  418. <div title="其他">
  419. <jsp:include page="/yw/yongfu/staff/include/otherCardInfo.jsp">
  420. <jsp:param value="${staff_id}" name="staff_id"/>
  421. </jsp:include>
  422. </div>
  423. </div>
  424. <%@ include file="/include/message.jsp"%>
  425. </body>
  426. </html>