| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>荣誉证书列表</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
- <script type="text/javascript">
- function getSplit(obj){
- if(obj != null && obj != ""){
- return obj.split(",").join("<br>");
- }else{
- return obj;
- }
- }
- var grid = null;
- $(function () {
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '姓名', name: 'staff_name', width: 100},
- { display: '性别', name: 'staff_sex', width: 80},
- { display: '身份证号', name: 'id_number', width: 150},
- { display: '职能工种', name: 'work_type', width: 100,
- render: function (row) {
- var html = getSplit(row.work_type);
- return html;
- }
- },
- { display: '证书编号', name: 'certificate_id', width: 150,
- render: function (row) {
- var html = getSplit(row.certificate_id);
- return html;
- }
- },
- { display: '发证时间', name: 'special_work_start_certificate_time', width: 150,
- render: function (row) {
- var html = getSplit(row.special_work_start_certificate_time);
- return html;
- }
- },
- { display: '有效期至', name: 'special_work_effective_date', width: 180,
- render: function (row) {
- var html = getSplit(row.special_work_effective_date);
- return html;
- }
- },
- {
- display: '操作', isAllowHide: false,width: 140,
- render: function (row)
- {
- var html = '';
- var temp = row.universalid == null ? '' : row.universalid;
- var ids = temp.split(',');
- for (var i = 0; i < ids.length; i++){
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/SpecialWorkAction.do?task=infoSpecialWork&universalid='
- + ids[i] + '&staff_id=' + row.staff_id +'&tabid=' + getCurrentTabId()+'\');\">查看</a> <br>';
- }
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'SpecialWorkAction.do?task=listSpecialWork&time=' + new Date().getTime(),
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
-
- });
- $("#pageloading").hide();
- });
- function searchByKword(){
- var staff_name = document.getElementById("staff_name");
- var id_number = document.getElementById("id_number");
- var work_type = document.getElementById("work_type");
- var s = "";
- if(staff_name.value != "" && typeof(staff_name.value) != "undefined" ){
- s += "&staff_name=" + encodeURI(encodeURI(staff_name.value));
- }
- if(id_number.value != "" && typeof(id_number.value) != "undefined" ){
- s += "&id_number=" + encodeURI(encodeURI(id_number.value));
- }
- if(work_type.value != "" && typeof(work_type.value) != "undefined" ){
- s += "&work_type=" + encodeURI(encodeURI(work_type.value));
- }
- grid.set("newPage", "1");
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '姓名', name: 'staff_name', width: 100},
- { display: '性别', name: 'staff_sex', width: 80},
- { display: '身份证号', name: 'id_number', width: 150},
- { display: '职能工种', name: 'work_type', width: 100,
- render: function (row) {
- var html = getSplit(row.work_type);
- return html;
- }
- },
- { display: '证书编号', name: 'certificate_id', width: 150,
- render: function (row) {
- var html = getSplit(row.certificate_id);
- return html;
- }
- },
- { display: '发证时间', name: 'special_work_start_certificate_time', width: 150,
- render: function (row) {
- var html = getSplit(row.special_work_start_certificate_time);
- return html;
- }
- },
- { display: '有效期至', name: 'special_work_effective_date', width: 180,
- render: function (row) {
- var html = getSplit(row.special_work_effective_date);
- return html;
- }
- },
- {
- display: '操作', isAllowHide: false,width: 140,
- render: function (row)
- {
- var html = '';
- var temp = row.universalid == null ? '' : row.universalid;
- var ids = temp.split(',');
- for (var i = 0; i < ids.length; i++){
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/SpecialWorkAction.do?task=infoSpecialWork&universalid='
- + ids[i] + '&staff_id=' + row.staff_id +'&tabid=' + getCurrentTabId()+'\');\">查看</a> <br>';
- }
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'SpecialWorkAction.do?task=listSpecialWork&time=' + new Date().getTime()+s,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
-
- });
- $("#pageloading").hide();
- }
- function searchAll() {
- $("#staff_name").val("");
- $("#id_number").val("");
- $("#work_type").val("");
- searchByKword();
- }
- </script>
- </head>
- <body >
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" onclick="window.parent.tab.removeSelectedTabItem();" class="l-button" value="关闭" />
- </div>
- <div class="default_search" >
- <ul class="list_search">
- <li class="title">姓名:</li>
- <li class="text">
- <input type="text" name="staff_name" id="staff_name" >
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">身份证号:</li>
- <li class="text">
- <input type="text" name="id_number" id="id_number" >
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">职能工种:</li>
- <li class="text">
- <input type="text" name="work_type" id="work_type" >
- </li>
- </ul>
- <ul>
- <li class="search-button" >
- <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
- <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
- </li>
- </ul>
- </div>
- <div style="clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </body>
- </html>
|