printStaffRecord.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  9. <link href="main.css" rel="stylesheet" type="text/css"></link>
  10. <script type="text/javascript" src="/shares/js/constant.js"></script>
  11. <script type="text/javascript" src="controls/print/plugPrint.js"></script>
  12. <link rel="stylesheet" type="text/css" href="controls/print/print.css">
  13. <!--media=print 这个属性可以在打印时有效-->
  14. <style media=print>
  15. .Noprint {
  16. display: none;
  17. }
  18. .PageNext {
  19. page-break-after: always;
  20. }
  21. </style>
  22. <style type="text/css">
  23. table{
  24. width:100%;
  25. }
  26. .print td{
  27. padding-top:2px;
  28. height:30px;
  29. text-align:center;
  30. }
  31. .commont{
  32. height:30px;
  33. margin-top:30px;
  34. text-align:left;
  35. font-weight:bold;
  36. font-size:15px;
  37. }
  38. .fncBtn {
  39. width: 100%;
  40. background: #e5ecf9;
  41. height: 30px;
  42. padding-top: 3px;
  43. text-align:center;
  44. }
  45. .btn {
  46. height: 25px;
  47. line-height: 20px;
  48. }
  49. </style>
  50. <title>个人履历表打印</title>
  51. <script language="javascript" type="text/javascript">
  52. //****************************************************************
  53. //* 名  称:formPrintit
  54. //* 功 能:打印
  55. //* 作 者: 章家明
  56. //* 入口参数:
  57. //* 出口参数:
  58. //*****************************************************************
  59. function formPrintit(isZong, isSelectPrinter) {
  60. setupHeaderAndFooter("", "");
  61. setupMargin("1", "28", "28", "28", "28");
  62. printit(isZong, isSelectPrinter);
  63. }
  64. //****************************************************************
  65. //* 名  称:formPageSetup
  66. //* 功 能:打印设置
  67. //* 作 者: 章家明
  68. //* 入口参数:
  69. //* 出口参数:
  70. //*****************************************************************
  71. function formPageSetup() {
  72. setupHeaderAndFooter("", "");
  73. setupMargin("1", "28", "28", "28", "28");
  74. popPageSetup();
  75. }
  76. //****************************************************************
  77. //* 名  称:formPreview
  78. //* 功 能:打印预览
  79. //* 作 者: 章家明
  80. //* 入口参数:
  81. //* 出口参数:
  82. //*****************************************************************
  83. function formPreview() {
  84. setupHeaderAndFooter("", "");
  85. setupMargin("1", "28", "28", "28", "28");
  86. popPreview();
  87. }
  88. function printWindow() {
  89. factory.printing.header = "This is MeadCo";
  90. factory.printing.footer = "Printing by ScriptX";
  91. factory.printing.portrait = false;
  92. factory.printing.leftMargin = 1.0;
  93. factory.printing.topMargin = 1.0;
  94. factory.printing.rightMargin = 1.0;
  95. factory.printing.bottomMargin = 1.0;
  96. // factory.printing.Print(false);
  97. factory.printing.Preview();
  98. }
  99. </script>
  100. </head>
  101. <body>
  102. <div class="fncBtn Noprint"> <object id="factory" viewastext style="display: none"
  103. classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
  104. codebase="${pageContext.request.contextPath}/controls/print/smsx.cab#Version=7,0,0,8">
  105. </object> <input type=button value="选择打印" onclick="formPrintit(false, true)" class="btn">
  106. <input type=button value="直接打印" onclick="formPrintit(true, false)" class="btn">
  107. <input type=button value="页面设置" onclick="formPageSetup()" class="btn">
  108. <input type=button value="打印预览" onclick="formPreview()" class="btn">
  109. </div>
  110. <div style="width:100%;text-align:center">
  111. <div style="margin:0 auto;width:90%">
  112. <table class="print">
  113. <tr>
  114. <td colspan="9" ><h6 style="font-size:30px;">个人履历表</h6></td>
  115. </tr>
  116. <tr>
  117. <td style="text-align: right;" colspan="9" >档案号:&nbsp;${requestScope.staffInfo.file_num }&nbsp;</td>
  118. </tr>
  119. <tr>
  120. <td style="font-size:15px;" >姓名</td>
  121. <td style="font-size:15px;" >${requestScope.staffInfo.staff_name }</td>
  122. <td style="font-size:15px;" >性别</td>
  123. <td style="font-size:15px;">
  124. <c:forEach var="listStaffSex" items="${listStaffSex}">
  125. <c:if test="${listStaffSex.data_id == requestScope.staffInfo.staff_sex}">
  126. ${listStaffSex.value_name}
  127. </c:if>
  128. </c:forEach>
  129. </td>
  130. <td style="font-size:15px;" >民族</td>
  131. <td style="font-size:15px;" >${requestScope.staffInfo.ethnic_group }</td>
  132. <td style="font-size:15px;" >出生日期</td>
  133. <td style="font-size:15px;" >${requestScope.staffInfo.staff_birthday }</td>
  134. <td rowspan="4" style="width: 150px;">
  135. <img alt="1寸照片" src="${requestScope.staffInfo.staff_photo }" width="150px;" height="200px;">
  136. </td>
  137. </tr>
  138. <tr>
  139. <td style="font-size:15px;" >血型</td>
  140. <td style="font-size:15px;" >${requestScope.staffInfo.blood_type }</td>
  141. <td style="font-size:15px;" >身高</td>
  142. <td style="font-size:15px;" >${requestScope.staffInfo.body_height }</td>
  143. <td style="font-size:15px;" >体重</td>
  144. <td style="font-size:15px;" >${requestScope.staffInfo.body_weight }</td>
  145. <td style="font-size:15px;" >婚姻状况</td>
  146. <td style="font-size:15px;" >${requestScope.staffInfo.marital_status }</td>
  147. </tr>
  148. <tr>
  149. <td style="font-size:15px;" >籍贯</td>
  150. <td colspan="3" style="font-size:15px;" >${requestScope.staffInfo.native }</td>
  151. <td style="font-size:15px;" >职称</td>
  152. <td colspan="3" style="font-size:15px;">${requestScope.staffInfo.job_title }</td>
  153. </tr>
  154. <tr>
  155. <td style="font-size:15px;" >户籍地址</td>
  156. <td colspan="3" style="font-size:15px;" >${requestScope.staffInfo.census_address }</td>
  157. <td style="font-size:15px;" >身份证号</td>
  158. <td colspan="3" style="font-size:15px;">${requestScope.staffInfo.id_number }</td>
  159. </tr>
  160. <tr>
  161. <td style="font-size:15px;" >家庭住址</td>
  162. <td colspan="4" style="font-size:15px;" >${requestScope.staffInfo.home_address }</td>
  163. <td style="font-size:15px;" >联系电话</td>
  164. <td colspan="3" style="font-size:15px;">${requestScope.staffInfo.self_phone }</td>
  165. </tr>
  166. <tr>
  167. <td style="font-size:15px;" >学历教育</td>
  168. <td colspan="8" style="font-size:15px;" >
  169. <c:choose>
  170. <c:when test="${empty educationList}">
  171. &nbsp;
  172. </c:when>
  173. <c:otherwise>
  174. <table>
  175. <tr>
  176. <td>学习类型</td>
  177. <td>学校名称</td>
  178. <td>起止年月</td>
  179. <td>专业</td>
  180. <td>学历</td>
  181. <td>学位</td>
  182. </tr>
  183. <c:forEach var="educationList" items="${educationList}">
  184. <tr>
  185. <td>${educationList.study_type}</td>
  186. <td>${educationList.study_school_name}</td>
  187. <td>${educationList.study_start_end_time}</td>
  188. <td>${educationList.study_subject}</td>
  189. <td>${educationList.study_educational_background}</td>
  190. <td>${educationList.study_degree}</td>
  191. </tr>
  192. </c:forEach>
  193. </table>
  194. </c:otherwise>
  195. </c:choose>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td rowspan="6" style="font-size:15px;" >证书情况</td>
  200. <td style="font-size:15px;" >职称</td>
  201. <td colspan="7" style="text-align: left;">
  202. <c:forEach var="listSmallType" items="${listSmallType}">
  203. <c:forEach var="positionList" items="${positionList}">
  204. <c:if test="${listSmallType.universalid eq positionList.position_type_id}">
  205. ${listSmallType.small_type_name}(专业:${positionList.position_subject })
  206. </c:if>
  207. </c:forEach>
  208. </c:forEach>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td style="font-size:15px;" >建造师</td>
  213. <td colspan="7" style="text-align: left;">
  214. <c:forEach var="listSmallType" items="${listSmallType}">
  215. <c:forEach var="constructionEngineerList" items="${constructionEngineerList}">
  216. <c:if test="${listSmallType.universalid eq constructionEngineerList.construction_engineer_type_id}">
  217. ${listSmallType.small_type_name}(专业:${constructionEngineerList.construction_subject })
  218. </c:if>
  219. </c:forEach>
  220. </c:forEach>
  221. </td>
  222. </tr>
  223. <tr>
  224. <td style="font-size:15px;" >八大员</td>
  225. <td colspan="7" style="text-align: left;">
  226. <c:forEach var="listSmallType" items="${listSmallType}">
  227. <c:forEach var="eightTypeList" items="${eightTypeList}">
  228. <c:if test="${listSmallType.universalid eq eightTypeList.eight_type_id}">
  229. ${listSmallType.small_type_name}(其他岗位:${eightTypeList.eight_other_job })
  230. </c:if>
  231. </c:forEach>
  232. </c:forEach>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td style="font-size:15px;" >三类人员</td>
  237. <td colspan="7" style="text-align: left;">
  238. <c:forEach var="listSmallType" items="${listSmallType}">
  239. <c:forEach var="threeTypeList" items="${threeTypeList}">
  240. <c:if test="${listSmallType.universalid eq threeTypeList.three_type_id}">
  241. ${listSmallType.small_type_name}
  242. </c:if>
  243. </c:forEach>
  244. </c:forEach>
  245. </td>
  246. </tr>
  247. <tr>
  248. <td style="font-size:15px;" >特种工</td>
  249. <td colspan="7" style="text-align: left;">
  250. <c:forEach var="listSmallType" items="${listSmallType}">
  251. <c:forEach var="specialWorkList" items="${specialWorkList}">
  252. <c:if test="${listSmallType.universalid eq specialWorkList.work_type}">
  253. ${listSmallType.small_type_name}
  254. </c:if>
  255. </c:forEach>
  256. </c:forEach>
  257. </td>
  258. </tr>
  259. <tr>
  260. <td style="font-size:15px;" >其他</td>
  261. <td colspan="7" style="text-align: left;">
  262. <c:forEach var="listSmallType" items="${listSmallType}">
  263. <c:forEach var="otherList" items="${otherList}">
  264. <c:if test="${listSmallType.universalid eq otherList.other_type_id}">
  265. ${listSmallType.small_type_name}(专业:${otherList.other_major })
  266. </c:if>
  267. </c:forEach>
  268. </c:forEach>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td style="font-size:15px;" >工作经历</td>
  273. <td colspan="8" style="font-size:15px;" >
  274. <c:choose>
  275. <c:when test="${empty experienceList}">
  276. &nbsp;
  277. </c:when>
  278. <c:otherwise>
  279. <table>
  280. <tr>
  281. <td>工作单位</td>
  282. <td>起止年月</td>
  283. <td>职务</td>
  284. <td>离职原因</td>
  285. </tr>
  286. <c:forEach var="experienceList" items="${experienceList}">
  287. <tr>
  288. <td>${experienceList.work_company}</td>
  289. <td>${experienceList.work_start_end_time}</td>
  290. <td>${experienceList.work_position}</td>
  291. <td>${experienceList.work_resignation_reason}</td>
  292. </tr>
  293. </c:forEach>
  294. </table>
  295. </c:otherwise>
  296. </c:choose>
  297. </td>
  298. </tr>
  299. <tr>
  300. <td style="font-size:15px;" >家庭成员</td>
  301. <td colspan="8" style="font-size:15px;" >
  302. <c:choose>
  303. <c:when test="${empty experienceList}">
  304. &nbsp;
  305. </c:when>
  306. <c:otherwise>
  307. <table>
  308. <tr>
  309. <td>姓名</td>
  310. <td>关系</td>
  311. <td>单位</td>
  312. <td>职务</td>
  313. <td>联系电话</td>
  314. <td>备注</td>
  315. </tr>
  316. <c:forEach var="familyMemberList" items="${familyMemberList}">
  317. <tr>
  318. <td>${familyMemberList.member_name}</td>
  319. <td>${familyMemberList.member_relation}</td>
  320. <td>${familyMemberList.member_company}</td>
  321. <td>${familyMemberList.member_position}</td>
  322. <td>${familyMemberList.member_phone}</td>
  323. <td>${familyMemberList.member_remark}</td>
  324. </tr>
  325. </c:forEach>
  326. </table>
  327. </c:otherwise>
  328. </c:choose>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td style="font-size:15px;" >本人签字:</td>
  333. <td colspan="4" style="font-size:15px;" ></td>
  334. <td style="font-size:15px;" >填写日期:</td>
  335. <td colspan="3" >&nbsp;</td>
  336. </tr>
  337. </table>
  338. </div>
  339. </div>
  340. </body>
  341. </html>