📄 humanfile_query.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib uri="/WEB-INF/DropDownList.tld" prefix="DDL"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>档案查询</title>
<link rel="stylesheet" type="text/css" href="/hr/css/human.css">
<script type="text/javascript" src="/hr/js/human/human.js"></script>
<script type="text/javascript" src="/hr/js/human/ajax.js"></script>
<script type="text/javascript" src="/hr/js/human/dateControl.js"></script>
<style type="text/css">
<!--
#Layer2 {
position: absolute;
width: 379px;
height: 200px;
z-index: 3;
left: 300px;
top: 120px;
}
-->
</style>
<style type="text/css">
TD {
border: 0px;
border-top: 1px solid gray;
}
</style>
</head>
<script type="text/javascript" src="/hr/js/share/share.js"></script>
<body>
<form action="" method="post">
<div id="Layer2" class="contentBg"
style="display: none; border: 0px solid black; background-color: #ccffcc">
<br />
<b>精确查询</b>
<img src="/hr/images/human/refuse.gif" alt="关闭" onclick="hideDiv()" />
<br />
<br />
根据档案编号查询
<br />
<br />
请输入档案编号
<input type="text" name="humanId" id="humanId" maxlength="11"
style="width: 120px;" onkeydown="keyDown(this)" />
<input type="button" value="查询" onclick="queryId()"
style="width: 80px;" />
<br />
<br />
<br />
根据身份证号查询
<br />
<br />
请输入身份证号
<input type="text" name="humanIdCard" id="humanIdCard"
maxlength="18" style="width: 120px;" onkeydown="keyDown(this)" />
<input type="button" value="查询" onclick="queryIdCard()"
style="width: 80px;" />
<br />
<br />
<br />
<br />
</div>
<font color="blue"> 您正在做的业务是:
人力资源--人力资源档案管理--人力资源档案查询</font>
<br />
<br />
${msg}
<div align="right" style="width: 100%">
<input type="button" value="查询" onClick="query()"
style="width: 80px" id="btnQuery" />
<input type="button" value="精确查询" style="width: 80px"
onclick="exactitude()" />
<br />
<br />
</div>
<table id="tab1" width="100%" border="1px" cellpadding="0"
cellspacing="0">
<colgroup width="120" class="contentBg"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<colgroup width="120"></colgroup>
<tr height="60">
<td colspan="2">
请选择员工所在的I级机构
</td>
<td colspan="2">
<DDL:DropDownList items="${firstLevel}" value="firstKindId"
event="size='4' onclick=loadLevel(this.id,1,'secondKindId') "
style="width:100%;" defaultOption="一级机构" text="firstKindName"
id="firstKindId">GGG</DDL:DropDownList>
</td>
<td colspan="4" width="480">
</td>
</tr>
<tr height="60px">
<td colspan="2">
请选择员工所在的II级机构
</td>
<td colspan="2">
<select name="secondKindId" id="secondKindId" style="width: 100%;"
size="4" onclick="loadLevel(this.id,2,'thirdKindId')">
<option value="NULL">
--请选择二级机构--
</option>
</select>
</td>
<td colspan="4" width="480">
</td>
</tr>
<tr height="60px">
<td colspan="2">
请选择员工所在的III级机构
</td>
<td colspan="2">
<select name="thirdKindId" id="thirdKindId" style="width: 100%;"
size="4">
<option value="NULL">
--请选择三级机构--
</option>
</select>
</td>
<td colspan="4" width="480">
<div id="Layer1"></div>
</td>
</tr>
<tr height="60px">
<td colspan="2">
请选择职位分类
</td>
<td colspan="2">
<DDL:DropDownList defaultOption="职位分类"
event="size='4' onclick=loadLevel(this.id,3,'humanMajorId') "
items="${requestScope.jobCateList}" value="majorKindId"
text="majorKindName" id="humanMajorKindId" style="width:100%">GGG
</DDL:DropDownList>
</td>
<td colspan="4" width="480">
</td>
</tr>
<tr height="60px">
<td colspan="2">
请选择职位名称
</td>
<td colspan="2">
<select name="humanMajorId" id="humanMajorId" style="width: 100%;"
size="4">
<option value="NULL">
--请选择职位名称--
</option>
</select>
</td>
<td colspan="4" width="480">
</td>
</tr>
<tr height="60px">
<td colspan="2">
请输入建档时间
</td>
<td colspan="2">
<input type="text" name="startTime" id="startTime" float="left"
onfocus="calendar()" style="width: 135px;" />
至
<input type="text" name="endTime" id="endTime"
onfocus="calendar()" style="width: 135px;" />
</td>
<td colspan="4" width="480">
</td>
</tr>
</table>
</form>
</body>
</html>
<script>
//多操作
function query(){
var startTime = document.getElementById("startTime").value;
var endTime = document.getElementById("endTime").value;
if(!(startTime.replace(/\s*/,"") == "") && !(endTime.replace(/\s/,"") == "")){
if(startTime > endTime){
alert("开始比结束还要迟...重新输入");
document.getElementById("startTime").focus();
return;
}
}
document.forms[0].action = "human.do?method=doQuery";
document.forms[0].submit();
}
function exactitude(){
document.getElementById("tab1").disabled = true;
document.getElementById("btnQuery").disabled = true;
document.getElementById("humanId").value="HF";
document.getElementById("Layer2").style.display= "block";
}
function hideDiv(){
window.parent.frame_body.location.reload();
}
function queryId(){
var humanId = document.getElementById("humanId").value;
if(humanId.replace(/\s*/,"")==""){
alert("档案编号不能为空");
return;
}
location.href="human.do?method=toLoadHumanFile&type=1&id="+humanId;
}
function queryIdCard(){
var humanIdCard = document.getElementById("humanIdCard").value;
if(humanIdCard.replace(/\s*/,"")=="" || (humanIdCard.length != 18&&humanIdCard.length != 15)){
alert("身份证号格式不正确");
return;
}
location.href="human.do?method=toLoadHumanFile&type=2&id="+humanIdCard;
}
function keyDown(obj){
if(event.keyCode == 13){
if(obj.name == "humanId"){
queryId();
}else{
queryIdCard();
}
}
if(event.keyCode == 39){
event.keyCode = 9;
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -