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.

220 lines
7.1 KiB

<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
String sj = Common.convertNull(request.getParameter("sj"));
HashFmlBuf buf = (HashFmlBuf)request.getAttribute("by_checkId");
String checkName="";
String checkType="";
String checkContent="";
Login loginObj = (Login)session.getAttribute("login");
String optrid = loginObj.optrid;
String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
%>
<html>
<head>
<title>检查结果管理</title>
<link href="../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../js/date.js"></script>
<script src="../../js/check.js"></script>
<script>
function setValue()
{
<%
if (!Common.isNull(sj)) {
out.println("form1.sj.value='" + sj + "';");
}
if (!Common.isNull(qj)) {
out.println("form1.qj.value='" + qj + "';");
}
if (!Common.isNull(school)) {
out.println("form1.school.value='" + school + "';");
}
%>
}
function textToUpperCase(){
if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){
event.srcElement.value = event.srcElement.value.toUpperCase();
}
}
function check(operate) {
form1.operate.value = operate;
if(operate=='CheckReault'){
if (form1.sj.value == "") {
alert("请选择所属地市");
form1.sj.focus();
return false;
}
if (form1.qj.value == "") {
alert("请选择所属区县");
form1.qj.focus();
return false;
}
if (form1.school.value == "") {
alert("请选择所属部门");
form1.school.focus();
return false;
}
if (form1.checkEndTime.value == "") {
alert("请选择检查时间!");
form1.checkEndTime.focus();
return false;
}
if (form1.checkReault.value == "") {
alert("请填写您的检查结果!");
form1.checkReault.focus();
return false;
}
}
form1.button1.disabled=true;
form1.button2.disabled=true;
form1.submit();
}
function selectChange(i)
{
form1.action = "/zhyw/smjc/CheckReault.jsp";
form1.submit();
}
</script>
<style type="text/css">
.aselect{
width: 155px;
}
</style>
</head>
<body onload="setValue();">
<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>
<form name="form1" method="post" action="/servlet/CheckManage">
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="checkId" value="<%=buf.fget("check_id",0) %>"/>
<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="school" setValue="<%=school%>">
<%=Para.getXx(getPara,login_obj,qj)%>
</select>
</td>
<td class="cell1">检查开始时间</td>
<td class="cell2">
<input type="text" name="checkStartTime" value="<%=buf.fget("check_start_time",0) %>" readonly="readonly">
</td>
<tr bgcolor="#FFFFFF">
<td class="cell1">检查类型</td>
<td class="cell2">
<select class='aselect' name="checkType" value="<%=checkType%>">
<%
if (checkType.equals("")){
out.println(Para.getCheckType(getPara, "CHECKTYPE"));
if (!checkType.equals("")){
%>
<script>
form1.checkType.value='<%=checkType%>';
</script>
<%
}
}else{
out.println(getPara.getSParaFilter("td_s_static","data_code","dataname","type_code","CHECKTYPE","data_code",checkType));
}
%>
</select>
</td>
<td class="cell1">检查结束时间</td>
<td class="cell2">
<input name='checkEndTime' type='text' value="<%=buf.fget("check_end_time",0) %>">
<input class="box_button" type='button' name='butt1' value='选时间' onclick="fPopCalendar(checkEndTime,checkEndTime);"><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">检查内容</td>
<td class="cell2" >
<select class='aselect' name="checkContent" value="<%=checkContent%>">
<%
if (checkContent.equals("")){
out.println(Para.getCheckNo(getPara, "CHECKCONTENT"));
if (!checkContent.equals("")){
%>
<script>
form1.checkContent.value='<%=checkContent%>';
</script>
<%
}
}else{
out.println(getPara.getSParaFilter("td_s_static","data_code","dataname","type_code","CHECKCONTENT","data_code",checkContent));
}
%>
</select>
</td>
<td class="cell1">检查人员</td>
<td class="cell2">
<input style="color:red;" type="text" name="checkName" value="<%=optrname%>" readonly="readonly" />
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">检查地点</td>
<td class="cell2" colspan="3">
<textarea rows="3" cols="70" name="address" ><%=buf.fget("address",0) %></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">检查结果</td>
<td class="cell2" colspan="3">
<textarea rows="3" cols="70" name="checkReault" ><%=buf.fget("check_result",0) %></textarea><font color="#ff0000">*</font>
</td>
</tr>
</table>
<br>
<table width="90%" align="center">
<tr align="center">
<td><input type="button" name="button1" value=" 提交 " class="box_button" onclick="check('CheckReault');"/>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="button2" value=" 返回 " class="box_button" onclick="history.back();"/>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<%@include file="/foot.jsp"%>
</body>
</html>