listSpecialWork.jsp 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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/ligerDateEditor.js" type="text/javascript"></script>
  14. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/common.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  18. <script type="text/javascript">
  19. function getSplit(obj){
  20. if(obj != null && obj != ""){
  21. return obj.split(",").join("<br>");
  22. }else{
  23. return obj;
  24. }
  25. }
  26. var grid = null;
  27. $(function () {
  28. grid = $("#maingrid4").ligerGrid({
  29. columns: [
  30. { display: '姓名', name: 'staff_name', width: 100},
  31. { display: '性别', name: 'staff_sex', width: 80},
  32. { display: '身份证号', name: 'id_number', width: 150},
  33. { display: '职能工种', name: 'work_type', width: 100,
  34. render: function (row) {
  35. var html = getSplit(row.work_type);
  36. return html;
  37. }
  38. },
  39. { display: '证书编号', name: 'certificate_id', width: 150,
  40. render: function (row) {
  41. var html = getSplit(row.certificate_id);
  42. return html;
  43. }
  44. },
  45. { display: '发证时间', name: 'special_work_start_certificate_time', width: 150,
  46. render: function (row) {
  47. var html = getSplit(row.special_work_start_certificate_time);
  48. return html;
  49. }
  50. },
  51. { display: '有效期至', name: 'special_work_effective_date', width: 180,
  52. render: function (row) {
  53. var html = getSplit(row.special_work_effective_date);
  54. return html;
  55. }
  56. },
  57. {
  58. display: '操作', isAllowHide: false,width: 140,
  59. render: function (row)
  60. {
  61. var html = '';
  62. var temp = row.universalid == null ? '' : row.universalid;
  63. var ids = temp.split(',');
  64. for (var i = 0; i < ids.length; i++){
  65. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/SpecialWorkAction.do?task=infoSpecialWork&universalid='
  66. + ids[i] + '&staff_id=' + row.staff_id +'&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;<br>';
  67. }
  68. return html;
  69. }
  70. }
  71. ],
  72. fixedCellHeight: false, //是否固定单元格的高度
  73. pageSize:20,
  74. url: 'SpecialWorkAction.do?task=listSpecialWork&time=' + new Date().getTime(),
  75. pageParmName: 'p', //页索引参数名,(提交给服务器)
  76. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  77. enabledSort: true, //是否允许排序
  78. width: '99.8%',
  79. height: '99%'
  80. });
  81. $("#pageloading").hide();
  82. });
  83. function searchByKword(){
  84. var staff_name = document.getElementById("staff_name");
  85. var id_number = document.getElementById("id_number");
  86. var work_type = document.getElementById("work_type");
  87. var s = "";
  88. if(staff_name.value != "" && typeof(staff_name.value) != "undefined" ){
  89. s += "&staff_name=" + encodeURI(encodeURI(staff_name.value));
  90. }
  91. if(id_number.value != "" && typeof(id_number.value) != "undefined" ){
  92. s += "&id_number=" + encodeURI(encodeURI(id_number.value));
  93. }
  94. if(work_type.value != "" && typeof(work_type.value) != "undefined" ){
  95. s += "&work_type=" + encodeURI(encodeURI(work_type.value));
  96. }
  97. grid.set("newPage", "1");
  98. grid = $("#maingrid4").ligerGrid({
  99. columns: [
  100. { display: '姓名', name: 'staff_name', width: 100},
  101. { display: '性别', name: 'staff_sex', width: 80},
  102. { display: '身份证号', name: 'id_number', width: 150},
  103. { display: '职能工种', name: 'work_type', width: 100,
  104. render: function (row) {
  105. var html = getSplit(row.work_type);
  106. return html;
  107. }
  108. },
  109. { display: '证书编号', name: 'certificate_id', width: 150,
  110. render: function (row) {
  111. var html = getSplit(row.certificate_id);
  112. return html;
  113. }
  114. },
  115. { display: '发证时间', name: 'special_work_start_certificate_time', width: 150,
  116. render: function (row) {
  117. var html = getSplit(row.special_work_start_certificate_time);
  118. return html;
  119. }
  120. },
  121. { display: '有效期至', name: 'special_work_effective_date', width: 180,
  122. render: function (row) {
  123. var html = getSplit(row.special_work_effective_date);
  124. return html;
  125. }
  126. },
  127. {
  128. display: '操作', isAllowHide: false,width: 140,
  129. render: function (row)
  130. {
  131. var html = '';
  132. var temp = row.universalid == null ? '' : row.universalid;
  133. var ids = temp.split(',');
  134. for (var i = 0; i < ids.length; i++){
  135. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/SpecialWorkAction.do?task=infoSpecialWork&universalid='
  136. + ids[i] + '&staff_id=' + row.staff_id +'&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;<br>';
  137. }
  138. return html;
  139. }
  140. }
  141. ],
  142. fixedCellHeight: false, //是否固定单元格的高度
  143. pageSize:20,
  144. url: 'SpecialWorkAction.do?task=listSpecialWork&time=' + new Date().getTime()+s,
  145. pageParmName: 'p', //页索引参数名,(提交给服务器)
  146. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  147. enabledSort: true, //是否允许排序
  148. width: '99.8%',
  149. height: '99%'
  150. });
  151. $("#pageloading").hide();
  152. }
  153. function searchAll() {
  154. $("#staff_name").val("");
  155. $("#id_number").val("");
  156. $("#work_type").val("");
  157. searchByKword();
  158. }
  159. </script>
  160. </head>
  161. <body >
  162. <div class="container-layout">
  163. <div id="title" class="form-button">
  164. <input type="button" onclick="window.parent.tab.removeSelectedTabItem();" class="l-button" value="关闭" />
  165. </div>
  166. <div class="default_search" >
  167. <ul class="list_search">
  168. <li class="title">姓名:</li>
  169. <li class="text">
  170. <input type="text" name="staff_name" id="staff_name" >
  171. </li>
  172. </ul>
  173. <ul class="list_search">
  174. <li class="title">身份证号:</li>
  175. <li class="text">
  176. <input type="text" name="id_number" id="id_number" >
  177. </li>
  178. </ul>
  179. <ul class="list_search">
  180. <li class="title">职能工种:</li>
  181. <li class="text">
  182. <input type="text" name="work_type" id="work_type" >
  183. </li>
  184. </ul>
  185. <ul>
  186. <li class="search-button" >
  187. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  188. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  189. </li>
  190. </ul>
  191. </div>
  192. <div style="clear: both;">
  193. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  194. </div>
  195. </div>
  196. </body>
  197. </html>