| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>员工管理</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/main.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/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
-
- $(function (){
- //时间控件
- $("#register_time").ligerDateEditor({labelAlign: 'left', width:150});
- $("#probation_time").ligerDateEditor({labelAlign: 'left', width:150});
- $("#leaving_time").ligerDateEditor({labelAlign: 'left', width:150});
- tablePage();
-
- });
- var jsonObject;
- function params(){
- var cname= encodeURI($('#cname').val()) ;
- var register_time =$('#register_time').val();
- var probation_time =$('#probation_time').val();
- var leaving_time =$('#leaving_time').val();
- var education =$('#education').val();
- var status =$('#status').val();
- var person_status = $('#person_status').val();
- jsonObject = {"cname":cname,"register_time":register_time,"probation_time":probation_time,"leaving_time":leaving_time,"education":education,"status":status,"person_status":person_status};
-
- }
-
- function tablePage(){
- params();
- grid = $("#maingrid").ligerGrid({
- columns: [
- { display: '档案号', name: 'file_id', align: 'center', width: 120,frozen: true },
- { display: '姓名', name: 'cname', align: 'center', width: 100,frozen: true },
- { display: '性别', name: 'sex', align: 'center', width: 40,frozen: true },
- { display: '状态', name: 'status', align: 'center', width: 60},
- { display: '招聘类别', name: 'works_type', align: 'center', width: 60 },
-
- { display: '籍贯', name: 'native1', align: 'center', width: 100 },
- { display: '报到时间', name: 'register_time', align: 'center', width: 70 },
- { display: '试用日期', name: 'probation_time', align: 'center', width: 70},
- { display: '转正日期', name: 'full_time', align: 'center', width: 70},
- { display: '离职日期', name: 'leave_time', align: 'center', width: 70},
- { display: '学历', name: 'education', align: 'center', width: 100},
- { display: '毕业时间', name: 'gradu_time', align: 'center', width: 140},
- { display: '毕业院校', name: 'school', align: 'center', width: 200},
- { display: '专业', name: 'major', align: 'center', width: 200},
- { display: '身份证号', name: 'id_number', align: 'center', width: 200},
- { display: '联系方式', name: 'mobile_phone', align: 'center', width: 100},
- { display: '家属联系方式', name: 'family_phone', align: 'center', width: 100},
- { display: '银行卡号', name: 'card_id', align: 'center', width: 200},
- { display: '备注', name: 'remark', align: 'center', width: 300}
- ],
- rownumbers:true,
- parms:jsonObject,
- pageSize:20,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- url:'StaffInfoViewAction.do?task=page',
- width : '99.8%',
- height:'99%'
-
- });
- $("#pageloading").hide();
-
- }
- function exportexcel(){
- var cname= $('#cname').val();
- var register_time =$('#register_time').val();
- var probation_time =$('#probation_time').val();
- var leaving_time =$('#leaving_time').val();
- var education =$('#education').val();
- var status =$('#status').val();
- var person_status = $('#person_status').val();
-
- var action = "StaffInfoViewAction.do?task=export";
- action = action + "&cname="+cname+"®ister_time="+register_time+"&probation_time="+probation_time+"&leaving_time="+leaving_time+"&education="+education+"&status="+status+"&person_status="+person_status;
- $("#exportExcelForm").attr("action", action).submit();
- }
- </script>
-
- </head>
- <body>
- <form action="" method="post" id="exportExcelForm">
- </form>
- <div class="default_search" style="margin-bottom: 0px;">
- <ul class="list_search">
- <li class="title">姓名:</li>
- <li class="text">
- <input type="text" id="cname" name="cname"/>
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">状态:</li>
- <li class="text">
- <select id="person_status">
- <option value=""></option>
- <option value="1" >离职</option>
-
- <option value="5" >试用期</option>
- <option value="6" >转正</option>
- <option value="7" >离职中</option>
- <option value="8" >离职冻结</option>
- </select>
- </li>
- </ul>
-
-
- <ul class="list_search">
- <li class="title">报到时间:</li>
- <li class="text">
- <input type="text" id="register_time" name="register_time"/>
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">试用时间:</li>
- <li class="text">
- <input type="text" id="probation_time" name="probation_time"/>
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">离职时间:</li>
- <li class="text">
- <input type="text" id="leaving_time" name="leaving_time"/>
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">学历:</li>
- <li class="text">
- <select id="education">
- <option value=""></option>
- <option value="1" >本科</option>
- <option value="2" >研究生</option>
- <option value="3" >博士</option>
- <option value="4" >专科</option>
- <option value="5" >其他</option>
- </select>
- </li>
- </ul>
- <ul class="">
- <li class="title" style="">
- <input type="button" value="查询" class="l-button" onclick="tablePage()"/>
-
- </li>
- <li class="title" style="">
- <input type="button" value="导出Excel " class="l-button" onclick="exportexcel();"/>
- </li>
- </ul>
- </div>
- <div style="width: 100%; overflow: hidden; clear: both;">
- <div id="maingrid"></div>
- </div>
-
- </body>
- </html>
|