You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhky/web/zhyw/smry/rysh/RexamineManage.jsp

290 lines
8.8 KiB

<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String empid = Common.convertNull(request.getParameter("empid"));
String empstate = request.getParameter("empstate");
String rexamintstate =request.getParameter("rexamintstate");
String empname = Common.convertNull(request.getParameter("empname"));
String operate = (String)request.getParameter("operate");
String sj = Common.convertNull(request.getParameter("sj"));
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
%>
<html>
<head>
<title>复核管理</title>
<link rel="stylesheet" type="text/css" href="../../css/font.css">
<script src="/js/check.js"></script>
<link rel="stylesheet" type="text/css" href="../../js/2k3Grid.css">
<link rel="stylesheet" type="text/css" href="../../js/2k3Menu.css">
<link rel="stylesheet" type="text/css" href="../../js/2k3Dialog.css">
<style type="text/css">
select
{
width:155px;
}
</style>
<script>
function textToUpperCase(){
if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){
event.srcElement.value = event.srcElement.value.toUpperCase();
}
}
function setValue() {
<%
if (!Common.isNull(empstate)) {
out.println("form1.empstate.value='" + empstate + "';");
}
if (!Common.isNull(qj)) {
out.println("form1.qj.value='" + qj + "';");
}
if (!Common.isNull(sj)) {
out.println("form1.sj.value='" + sj + "';");
}
if (!Common.isNull(school)) {
out.println("form1.pcs.value='" + school + "';");
}
if (!Common.isNull(operate)) {
out.println("form1.operate.value='" + operate + "';");
}
if (!Common.isNull(rexamintstate)) {
out.println("form1.rexamintstate.value='" + rexamintstate + "';");
}
%>
}
function check(operate,empid) {
form1.operate.value=operate;
if (form1.sj.value == "") {
alert("请选择市保密局!");
form1.sj.focus();
return false;
}
if (form1.qj.value == "") {
alert("请选择区县保密局!");
form1.qj.focus();
return false;
}
if (operate == "queryRExamineByEmpId") {
form1.action = "/servlet/RexManage?operate=queryRExamineByEmpId&empid=" + empid;
}
if (operate == "queryRExamine"){
if (form1.sj.value=='') {
alert("请选择市保密局!");
return false;
}
if (form1.empstate.value == "") {
alert("请选择用户状态!");
form1.empstate.focus();
return false;
}
}
form1.button1.disabled=true;
//form1.button2.disabled=true;
if (form1.button3){
form1.button3.disabled=false;
}
form1.submit();
}
function selectChange(i)
{
form1.action = "/zhyw/smry/rysh/RexamineManage.jsp";
form1.submit();
}
</script>
</head>
<body onload="setValue();">
<form name="form1" method="post" action="/servlet/RexManage">
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
<tr>
<td valign="top">
<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" background="/images/tab_search_01.jpg">
<table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="97%" class="font12b">&nbsp;复核管理</td>
</tr>
</table>
</td>
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
</tr>
</table>
<input type="hidden" name="operate" value=""/>
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
<td width="97%" class="font12">请输入查询条件</td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF">
<td class="cell1">所属市保密局</td>
<td class="cell2">
<select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);">
<%=Para.getSj(getPara)%>
</select><font color="#ff0000">*</font>
</td>
<td class="cell1">所属区县保密局</td>
<td class="cell2">
<select class='aselect' name="qj" setValue="<%=qj%>" onChange="selectChange(1);">
<%=Para.getQj(getPara,sj)%>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">所属部门</td>
<td class="cell2">
<select class='aselect' name="pcs" setValue="<%=school%>">
<%=Para.getXx(getPara,login_obj,qj)%>
</select>
</td>
<td class="cell1">职员状态</td>
<td class="cell2">
<select class='aselect' name="empstate" id="empstate">
<%=Para.getStatic(getPara,"USERSTATE")%>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">复核状态</td>
<td class="cell2">
<select class='aselect' name="rexamintstate" id="rexamintstate">
<%=Para.getRExamineState(getPara,"REXAMINESTATE")%>
</select>
</td>
<td class="cell1">人员姓名</td>
<td class="cell2">
<input type="text" name="empname">
</td>
</tr>
</table>
<br>
<table width="90%" align="center">
<tr align="center">
<td>
<input border="0" type="image" src="../../images1/cx.png" alt="查询" onclick="check('queryRExamine');"/>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<br>
<%
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("employee_info");
if (buf != null) {
int rowcount = buf.getRowCount();
%>
<center>
<div style="width:90%; height:280px;overflow: auto;">
<div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
<div class="gridHead">
<!--div align="left"><span width="5%">共检索到<%=rowcount%>条记录</span></div-->
<div class="gridRow">
<span width="5px" style="text-align: center;"><b>序号</b></span>
<span>操作</span>
<span><b>人员编号</b></span>
<span><b>审核状态</b></span>
<span><b>复核状态</b></span>
<span><b>人员姓名</b></span>
<span><b>人员成绩</b></span>
<span><b>复核时间</b></span>
</div>
</div>
<div class="gridBody">
<%
for (int i=0; i<rowcount; i++) {
String tempEmpid = buf.fget("empid",i);
String tempstate = buf.fget("empstate",i);
String tempExaminestate =buf.fget("examintstate", i);
String tempsex=buf.fget("sex", i);
String tempRExaminestate = buf.fget("rexamintstate",i);
String disabled = "";
if (tempsex.equals("1")) {
tempsex = "男";
disabled = "";
} else {
tempsex = "女";
disabled = "disabled";
}
if (tempExaminestate.equals("0")) {
tempExaminestate = "通过";
disabled = "";
} else {
tempExaminestate = "不通过";
disabled = "disabled";
}
if (tempstate.equals("1")) {
tempstate = "正常";
disabled = "";
} else {
tempstate = "注销";
disabled = "disabled";
}
if (tempRExaminestate.equals("0")) {
tempRExaminestate = "通过";
disabled = "";
} else {
tempRExaminestate = "不通过";
disabled = "disabled";
}
%>
<div class="gridRow">
<span width="5px" style="text-align: center;"><%=i+1%></span>
<span><input type="button" name="button3" value="复核" onclick="check('queryRExamineByEmpId','<%=buf.fget("empid",i)%>')"
<%
if(buf.fget("rexamintstate",i).equals("0"))
{ %>
class="nobox_button" disabled=disabled;
<%}else{ %>
class="box_button"
<%} %>
/></span>
<span><a target="_black" title="预览" href="/servlet/RexManage?operate=queryRExamineShowInfo&empid=<%=tempEmpid%>"><%=tempEmpid%></a></span>
<span><%=tempExaminestate %></span>
<span>
<%
if(tempRExaminestate.equals("通过")){
%>
<%=tempRExaminestate %>
<%
}else{
%>
<font color="#ff0000"><%=tempRExaminestate %></font>
<%
}
%>
</span>
<span><%=buf.fget("empname",i) %></span>
<span><%=buf.fget("radioresult",i)%>分</span>
<span><%=buf.fget("examinttime",i)%></span>
</div>
<%
}
%>
</div>
<!-- gridBody end -->
</div>
<!-- myGrid end -->
</div>
<tag:PageLinkTag operate="queryEmp" scope="request" width="90%" align="center"/>
<%
}
%>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>