<%@ 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"%> <%@page import="java.util.Date"%> <% 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 optrid = loginObj.optrid; String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid); String sj = Common.convertNull(request.getParameter("sj")); String qj = Common.convertNull(request.getParameter("qj")); String school = Common.convertNull(request.getParameter("school")); String propertyName=Common.convertNull(request.getParameter("propertyName")); String date = DateTime.DateToStr(new Date()); %> 涉密网络终端登记 <% Calendar c=Calendar.getInstance(); SimpleDateFormat sdf=new SimpleDateFormat("yyyy"); SimpleDateFormat sdf1=new SimpleDateFormat("MM"); SimpleDateFormat sdf2=new SimpleDateFormat("dd"); SimpleDateFormat sdf3=new SimpleDateFormat("HH"); SimpleDateFormat sdf4=new SimpleDateFormat("mm"); SimpleDateFormat sdf5=new SimpleDateFormat("ss"); String year=sdf.format(c.getTime()); String mouth=sdf1.format(c.getTime()); String day=sdf2.format(c.getTime()); String hour=sdf3.format(c.getTime()); String min=sdf4.format(c.getTime()); String sec=sdf5.format(c.getTime()); String[] beforeShuffle = new String[] {"1", "2", "3", "4", "5", "6", "7","8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J","K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }; List list = Arrays.asList(beforeShuffle); Collections.shuffle(list); StringBuilder sb = new StringBuilder(); for (int i = 0; i < list.size(); i++) { sb.append(list.get(i)); } String afterShuffle = sb.toString(); String result = afterShuffle.substring(5, 9); String allprotery=year+mouth+day+hour+min+sec+result; String operateuseId=(String)request.getAttribute("operateuseId"); String operatedepartid=(String)request.getAttribute("operatedepartid"); String dwNames=(String)request.getAttribute("dwNa"); %>
 涉密网络登记管理
请选择网络终端种类 * 单位编号:<%=dwNames%>  编号:<%=operateuseId%>
刷新
<% HashFmlBuf buf = (HashFmlBuf) request.getAttribute("InfoBuf"); if (buf != null) { int rowcount = buf.getRowCount(); %>
序号 网络编号 涉密网络名称 网络设备种类 品牌 型号 SN号 IP地址 备注信息 管理
<% for (int i = 0; i < rowcount; i++) { %>
<%=i+1 %> "/> <%=buf.fget("id", i)%> <%=buf.fget("NetSMName", i)%> <%=buf.fget("NET_NAME", i)%> <%=buf.fget("NET_BRAND", i)%> <%=buf.fget("NET_NO", i)%> <%=buf.fget("PROPERTY_SN", i)%> <%=buf.fget("NET_IP", i)%> <%=buf.fget("REMARK", i)%> &operateuseId=<%=operateuseId%>&dwNames=<%=dwNames%>">预览   &operateuseId=<%=operateuseId%>&dwNames=<%=dwNames%>">删除
<% } %>
<% } %>
<%@include file="/foot.jsp"%>