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/smsb/sbwx/propertyMaintainManage.jsp

216 lines
7.3 KiB

<%@page import="com.zky.zhyw.smsb.CreatePropertyIdUtils"%>
<%@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 fileState = "";
String secret = "";
String writeDate = "";
String year[] = null;
String schoolid = (String) request.getAttribute("schoolid");
String areaid1 = Common.convertNull(request.getParameter("areaid"));
String frameworkid1 = Common.convertNull(request
.getParameter("frameworkid"));
String schoolid1 = Common.convertNull(request
.getParameter("schoolid"));
String employeeId = (String) request.getAttribute("writeempid");
String employeeId1 = Common.convertNull(request
.getParameter("writeempid"));
HashFmlBuf bufs = (HashFmlBuf) request.getAttribute("bufEmployee");
String areaid = (String) request.getAttribute("areaid");
HashFmlBuf bufschool = (HashFmlBuf) request
.getAttribute("writeDepartment");
String sj = Common.convertNull(request.getParameter("sj"));
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
String useId=CreatePropertyIdUtils.createPropertyUseId(request,response,school);
String Id = Common.convertNull(request.getParameter("Id"));
Login login = (Login) request.getSession().getAttribute("login");
%>
<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 setValue() {
<%if (!Common.isNull(sj)) {
out.println("form1.sj.value='" + sj + "';");
}
if (!Common.isNull(qj)) {
out.println("form1.qj.value='" + qj + "';");
}%>
}
function check(operate, useid) {
form1.operate.value = operate;
if (operate == "addProperty") {
if (form1.qj.value == "") {
alert("请选择所属区县!");
form1.qj.focus();
return false;
}
form1.action = "/zhyw/smsb/sbdj/propertyUseAdd.jsp?areaid=" + "";
}
if (operate == "showPropertyDetail") {
form1.action = "/servlet/PropertyMaintainManage?operate=showPropertyDetail&useId=" + useid;
}
if (operate == "queryPropertyMaintain") {
if (form1.sj.value == '') {
alert("请选择所属地市!");
form1.sj.focus();
return false;
}
if (form1.qj.value == "") {
alert("请选择所属区县!");
form1.qj.focus();
return false;
}
}
form1.submit();
}
function selectChange(i) {
form1.action = "/zhyw/smsb/sbwx/propertyMaintainManage.jsp";
form1.submit();
}
</script>
</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/PropertyMaintainManage">
<input type="hidden" name="operate" value="" />
<input type="hidden" name="operateuseId" value="<%=useId %>" />
<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></td>
</tr>
</table>
<br>
<table width="90%" align="center">
<tr align="center">
<td><input type="button" name="button1" value=" 查询 "
class="box_button" onclick="check('queryPropertyMaintain');" /></td>
</tr>
</table>
<br></td>
</tr>
</table>
<br>
<%
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("useBuf");
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;">序号</span>
<span width="5px">操作</span>
<span width="15px">维修编号</span>
<span width="15px;">登记单位</span>
<span>登记人员</span>
<span width="15px;">使用单位</span>
<span>使用人员</span>
<span>登记日期</span>
<span>接收日期</span>
</div>
</div>
<div class="gridBody">
<%
for (int i = 0; i < rowcount; i++) {
String tempDeptid = buf.fget("use_id", i);
%>
<div class="gridRow">
<span width="5px" style="text-align: center;"><%=i + 1%></span>
<span width="5px"><input type="button" name="button3" value="详情" onclick="check('showPropertyDetail','<%=tempDeptid%>');" class="box_button" /></span>
<span width="15px"><%=tempDeptid%></span>
<span width="15px;"><%=buf.fget("use_departid", i)%></span>
<span><%=buf.fget("use_staffid", i)%></span>
<span width="15px;"><%=buf.fget("departname", i)%></span>
<span><%=buf.fget("recover_staffid", i)%></span>
<span><%=buf.fget("use_date", i)%></span>
<span><%=buf.fget("recover_date", i)%></span>
</div>
<%
}
%>
</div>
<!-- gridBody end -->
</div>
<!-- myGrid end -->
</div>
<tag:PageLinkTag operate="queryPropertyMaintain" scope="request"
width="90%" align="center" />
</form>
<table width="90%" align="center">
<tr align="center">
<td></td>
</tr>
</table>
<%
}
%>
<%@include file="/foot.jsp"%>
</body>
</html>