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.
256 lines
11 KiB
256 lines
11 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
pageEncoding="UTF-8"%>
|
|
<%@page import="com.zky.zhyw.smsb.CreatePropertyIdUtils"%>
|
|
<%@page import="com.zky.para.Para"%>
|
|
<%@ page import="com.zky.bjca.SM4" %>
|
|
<%@ page import="cn.org.bjca.utils.Base64" %>
|
|
<%@include file="/auth.jsp"%>
|
|
<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);
|
|
login_obj = (Login)session.getAttribute("login");
|
|
String optrid = login_obj.optrid;
|
|
String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
|
|
Login login = (Login) request.getSession().getAttribute("login");
|
|
%>
|
|
<html>
|
|
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
<title>涉密资产登记</title>
|
|
<link rel="stylesheet" type="text/css" href="../../../css/font.css">
|
|
<script src="/js/check.js"></script>
|
|
<script src="../../../js/date.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">
|
|
<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") {
|
|
form1.action = "/servlet/PropertyUseManage?operate=queryPropertyUse";
|
|
}
|
|
if (operate == "deleteUseManageRow") {
|
|
}
|
|
if (operate == "showProperty") {
|
|
}
|
|
if (operate == "queryPropertyUsePage") {
|
|
}
|
|
if (operate == "deleteUseManage") {
|
|
var Infos = form1.Infos;
|
|
var count = 0;
|
|
if (Infos) {
|
|
if (Infos.length) {
|
|
for ( var i = 0; i < Infos.length; i++) {
|
|
if (Infos[i].checked == true) {
|
|
count++;
|
|
}
|
|
}
|
|
} else {
|
|
if (Infos.checked == true) {
|
|
count++;
|
|
}
|
|
}
|
|
} else {
|
|
alert("没有查到人员信息!");
|
|
return false;
|
|
}
|
|
if (count == 0) {
|
|
alert("请选择要删除的人员信息!");
|
|
return false;
|
|
}
|
|
if (!confirm("确定要删除已经选择的人员信息吗?如果删除将会删除人员下面的所有资产。")) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
form1.button1.disabled = true;
|
|
form1.button2.disabled = true;
|
|
form1.submit();
|
|
}
|
|
function selectChange(i) {
|
|
form1.action = "/zhyw/smsb/sbdj/propertyUseManage.jsp";
|
|
form1.submit();
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
html { overflow-x:hidden; overflow-y:hidden; }
|
|
</style>
|
|
</head>
|
|
<body onload="setValue();" scroll="no">
|
|
<form name="form1" method="get" action="/servlet/PropertyUseManage">
|
|
<table width="99%" 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="100%" 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"> <b>涉密资产登记</b></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="" />
|
|
<table width="100%" border="0" align="left" cellpadding="2"
|
|
cellspacing="1" bgcolor="#FFFFFF" class="table02">
|
|
<tr bgcolor="#FFFFFF">
|
|
<td class="cell1">所属市州</td>
|
|
<td class="cell2"><select class='aselect' name="sj"
|
|
setValue="<%=sj%>" style="width:155px" onChange="selectChange(1);" >
|
|
<%=Para.getSj(getPara)%>
|
|
</select></td>
|
|
<td class="cell1">所属区县</td>
|
|
<td class="cell2"><select class='aselect' name="qj"
|
|
setValue="<%=qj%>" onChange="selectChange(1);" style="width:155px" <%if(sj.equals("0930")){ %> disabled="disabled" <%} %>>
|
|
<%=Para.getQj(getPara, sj)%>
|
|
</select></td>
|
|
<td class="cell1">登记单位</td>
|
|
<td class="cell2"><select class='aselect' name="school"
|
|
setValue="<%=school%>" style="width:155px">
|
|
<%if(sj.equals("0930")){ %>
|
|
<%=Para.getXx1(getPara, sj)%>
|
|
<%}else { %>
|
|
<%=Para.getXx(getPara, qj)%>
|
|
<%} %>
|
|
</select></td>
|
|
<td class="cell1">登记人员</td>
|
|
<td class="cell2"><input type="text" name="usename"></td>
|
|
<td class="cell1">
|
|
<input type="image" name="button1" src="/images1/cx.png" onClick="check('queryPropertyUsePage');"/>
|
|
</td>
|
|
<td class="cell2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="99%" align="center" style="margin-bottom: -2px;">
|
|
<tr align="left">
|
|
<td>
|
|
<input name="button2" onclick="check('queryPropertyUse');" type="image" src="/images1/tj.png"/>
|
|
<%if(login.getSanyuan().equals("0")){ %>
|
|
<input name="button2" onclick="return check('deleteUseManage');" type="image" src="/images1/cc.png"/>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
<%}else { %>
|
|
<input name="button2" onclick="return check('deleteUseManage');" type="image" src="/images1/cc.png"/>
|
|
<%} %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("useBuf");
|
|
if (buf != null) {
|
|
int rowcount = buf.getRowCount();
|
|
%>
|
|
<table width="99%" border="0" cellpadding="0" cellspacing="1" class="box">
|
|
<tr>
|
|
<td>
|
|
<div style="width: 100%; height: 385px; 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" style="text-align: center;">选择项</span>
|
|
<span>所属市州</span>
|
|
<span>所属区县</span>
|
|
<span>登记人员</span>
|
|
<span>使用单位</span>
|
|
<span>归属部门</span>
|
|
<span>使用人员</span>
|
|
<span>登记日期</span>
|
|
<span width="20px">管理</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><input type="checkbox" name="Infos" value="<%=tempDeptid%>"></span>
|
|
<span><%=buf.fget("FRAMEWORKNAME", i)%></span>
|
|
<span><%=buf.fget("AREADEF", i)%></span>
|
|
<span><%=buf.fget("use_staffid", i)%></span>
|
|
<span ><%=buf.fget("departname", i)%></span>
|
|
<span ><%=buf.fget("part", i)%></span>
|
|
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("recover_staffid", i)))%></span>
|
|
<span><%=buf.fget("use_date", i)%></span>
|
|
<span width="20px" style="margin: center;">
|
|
<a href="/servlet/PropertyUseManage?operate=showProperty&useId=<%=tempDeptid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
|
<%if(login.getSanyuan().equals("0")){ %>
|
|
<a href="/servlet/PropertyUseManage?operate=queryPropertyUseId&useId=<%=tempDeptid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
<%}else { %>
|
|
<a href="/servlet/PropertyUseManage?operate=queryPropertyUseId&useId=<%=tempDeptid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>
|
|
<%} %>
|
|
<%if(login.getSanyuan().equals("0")){ %>
|
|
<a onclick="return confirm('您确定要删除此信息吗?');" href="/servlet/PropertyUseManage?operate=deleteUseManageRow&useId=<%=tempDeptid%>"><img src="/images1/delete.gif" border="0" alt="删除"/></a>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
<%}else { %>
|
|
<a onclick="return confirm('您确定要删除此信息吗?');" href="/servlet/PropertyUseManage?operate=deleteUseManageRow&useId=<%=tempDeptid%>"><img src="/images1/delete.gif" border="0" alt="删除"/></a>
|
|
<%} %>
|
|
<%if(login.getSanyuan().equals("0")){ %>
|
|
<a href="/servlet/PropertyUseManage?operate=queryPropertyInfo&operateuseId=<%=tempDeptid%>&reStaff=<%=buf.fget("recover_staffid", i)%>" ><img src="/images1/add.gif" border="0" alt="给使用人添加资产"/></a>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
<%}else { %>
|
|
<a href="/servlet/PropertyUseManage?operate=queryPropertyInfo&operateuseId=<%=tempDeptid%>&reStaff=<%=buf.fget("recover_staffid", i)%>" ><img src="/images1/add.gif" border="0" alt="给使用人添加资产"/></a>
|
|
<%} %>
|
|
</span>
|
|
</div>
|
|
<%
|
|
}
|
|
%>
|
|
</div>
|
|
<!-- gridBody end -->
|
|
</div>
|
|
<!-- myGrid end -->
|
|
</div>
|
|
<tag:PageLinkTag operate="queryPropertyUsePage" scope="request" width="99%" align="center" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<%
|
|
}
|
|
%>
|
|
<%@include file="/foot.jsp"%>
|
|
</body>
|
|
</html> |