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/smzd/propertyTmaUpdate.jsp

379 lines
13 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@page import="com.zky.zhyw.smsb.CreatePropertyIdUtils"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Arrays"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%
String secret="";
String purpose=(String)request.getAttribute("purpose");
String remark=(String)request.getAttribute("remark");
String propertyType=(String)request.getAttribute("propertyType");
String propertyType1=Common.convertNull(request.getParameter("propertyType"));
HashFmlBuf bufs=(HashFmlBuf)request.getAttribute("bufEmployee"); //读取学生编号
HashFmlBuf bufschool=(HashFmlBuf)request.getAttribute("writeDepartment"); //通过区县读取学校
String areaid=(String)request.getAttribute("areaid");
String studentid=(String)request.getAttribute("studentid");
Login loginObj = (Login)session.getAttribute("login");
String sj = Common.convertNull(request.getParameter("sj"));
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
String netSecret=Common.convertNull(request.getParameter("netSecret"));
String propertyName=Common.convertNull(request.getParameter("propertyName"));
String date = DateTime.DateToStr(new Date());
String useId=CreatePropertyIdUtils.createPropertyUseId(request,response,school);
String operatedepartidvalue=(String)session.getAttribute("operatedepartidvalue");
%>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>涉密资产修改</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../../js/date.js"></script>
<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">
<meta name="save" content="history">
<style type="text/css">
input{behavior:url(#default#savehistory)};
</style>
<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(propertyName))
{
out.println("form1.propertyName.value='" + propertyName + "';");
}
if(!Common.isNull(school))
{
out.println("form1.school.value='" + school + "';");
}
%>
}
function check(operate) {
form1.operate.value = operate;
<%
login_obj = (Login)session.getAttribute("login");
String optrid = login_obj.optrid;
String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
%>
if(operate=='backPropertyNetadd'){
form1.action = "/servlet/PropertyTmaManageServlet?operate=backPropertyInfo1";
form1.submit();
}
if(operate=='backPropertyTma'){
form1.action = "/servlet/PropertyTmaManageServlet?operate=backCheckInfo";
form1.submit();
}
if(operate=="updatePropertyTma"){
if(form1.school.value=="")
{
alert("请选择使用单位!");
form1.school.focus();
return false;
}
if(form1.tmadeptname.value=="")
{
alert("请填写部门名称,若没有部门就填写无!");
form1.tmadeptname.focus();
return false;
}
if(form1.tmaname.value=="")
{
alert("请填写网络名称!");
form1.tmaname.focus();
return false;
}
if(form1.netSecret.value=="")
{
alert("请选择密级!");
form1.netSecret.focus();
return false;
}
if(form1.tmatype.value=="")
{
alert("请选择网络类型!");
form1.tmatype.focus();
return false;
}
if(form1.netwebnum.value=="")
{
alert("请填写网络终端个数!");
form1.netwebnum.focus();
return false;
}
if(form1.useyear.value=="")
{
alert("请选择投入使用年份!");
form1.useyear.focus();
return false;
}
if(form1.manager.value=="")
{
alert("请填写责任人!");
form1.manager.focus();
return false;
}
}
if(operate=="closePropertyInfo"){
form1.action = "/zhyw/smsb/sbdj/propertyUseManage.jsp";
}
form1.button1.disabled=true;
form1.submit();
}
function check1(operate,operateuseId){
form1.operate.value = operate;
if(operate=="addPropertyInfo"){
form1.action = "/servlet/PropertyTmaManageServlet?operate=queryPropertyInfo&operateuseId="+operateuseId;
}
form1.button1.disabled=true;
form1.submit();
}
function selectChange(i) {
form1.action = "/zhyw/smsb/smzd/propertyTmaUpdate.jsp";
form1.submit();
}
</script>
<style type="text/css">
.aselect
{
width:156px;
}
</style>
<style type="text/css">
.td1{
width: 30%;
}
table#csstable{
border-top:#D8E9FE 1px solid;
border-left:#D8E9FE 1px solid;
}
table#csstable td{
border-bottom:#D8E9FE 1px solid;
border-right:#D8E9FE 1px solid;
}
table#csstable #bottomcss td{
border-bottom:#D8E9FE 0px solid;
}
</style>
</head>
<%
HashFmlBuf buf=(HashFmlBuf)request.getAttribute("by_propertyTmaId");
%>
<body onload="setValue()">
<form name="form1" method="post" action="/servlet/PropertyTmaManageServlet" >
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="tmaid" id="tmaid" value="<%=buf.fget("TMA_ID", 0)%>"/>
<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="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="94%" class="font12b">&nbsp;<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>
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">所属省份</td>
<td class="cell2" width="20%">
<input type="text" name="sj" value="<%=buf.fget("PROVINCE", 0)%>" readonly="readonly" style="background-color: #D6DDEF;"/>
</td>
<td class="cell1">所属市州</td>
<td class="cell2">
<input type="text" name="sj" value="<%=buf.fget("FRAMEWORKNAME", 0)%>" readonly="readonly" style="background-color: #D6DDEF;"/>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">所属区县</td>
<td class="cell2">
<input type="text" name="qj" value="<%=buf.fget("AREADEF", 0)%>" readonly="readonly" style="background-color: #D6DDEF;"/>
</td>
<td class="cell1">单位名称</td>
<td class="cell2">
<input name="school" type="text" maxlength="20" value="<%=buf.fget("DEPARTNAME", 0)%>" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"/><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">部门名称</td>
<td class="cell2">
<input type="text" name="tmadeptname" id="tmadeptname" value="<%=buf.fget("PART", 0)%>"/><font color="#ff0000">*</font>
</td>
<td class="cell1">登记人员</td>
<td class="td1">
<input type="text" style="color: red;" name="useempid" value="<%=optrname %>" readonly="readonly"/>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1" >登记编号</td>
<td class="cell2" ><input type="text" name="operateuseId" value="<%=useId %>" readonly="readonly"/></td>
<td class="cell1" >网络名称</td>
<td class="cell2" ><input type="text" name="tmaname" value="<%=SM4.SM4Decrypt(Base64.decode(buf.fget("TMANAME",0))) %>"/><font color="#ff0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">密级</td>
<td class="cell2">
<select class='aselect' name="netSecret" id="netSecret" value="<%=buf.fget("TMA_SECURITY",0) %>">
<%
if(buf.fget("TMA_SECURITY",0).equals("1")){ %>
<option value="1" selected="selected">秘密</option>
<option value="2" >机密</option>
<option value="3">绝密</option>
<%
}else if(buf.fget("TMA_SECURITY",0).equals("2")){ %>
<option value="1" >秘密</option>
<option value="2" selected="selected">机密</option>
<option value="3">绝密</option>
<%
}else{ %>
<option value="1" >秘密</option>
<option value="2" >机密</option>
<option value="3" selected="selected">绝密</option>
<%
}
%>
</select><font color="#ff0000">*</font>
</td>
<td class="cell1">网络类型</td>
<td class="cell2">
<select name="tmatype" id="tmatype" class='aselect' value="<%=buf.fget("TMATYPE",0) %>">
<%
if(buf.fget("TMATYPE",0).equals("广域网")){ %>
<option value="广域网" selected="selected">广域网</option>
<option value="城域网">城域网</option>
<option value="局域网">局域网</option>
<%
}else if(buf.fget("TMATYPE",0).equals("城域网")){ %>
<option value="广域网">广域网</option>
<option value="城域网" selected="selected">城域网</option>
<option value="局域网">局域网</option>
<%
}else{ %>
<option value="广域网">广域网</option>
<option value="城域网">城域网</option>
<option value="局域网" selected="selected">局域网</option>
<%
}
%>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">网络终端</td>
<td class="cell2">
<input type="text" name="netwebnum" id="netwebnum" value="<%=buf.fget("TERMINAL",0) %>" onKeyUp="value=value.replace(/[^\d|]/g,'')" maxlength="4"/><font color="#ff0000" >*(个)</font>
</td>
<td class="cell1" >投入使用年份</td>
<td class="cell2" >
<select name="useyear" id="useyear" class='aselect'>
<%
for(int i=1990;i<=2030;i++){
%>
<option value="<%=buf.fget("USEYEAR",0) %>"><%=i%></option>
<%
}
%>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">是否通过测评</td>
<td class="cell2">
<%
if(buf.fget("ISASSESSMENT",0).equals("是")){
%>
<input type="radio" name="isassessment" id="isassessment" value="<%=buf.fget("ISASSESSMENT",0) %>" checked="checked"/>是
<input type="radio" name="isassessment" id="isassessment" value="<%=buf.fget("ISASSESSMENT",0) %>"/>否
<%
}else{
%>
<input type="radio" name="isassessment" id="isassessment" value="<%=buf.fget("ISASSESSMENT",0) %>"/>是
<input type="radio" name="isassessment" id="isassessment" value="<%=buf.fget("ISASSESSMENT",0) %>" checked="checked"/>否
<%
}
%>
</td>
<td class="cell1" >是否通过审批</td>
<td class="cell2" >
<%
if(buf.fget("ISAPPROVAL",0).equals("是")){
%>
<input type="radio" name="isappoval" id="isappoval" value="<%=buf.fget("ISAPPROVAL",0) %>" checked="checked"/>是
<input type="radio" name="isappoval" id="isappoval" value="<%=buf.fget("ISAPPROVAL",0) %>"/>否
<%
}else{
%>
<input type="radio" name="isappoval" id="isappoval" value="<%=buf.fget("ISAPPROVAL",0) %>"/>是
<input type="radio" name="isappoval" id="isappoval" value="<%=buf.fget("ISAPPROVAL",0) %>" checked="checked"/>否
<%
}
%>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1" >是否在建</td>
<td class="cell2" >
<%
if(buf.fget("ISBUILD",0).equals("是")){
%>
<input type="radio" name="isbuild" id="isbuild" value="<%=buf.fget("ISBUILD",0) %>" checked="checked"/>是
<input type="radio" name="isbuild" id="isbuild" value="<%=buf.fget("ISBUILD",0) %>"/>否
<%
}else{
%>
<input type="radio" name="isbuild" id="isbuild" value="<%=buf.fget("ISBUILD",0) %>"/>是
<input type="radio" name="isbuild" id="isbuild" value="<%=buf.fget("ISBUILD",0) %>" checked="checked"/>否
<%
}
%>
</td>
<td class="cell1">责任人</td>
<td class="cell2"><input type="text" name="manager" id="manager" value="<%=buf.fget("TMA_MANAGER",0) %>"/><font color="#ff0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" height="35">
<td class="cell1">备注信息</td>
<td class="cell2" colspan="3">
<textarea rows="4" cols="78" name="remark" value="<%=buf.fget("REMARK",0) %>"></textarea>
</td>
</tr>
</table>
<table width="99%" align="center">
<tr align="center" height="35" valign="middle">
<td>
<input name="button2" onclick="return check('updatePropertyTma');" type="image" src="/images1/bc1.png"/>
<input name="button2" onClick="check('backPropertyTma');" type="image" alt="返回" src="/images1/fh.png"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>
<script src="/js/ajaxUtils.js"></script>