加入商密的解密

master
20918 2 years ago
parent a6efc2e753
commit 0bb094e3a9

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -4,7 +4,7 @@
2.涉密人员离职----离职原因
3.涉密网络登记----网络名称
4.检查通知管理----被通知人
5.维修商管理----修单位名称
5.维修商管理----修单位名称
6.涉密资产登记----使用人员

@ -51,3 +51,75 @@ INFO [2023-12-11 17:04:48 758] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-11 17:04:48 962] BJCA Client Version:2.0 Build20210118
INFO [2023-12-13 10:32:51 355] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-13 10:32:51 533] BJCA Client Version:2.0 Build20210118
INFO [2023-12-13 10:45:37 585] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-13 10:45:37 750] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:24 464] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:25 91] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:25 336] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:26 580] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:26 835] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 568] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 619] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 619] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 807] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 807] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:43:10 321] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:43:10 321] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:43:37 907] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:43:37 907] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:44:53 165] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:44:53 357] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:45:23 406] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:45:23 575] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:45:48 296] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:45:49 467] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:46:17 550] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:46:17 702] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:46:41 398] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:46:41 555] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:47:59 105] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:47:59 105] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:48:01 947] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:48:01 947] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:49:26 863] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:49:27 29] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:52:31 772] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:52:31 877] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:56:30 617] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:56:30 802] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:01:38 585] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:01:38 702] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:03:44 221] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:03:44 318] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:42:22 994] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:42:27 213] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:53:05 631] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:53:05 852] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:56:01 527] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:56:01 685] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:06:59 698] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:06:59 925] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:26:26 273] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:26:26 362] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:41:47 501] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:41:47 613] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:02 722] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:06 840] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:31 80] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:31 81] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:58 21] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:58 21] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:57:02 702] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:57:02 810] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:11:16 986] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:11:17 146] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:12:50 656] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:12:50 732] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:13:40 464] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:13:40 506] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:13:59 743] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:13:59 776] BJCA Client Version:2.0 Build20210118

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -217,7 +219,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<div class="gridRow">
<span style="text-align: center;width:2px;"><%=i+1%></span>
<span style="text-align: center;width:2px;"><input type="checkbox" name="Infos" value="<%=tempCheckid%>"></span>
<span><%=buf.fget("notify_staffed", i) %></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed", i))) %></span>
<span><%=buf.fget("departname",i) %></span>
<span><%=buf.fget("notify_time",i) %></span>
<span><%=tempState %></span>

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -111,7 +113,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通知人员</td>
<td class="cell2">
<textarea rows="4" cols="67" name="notifyStaffed"><%=buf.fget("notify_staffed",0)%></textarea>
<textarea rows="4" cols="67" name="notifyStaffed"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed",0)))%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -56,7 +58,7 @@ border-right:#D8E9FE 1px solid;
<tr bgcolor="#FFFFFF">
<td class="cell3" >离岗原因</td>
<td class="cell3" align="left">
<textarea rows="20" cols="85"><%=buf.fget("leave_reason",0) %></textarea></td>
<textarea rows="20" cols="85"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></textarea></td>
</tr>
</table><br>
</body>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -99,7 +101,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<td class="cell1" style="line-height: 30px;">离职原因</td>
<td class="cell2" colspan="5">
<%=buf.fget("leave_reason",0) %></td>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 30px;">领导意见</td>

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -91,7 +93,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1">离岗原因</td>
<td class="cell2" colspan="3">
<textarea rows="20" cols="85" name="leaveReason"><%=buf.fget("leave_reason",0) %></textarea>
<textarea rows="20" cols="85" name="leaveReason"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></textarea>
</td>
</tr>
</table>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -87,7 +89,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 30px;">离职原因</td>
<td class="cell2" colspan="5">
<%=buf.fget("leave_reason",0) %></td>
<%=buf.fget("leave_reason",0)%></td>
</tr>
</table>

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application"
@ -274,7 +276,7 @@ select {
</span> <span><%=buf.fget("empid", i)%></span> <span><%=buf.fget("train_name", i)%></span>
<span name="trainSubject"><%=tempType%></span> <span><%=tempSubject%></span>
<span><%=buf.fget("train_time", i)%></span> <span><%=buf.fget("train_timeend", i)%></span>
<span><%=buf.fget("TRAIN_ADDRESS", i)%></span> <span width="12px">
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("TRAIN_ADDRESS", i)))%></span> <span width="12px">
<% if (login.getSanyuan().equals("0")) { %>
<a href=" /servlet/TrainManage?operate=queryTrainShowById&trainId=<%=tempTrainid%>"><img
border="0" src="../../../images1/read_document.png" ALT="查看"

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -19,6 +21,7 @@
if (operate.equals("modifyEmp")) {
int pos = 0;
HashFmlBuf buf = (HashFmlBuf)request.getAttribute("by_trainId");
//HashFmlBuf buf1 = (HashFmlBuf)request.getAttribute("by_trainId");
sj=buf.fget("FRAMEWORKNAME",pos);
qj=buf.fget("AREADEF",pos);
school=buf.fget("DEPARTNAME",pos);
@ -147,7 +150,7 @@
</td>
<td class="cell1" style="line-height: 30px;">培训地点</td>
<td class="cell2" >
<%=trainAddress %>
<%=SM4.SM4Decrypt(Base64.decode(trainAddress)) %>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -139,7 +141,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px; width: 10%">培训地点</td>
<td class="cell2" style="line-height: 35px; width: 10%" >
<%=buf.fget("train_address", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address", 0))) %>
</td>
<td class="cell1" style="line-height: 35px; width: 10%">培训状态</td>
<td class="cell2" style="line-height: 35px; width: 10%" colspan="3">

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -203,7 +205,7 @@ if(event.keyCode>=65 && event.keyCode<=99 || event.type=="change"){
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 50px;">培训地点</td>
<td class="cell2" colspan="3">
<textarea rows="2" cols="43" name="trainAddress"><%=buf.fget("train_address",0) %></textarea>
<textarea rows="2" cols="43" name="trainAddress"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address",0))) %></textarea>
</td>
</tr>
</table>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<head>
@ -90,7 +92,7 @@ table{border-collapse:collapse; cellspacing="0px" cellpadding="0px"}
<%if(buf.fget("train_address",0).equals("")){ %>
未填写
<%}else{ %>
<%=buf.fget("train_address",0)%><%} %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address",0)))%><%} %>
</td>
</tr>
</table>

@ -10,6 +10,8 @@
<%@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");
@ -590,7 +592,7 @@ String opee=(String)request.getAttribute("opeds");
</select><font color="#ff0000">*</font>
</td>
<td>
<font size="+1" color="green" ><b>使用人:<%=opee%>&nbsp;&nbsp;编号:<%=operateuseId%></b></font>
<font size="+1" color="green" ><b>使用人:<%=SM4.SM4Decrypt(Base64.decode(opee))%>&nbsp;&nbsp;编号:<%=operateuseId%></b></font>
</td>
</tr>
</table>

@ -11,6 +11,8 @@
<%@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");
@ -192,7 +194,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="cell2">
<%=buf.fget("recover_staffid", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("recover_staffid", 0))) %>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">

@ -11,6 +11,9 @@
<%@page import="java.util.Date"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%@page import="java.util.Date"%>
<%@ page import="cn.org.bjca.chaos.jcajce.provider.digest.Skein" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%
String secret="";
String purpose=(String)request.getAttribute("purpose");
@ -181,7 +184,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="cell2">
<input type="text" name="recoverStaffid" maxlength="12" value="<%=buf.fget("RECOVER_STAFFID", 0)%>" /><font color="#ff0000">*</font>
<input type="text" name="recoverStaffid" maxlength="12" value="<%=SM4.SM4Decrypt(Base64.decode(buf.fget("RECOVER_STAFFID", 0)))%>" /><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="30">

@ -1,5 +1,7 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -167,7 +169,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<span><%=buf.fget("RECOVER_DEPARTID",i)%></span>
<span><%=buf.fget("property_name",i) %></span>
<span><%=buf.fget("use_staffid",i) %></span>
<span><%=buf.fget("RECOVER_STAFFID",i)%></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("RECOVER_STAFFID",i)))%></span>
<span><%=buf.fget("USE_DATE",i) %></span>
<span width="8px">
<a href="javascript:check('PropertyUseEditDetail','<%=tempEmpid%>');"><img src="/images1/read_document.png" border="0"/></a></span>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -93,7 +95,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="td1">
<font color="gray" size=3><%=bufInfo.fget("recover_staffid", 0)%></font>
<font color="gray" size=3><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("recover_staffid", 0)))%></font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -93,7 +95,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="td1">
<font color="gray" size=3><%=bufInfo.fget("recover_staffid", 0)%></font>
<font color="gray" size=3><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("recover_staffid", 0)))%></font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -2,6 +2,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" />
@ -209,7 +211,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<span><%=buf.fget("use_staffid", i)%></span>
<span ><%=buf.fget("departname", i)%></span>
<span ><%=buf.fget("part", i)%></span>
<span><%=buf.fget("recover_staffid", 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;">&nbsp;
<a href="/servlet/PropertyUseManage?operate=showProperty&useId=<%=tempDeptid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>&nbsp;&nbsp;

@ -11,6 +11,8 @@
<%@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");
@ -230,7 +232,7 @@ table#csstable #bottomcss td{
<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="<%=buf.fget("TMANAME",0) %>"/><font color="#ff0000">*</font></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>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -56,7 +58,7 @@
<tr bgcolor="#FFFFFF">
<td class="cell1" height="30" valign="middle">网络名称</td>
<td class="cell2" height="30" valign="middle">
<font size=2><%=bufInfo.fget("TMANAME",0) %></font>
<font size=2><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("TMANAME",0))) %></font>
</td>
<td class="cell1" height="30" valign="middle">密级</td>
<td class="cell2" height="30" valign="middle">

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -195,7 +197,7 @@ function selectChange(i)
<span style="text-align: center;width:2px;"><input type="checkbox" name="Infos" value="<%=buf.fget("indenture_id",i)%>"></span>
<span><%=buf.fget("indenture_id",i)%></span>
<span><%if(tempstate.equals("注销")){ %><font color="red"><%=tempstate%></font><%} else{%><font color="green"><%=tempstate%></font><%} %></span>
<span><%=buf.fget("indenture_name",i)%></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("indenture_name",i)))%></span>
<span><%=buf.fget("indenture_address",i)%></span>
<span><%=buf.fget("indenture_phone",i)%></span>
<span><%=buf.fget("indenture_mobile",i)%></span>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -117,7 +119,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">维修单位名称</td>
<td class="cell2">
<input type="text" value="<%=indentureBuf.fget("indenture_name",0) %>" name="indentureName" maxlength="20"/> <font color="#ff0000">*</font>
<input type="text" value="<%=SM4.SM4Decrypt(Base64.decode(indentureBuf.fget("indenture_name",0))) %>" name="indentureName" maxlength="20"/> <font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -62,7 +64,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">维修单位名称</td>
<td class="cell2">
<%=buf.fget("indenture_name", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("indenture_name", 0))) %>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -135,4 +135,6 @@ public class HashFmlBuf implements Serializable {
return ResultRowCount;
}
public void add(String train_address, Object query) {
}
}

@ -16,6 +16,7 @@ import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
@ -305,58 +306,38 @@ public class TrainManageServlet extends DispatchServlet {
}
}
/**
*
*
* @param request
* @param response
* @throws IOException
*/
public void queryTrain(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("train_id");
String trainState = request.getParameter("trainState");
String trainType = request.getParameter("trainType");
String trainSubject = request.getParameter("trainSubject");
String sj = request.getParameter("sj");
String qj = request.getParameter("qj");
String pcs = request.getParameter("pcs");
StringBuffer sql =
new StringBuffer("select date_format( a.train_timeend,'%Y-%m-%d') as train_timeend,a.train_Id,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_type ,a.train_subject,a.TRAIN_ADDRESS,a.train_num,a.empid,a.train_name,a.train_state,b.radioresult,b.empname from td_train a left join tab_employee b on a.empid=b.empname where 1=1");
if (!Common.isNull(trainId)) {
sql.append(" and a.trainId='").append( trainId).append("'");
}
if (!Common.isNull(sj)) {
sql.append(" and a.frameworkid='").append(sj).append("'");
}
if (!Common.isNull(qj)) {
sql.append(" and a.areaid='").append(qj).append("'");
}
if (!Common.isNull(pcs)) {
sql.append(" and a.depart_id='").append(pcs).append("'");
}
if (!Common.isNull(trainType)) {
sql.append(" and a.train_type ='").append( trainType).append("'");
}
if (!Common.isNull(trainState)) {
sql.append(" and a.train_state ='").append( trainState).append("'");
}
if (!Common.isNull(trainSubject)) {
sql.append(" and a.train_subject ='").append( trainSubject).append("'");
}
public void queryTrainBydelete(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("trainId");
String sql = "delete from td_train where train_id=? ";
Connection conn = null;
PreparedStatement prep = null;
try {
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(100);
prep = conn.prepareStatement(sql);
prep.setString(1,trainId);
prep.execute();
conn.commit();
StringBuffer sql1 =
new StringBuffer("select date_format( a.train_timeend,'%Y-%m-%d') as train_timeend,a.train_Id,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_type " +
",a.train_subject,a.train_num,a.empid,a.TRAIN_ADDRESS,a.train_name,a.train_state,b.radioresult,b.empname from td_train a left join tab_employee b on a.empid=b.empname where 1=1");
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql1.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(1000);
request.setAttribute("train_info",buf);
request.getRequestDispatcher("/zhyw/smry/rypx/TrainManage.jsp").forward(request,response);
//操作日志
Operate oper=new Operate();
oper.operatesmrypxcxLog(request);
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("培训信息查询失败!","GB2312") + e.toString()));
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("删除失败!","GB2312") + e.toString()));
} finally {
try {
if (prep!= null) {
prep.close();
}
if (conn!= null) {
conn.close();
}
@ -365,12 +346,152 @@ public class TrainManageServlet extends DispatchServlet {
}
}
}
public InputStream getTrainData(List<Train> trainData) throws ParseException
{
HSSFWorkbook workBook=new HSSFWorkbook();
String[] title={"培训编号","人员姓名","培训次数"};
int i=0;
int k=1;
HSSFSheet tableSheet=workBook.createSheet("培训清单");
HSSFRow row=tableSheet.createRow((short)0);
//创建标题栏单元格字体
HSSFFont titleFont=workBook.createFont();
//创建标题栏样式
HSSFCellStyle titleStyle=workBook.createCellStyle();
//设置标题栏字体颜色
titleFont.setColor(HSSFColor.BLUE.index);
//设置标题栏字体样式
titleStyle.setFont(titleFont);
//创建状态异常的数据行字体
HSSFFont contentFont=workBook.createFont();
//创建状态异常的数据行样式
HSSFCellStyle contentStyle=workBook.createCellStyle();
//设置状态异常的数据行字体颜色
contentFont.setColor(HSSFColor.RED.index);
//为状态异常的数据行样式设置字体
contentStyle.setFont(contentFont);
//迭代标题数组,根据数组长度创建单元格,并设置标题栏单元格字体颜色
for(String s:title)
{
HSSFCell cell=row.createCell(i);
cell.setCellValue(s);
cell.setCellStyle(titleStyle);
i++;
}
//迭代数据信息,填入数据行
for(Iterator iterator=trainData.iterator();iterator.hasNext();)
{
Train Info=(Train)iterator.next();
HSSFRow hssfRow=tableSheet.createRow((short)k);
hssfRow.createCell(0).setCellValue(Info.getTrianId());
hssfRow.createCell(1).setCellValue(Info.getTrainName());
hssfRow.createCell(2).setCellValue(Info.getTrianNum());
k++;
}
ByteArrayOutputStream os = new ByteArrayOutputStream();
try {
workBook.write(os);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
byte[] content = os.toByteArray();
InputStream is = new ByteArrayInputStream(content);
return is;
}
@Override
public void defaultMethod(HttpServletRequest request,
HttpServletResponse response) throws Exception {
// TODO Auto-generated method stub
}
/***
*
* @param request
* @param response
* @throws Exception
*/
public void exportExcelNum(HttpServletRequest request,HttpServletResponse response) throws Exception
{
// String empid = request.getParameter("empid");
StringBuffer sql =
new StringBuffer("select a.train_Id,a.train_time,a.train_type " +
",a.train_subject,a.train_mark,a.train_num,a.train_name,a.train_state from td_train a ");
Connection conn = null;
List<Train> trains = new ArrayList<Train>();;
try {
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(100);
Train train=null;
if(buf!=null)
{
for(int i=0;i<buf.getRowCount();i++)
{
train=new Train();
train.setTrianId(buf.fget("train_Id", i));
train.setTrainName(buf.fget("train_name", i));
train.setTrianNum(buf.fget("train_num", i));
trains.add(train);
}
response.reset();
response.setContentType("application/x-download;charset=gbk");
response.setHeader("Content-Disposition" ,"attachment;filename="+new String("培训统计查询.xls".getBytes("GB2312"),"iso-8859-1"));
ServletOutputStream outputStream=response.getOutputStream();
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
try {
bis = new BufferedInputStream(this.getTrainData(trains));
bos = new BufferedOutputStream(outputStream);
byte[] buff = new byte[2048];
int bytesRead;
// Simple read/write loop.
while (-1 != (bytesRead = bis.read(buff,0, buff.length))) {
bos.write(buff, 0, bytesRead);
}
} catch (final IOException e) {
System.out.println("IOException.");
throw e;
} finally {
if (bis != null)
bis.close();
if (bos != null)
bos.close();
}
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch(NullPointerException e)
{
e.printStackTrace();
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("报表导出失败!","gb2312") + e.toString()));
}
finally
{
if(conn!=null)
{
conn.close();
}
}
}
/**
* Id
* @param request
* @param response
* @throws IOException
*/
* Id
* @param request
* @param response
* @throws IOException
*/
public void queryTrainById(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("trainId");
StringBuffer sql=new StringBuffer("select ta.train_id,ta.train_name,tf.FRAMEWORKNAME,td.AREADEF,t.DEPARTNAME,ta.train_type,ta.train_num,ta.part,ta.tainerInfo,date_format(ta.train_time,'%Y-%m-%d') as train_time,ta.train_subject,ta.train_address" +
@ -395,8 +516,11 @@ public class TrainManageServlet extends DispatchServlet {
}
}
}
/**
* Id
* Id
* @param request
* @param response
* @throws IOException
@ -426,6 +550,96 @@ public class TrainManageServlet extends DispatchServlet {
}
}
}
/**
*
* @param request
* @param response
* @throws IOException
*/
public void queryTrain(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("train_id");
String trainState = request.getParameter("trainState");
String trainType = request.getParameter("trainType");
String trainSubject = request.getParameter("trainSubject");
String sj = request.getParameter("sj");
String qj = request.getParameter("qj");
String pcs = request.getParameter("pcs");
StringBuffer sql =
new StringBuffer("select date_format( a.train_timeend,'%Y-%m-%d') as train_timeend,a.train_Id,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_type ,a.train_subject,a.TRAIN_ADDRESS,a.train_num,a.empid,a.train_name,a.train_state,b.radioresult,b.empname from td_train a left join tab_employee b on a.empid=b.empname where 1=1");
if (!Common.isNull(trainId)) {
sql.append(" and a.trainId='").append( trainId).append("'");
}
if (!Common.isNull(sj)) {
sql.append(" and a.frameworkid='").append(sj).append("'");
}
if (!Common.isNull(qj)) {
sql.append(" and a.areaid='").append(qj).append("'");
}
if (!Common.isNull(pcs)) {
sql.append(" and a.depart_id='").append(pcs).append("'");
}
if (!Common.isNull(trainType)) {
sql.append(" and a.train_type ='").append( trainType).append("'");
}
if (!Common.isNull(trainState)) {
sql.append(" and a.train_state ='").append( trainState).append("'");
}
if (!Common.isNull(trainSubject)) {
sql.append(" and a.train_subject ='").append( trainSubject).append("'");
}
Connection conn = null;
try {
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(100);
request.setAttribute("train_info",buf);
request.getRequestDispatcher("/zhyw/smry/rypx/TrainManage.jsp").forward(request,response);
//操作日志
Operate oper=new Operate();
oper.operatesmrypxcxLog(request);
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("培训信息查询失败!","GB2312") + e.toString()));
} finally {
try {
if (conn!= null) {
conn.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
/**
* Id
* @param request
@ -434,144 +648,27 @@ public class TrainManageServlet extends DispatchServlet {
*/
public void queryTrainShowById(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("trainId");
StringBuffer sql=new StringBuffer("select a.empid ,a.part,a.tainerInfo,a.train_id,date_format(a.TRAIN_TIMEEND,'%Y-%m-%d') as TRAIN_TIMEEND,td.DEPARTNAME,a.depart_id,a.train_name,a.train_type,a.train_num,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_subject," +
"a.train_address,a.areaid,a.frameworkid,a.train_state,b.radioresult,b.radioresult1,b.tklxtype,date_format(b.RADIODATE,'%Y-%m-%d HH24:MI') as RADIODATE , a.train_num,date_format(a.TRAIN_DATE,'%Y-%m-%d') as TRAIN_DATE,ta.AREADEF,tf.FRAMEWORKNAME from td_train a " +
"left join tab_employee b ON a.train_name=b.empname left join tab_area ta on " +
"a.AREAID=ta.AREAID left join tab_framework tf on a.FRAMEWORKID=tf.FRAMEWORKID " +
"left join tab_department td on a.DEPART_ID=td.DEPARTID where a.train_id =?");
StringBuffer sql = new StringBuffer("select a.empid ,a.part,a.tainerInfo,a.train_id,date_format(a.TRAIN_TIMEEND,'%Y-%m-%d') as TRAIN_TIMEEND,td.DEPARTNAME,a.depart_id,a.train_name,a.train_type,a.train_num,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_subject," +
"a.train_address,a.areaid,a.frameworkid,a.train_state,b.radioresult,b.radioresult1,b.tklxtype,date_format(b.RADIODATE,'%Y-%m-%d HH24:MI') as RADIODATE , a.train_num,date_format(a.TRAIN_DATE,'%Y-%m-%d') as TRAIN_DATE,ta.AREADEF,tf.FRAMEWORKNAME from td_train a " +
"left join tab_employee b ON a.train_name=b.empname left join tab_area ta on " +
"a.AREAID=ta.AREAID left join tab_framework tf on a.FRAMEWORKID=tf.FRAMEWORKID " +
"left join tab_department td on a.DEPART_ID=td.DEPARTID where a.train_id =?");
// StringBuffer sql2 = new StringBuffer("select a.train_address from td_train a where a.train_id =?");
Connection conn = null;
try {
conn = DbConn.getConn();
HashFmlBuf buf = (HashFmlBuf)JDBCUtils.query(conn,sql.toString(),new Object[]{trainId},
new HashFmlBufResultSetHandler());
request.setAttribute("by_trainId",buf);
request.getRequestDispatcher("/zhyw/smry/rypx/TrainShowInfo.jsp?operate=modifyEmp").forward(request,response);
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("根据编号查询培训记录失败!","GB2312") + e.toString()));
} finally {
try {
if (conn!= null) {
conn.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
/***
*
* @param request
* @param response
* @throws Exception
*/
public void exportExcelNum(HttpServletRequest request,HttpServletResponse response) throws Exception
{
// String empid = request.getParameter("empid");
StringBuffer sql =
new StringBuffer("select a.train_Id,a.train_time,a.train_type " +
",a.train_subject,a.train_mark,a.train_num,a.train_name,a.train_state from td_train a ");
Connection conn = null;
List<Train> trains = new ArrayList<Train>();;
try {
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(100);
Train train=null;
if(buf!=null)
{
for(int i=0;i<buf.getRowCount();i++)
{
train=new Train();
train.setTrianId(buf.fget("train_Id", i));
train.setTrainName(buf.fget("train_name", i));
train.setTrianNum(buf.fget("train_num", i));
trains.add(train);
}
response.reset();
response.setContentType("application/x-download;charset=gbk");
response.setHeader("Content-Disposition" ,"attachment;filename="+new String("培训统计查询.xls".getBytes("GB2312"),"iso-8859-1"));
ServletOutputStream outputStream=response.getOutputStream();
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
try {
bis = new BufferedInputStream(this.getTrainData(trains));
bos = new BufferedOutputStream(outputStream);
byte[] buff = new byte[2048];
int bytesRead;
// Simple read/write loop.
while (-1 != (bytesRead = bis.read(buff,0, buff.length))) {
bos.write(buff, 0, bytesRead);
}
} catch (final IOException e) {
System.out.println("IOException.");
throw e;
} finally {
if (bis != null)
bis.close();
if (bos != null)
bos.close();
}
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
catch(NullPointerException e)
{
e.printStackTrace();
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("报表导出失败!","gb2312") + e.toString()));
}
finally
{
if(conn!=null)
{
conn.close();
}
}
HashFmlBuf buf = (HashFmlBuf) JDBCUtils.query(conn, sql.toString(), new Object[]{trainId},
new HashFmlBufResultSetHandler());
}
/**
*
* @param request
* @param response
* @throws IOException
*/
public void queryTrainBydelete(HttpServletRequest request, HttpServletResponse response) throws IOException {
String trainId = request.getParameter("trainId");
String sql = "delete from td_train where train_id=? ";
Connection conn = null;
PreparedStatement prep = null;
try {
conn = DbConn.getConn();
prep = conn.prepareStatement(sql);
prep.setString(1,trainId);
prep.execute();
conn.commit();
StringBuffer sql1 =
new StringBuffer("select date_format( a.train_timeend,'%Y-%m-%d') as train_timeend,a.train_Id,date_format(a.train_time,'%Y-%m-%d') as train_time,a.train_type " +
",a.train_subject,a.train_num,a.empid,a.TRAIN_ADDRESS,a.train_name,a.train_state,b.radioresult,b.empname from td_train a left join tab_employee b on a.empid=b.empname where 1=1");
conn = DbConn.getConn();
PageQuery pageQuery = new PageQuery(conn,sql1.toString(),new HashFmlBufResultSetHandler(),request);
HashFmlBuf buf=(HashFmlBuf)pageQuery.query(1000);
request.setAttribute("train_info",buf);
request.getRequestDispatcher("/zhyw/smry/rypx/TrainManage.jsp").forward(request,response);
request.setAttribute("by_trainId", buf);
// request.setAttribute("by_trainId", buf1);
request.getRequestDispatcher("/zhyw/smry/rypx/TrainShowInfo.jsp?operate=modifyEmp").forward(request, response);
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo="+URLEncoder.encode("删除失败!","GB2312") + e.toString()));
response.sendRedirect(Common.GbConvertIso("/error.jsp?errorinfo=" + URLEncoder.encode("根据编号查询培训记录失败!", "utf-8") + e.toString()));
} finally {
try {
if (prep!= null) {
prep.close();
}
if (conn!= null) {
if (conn != null) {
conn.close();
}
} catch (SQLException e) {
@ -579,65 +676,5 @@ public class TrainManageServlet extends DispatchServlet {
}
}
}
public InputStream getTrainData(List<Train> trainData) throws ParseException
{
HSSFWorkbook workBook=new HSSFWorkbook();
String[] title={"培训编号","人员姓名","培训次数"};
int i=0;
int k=1;
HSSFSheet tableSheet=workBook.createSheet("培训清单");
HSSFRow row=tableSheet.createRow((short)0);
//创建标题栏单元格字体
HSSFFont titleFont=workBook.createFont();
//创建标题栏样式
HSSFCellStyle titleStyle=workBook.createCellStyle();
//设置标题栏字体颜色
titleFont.setColor(HSSFColor.BLUE.index);
//设置标题栏字体样式
titleStyle.setFont(titleFont);
//创建状态异常的数据行字体
HSSFFont contentFont=workBook.createFont();
//创建状态异常的数据行样式
HSSFCellStyle contentStyle=workBook.createCellStyle();
//设置状态异常的数据行字体颜色
contentFont.setColor(HSSFColor.RED.index);
//为状态异常的数据行样式设置字体
contentStyle.setFont(contentFont);
//迭代标题数组,根据数组长度创建单元格,并设置标题栏单元格字体颜色
for(String s:title)
{
HSSFCell cell=row.createCell(i);
cell.setCellValue(s);
cell.setCellStyle(titleStyle);
i++;
}
//迭代数据信息,填入数据行
for(Iterator iterator=trainData.iterator();iterator.hasNext();)
{
Train Info=(Train)iterator.next();
HSSFRow hssfRow=tableSheet.createRow((short)k);
hssfRow.createCell(0).setCellValue(Info.getTrianId());
hssfRow.createCell(1).setCellValue(Info.getTrainName());
hssfRow.createCell(2).setCellValue(Info.getTrianNum());
k++;
}
ByteArrayOutputStream os = new ByteArrayOutputStream();
try {
workBook.write(os);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
byte[] content = os.toByteArray();
InputStream is = new ByteArrayInputStream(content);
return is;
}
@Override
public void defaultMethod(HttpServletRequest request,
HttpServletResponse response) throws Exception {
// TODO Auto-generated method stub
}
}

@ -4,6 +4,8 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import cn.org.bjca.utils.Base64;
import com.zky.bjca.SM4;
import com.zky.manager.Login;
import com.zky.manager.StudentPullulate;
import com.zky.pub.Common;
@ -107,7 +109,7 @@ public class PropertyUseManageServlet extends DispatchServlet {
pstmt.setString(4,useempid);
pstmt.setString(5,login.getDepartid());
pstmt.setString(6,schoolid);
pstmt.setString(7,recoverStaffid);
pstmt.setString(7, Base64.toBase64String(SM4.SM4Encrypt(recoverStaffid)));
pstmt.setString(8,sf);
pstmt.setString(9, part);
pstmt.execute();
@ -1287,7 +1289,7 @@ public class PropertyUseManageServlet extends DispatchServlet {
prep = conn.prepareStatement(sql);
prep.setString(1,schoolid );
prep.setString(2,useempid );
prep.setString(3,recoverStaffid);
prep.setString(3, Base64.toBase64String(SM4.SM4Encrypt(recoverStaffid)));
prep.setString(4,recoverDate);
prep.setString(5,operateuseId);
prep.setString(6,part );

@ -6,13 +6,14 @@ import java.util.Locale;
public class sm4demo {
public static void main(String[] args) throws CommonClientException {
String str = "公司";
String str = "测试";
byte[] bytes = SM4.SM4Encrypt(str);
String s = Base64.toBase64String(bytes);
System.out.println(s);
String s1 = SM4.SM4Decrypt(Base64.decode(s));
String str2 = "kTk3ZHGlJCfRvwyq/5ly0g==";
String s1 = SM4.SM4Decrypt(Base64.decode(str2));
System.out.println(s1);
}
}

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -51,3 +51,75 @@ INFO [2023-12-11 17:04:48 758] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-11 17:04:48 962] BJCA Client Version:2.0 Build20210118
INFO [2023-12-13 10:32:51 355] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-13 10:32:51 533] BJCA Client Version:2.0 Build20210118
INFO [2023-12-13 10:45:37 585] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-13 10:45:37 750] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:24 464] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:25 91] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:25 336] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:26 580] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:26 835] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 568] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 569] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 619] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 619] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:42:28 807] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:42:28 807] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:43:10 321] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:43:10 321] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:43:37 907] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:43:37 907] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:44:53 165] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:44:53 357] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:45:23 406] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:45:23 575] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:45:48 296] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:45:49 467] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:46:17 550] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:46:17 702] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:46:41 398] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:46:41 555] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:47:59 105] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:47:59 105] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:48:01 947] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:48:01 947] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:49:26 863] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:49:27 29] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:52:31 772] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:52:31 877] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 14:56:30 617] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 14:56:30 802] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:01:38 585] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:01:38 702] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:03:44 221] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:03:44 318] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:42:22 994] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:42:27 213] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:53:05 631] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:53:05 852] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 15:56:01 527] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 15:56:01 685] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:06:59 698] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:06:59 925] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:26:26 273] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:26:26 362] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:41:47 501] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:41:47 613] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:02 722] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:06 840] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:31 80] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:31 81] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:54:58 21] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:54:58 21] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 16:57:02 702] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 16:57:02 810] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:11:16 986] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:11:17 146] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:12:50 656] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:12:50 732] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:13:40 464] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:13:40 506] BJCA Client Version:2.0 Build20210118
INFO [2023-12-15 17:13:59 743] Load HSM config IP1:10.10.3.2,Port1:8000
INFO [2023-12-15 17:13:59 776] BJCA Client Version:2.0 Build20210118

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -217,7 +219,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<div class="gridRow">
<span style="text-align: center;width:2px;"><%=i+1%></span>
<span style="text-align: center;width:2px;"><input type="checkbox" name="Infos" value="<%=tempCheckid%>"></span>
<span><%=buf.fget("notify_staffed", i) %></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed", i))) %></span>
<span><%=buf.fget("departname",i) %></span>
<span><%=buf.fget("notify_time",i) %></span>
<span><%=tempState %></span>

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -111,7 +113,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通知人员</td>
<td class="cell2">
<textarea rows="4" cols="67" name="notifyStaffed"><%=buf.fget("notify_staffed",0)%></textarea>
<textarea rows="4" cols="67" name="notifyStaffed"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed",0)))%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -56,7 +58,7 @@ border-right:#D8E9FE 1px solid;
<tr bgcolor="#FFFFFF">
<td class="cell3" >离岗原因</td>
<td class="cell3" align="left">
<textarea rows="20" cols="85"><%=buf.fget("leave_reason",0) %></textarea></td>
<textarea rows="20" cols="85"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></textarea></td>
</tr>
</table><br>
</body>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -99,7 +101,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<td class="cell1" style="line-height: 30px;">离职原因</td>
<td class="cell2" colspan="5">
<%=buf.fget("leave_reason",0) %></td>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 30px;">领导意见</td>

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -91,7 +93,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1">离岗原因</td>
<td class="cell2" colspan="3">
<textarea rows="20" cols="85" name="leaveReason"><%=buf.fget("leave_reason",0) %></textarea>
<textarea rows="20" cols="85" name="leaveReason"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></textarea>
</td>
</tr>
</table>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -87,7 +89,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 30px;">离职原因</td>
<td class="cell2" colspan="5">
<%=buf.fget("leave_reason",0) %></td>
<%=buf.fget("leave_reason",0)%></td>
</tr>
</table>

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application"
@ -274,7 +276,7 @@ select {
</span> <span><%=buf.fget("empid", i)%></span> <span><%=buf.fget("train_name", i)%></span>
<span name="trainSubject"><%=tempType%></span> <span><%=tempSubject%></span>
<span><%=buf.fget("train_time", i)%></span> <span><%=buf.fget("train_timeend", i)%></span>
<span><%=buf.fget("TRAIN_ADDRESS", i)%></span> <span width="12px">
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("TRAIN_ADDRESS", i)))%></span> <span width="12px">
<% if (login.getSanyuan().equals("0")) { %>
<a href=" /servlet/TrainManage?operate=queryTrainShowById&trainId=<%=tempTrainid%>"><img
border="0" src="../../../images1/read_document.png" ALT="查看"

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -19,6 +21,7 @@
if (operate.equals("modifyEmp")) {
int pos = 0;
HashFmlBuf buf = (HashFmlBuf)request.getAttribute("by_trainId");
//HashFmlBuf buf1 = (HashFmlBuf)request.getAttribute("by_trainId");
sj=buf.fget("FRAMEWORKNAME",pos);
qj=buf.fget("AREADEF",pos);
school=buf.fget("DEPARTNAME",pos);
@ -147,7 +150,7 @@
</td>
<td class="cell1" style="line-height: 30px;">培训地点</td>
<td class="cell2" >
<%=trainAddress %>
<%=SM4.SM4Decrypt(Base64.decode(trainAddress)) %>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -139,7 +141,7 @@ function selectChange(i)
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 35px; width: 10%">培训地点</td>
<td class="cell2" style="line-height: 35px; width: 10%" >
<%=buf.fget("train_address", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address", 0))) %>
</td>
<td class="cell1" style="line-height: 35px; width: 10%">培训状态</td>
<td class="cell2" style="line-height: 35px; width: 10%" colspan="3">

@ -1,6 +1,8 @@
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -203,7 +205,7 @@ if(event.keyCode>=65 && event.keyCode<=99 || event.type=="change"){
<tr bgcolor="#FFFFFF">
<td class="cell1" style="line-height: 50px;">培训地点</td>
<td class="cell2" colspan="3">
<textarea rows="2" cols="43" name="trainAddress"><%=buf.fget("train_address",0) %></textarea>
<textarea rows="2" cols="43" name="trainAddress"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address",0))) %></textarea>
</td>
</tr>
</table>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<head>
@ -90,7 +92,7 @@ table{border-collapse:collapse; cellspacing="0px" cellpadding="0px"}
<%if(buf.fget("train_address",0).equals("")){ %>
未填写
<%}else{ %>
<%=buf.fget("train_address",0)%><%} %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("train_address",0)))%><%} %>
</td>
</tr>
</table>

@ -10,6 +10,8 @@
<%@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");
@ -590,7 +592,7 @@ String opee=(String)request.getAttribute("opeds");
</select><font color="#ff0000">*</font>
</td>
<td>
<font size="+1" color="green" ><b>使用人:<%=opee%>&nbsp;&nbsp;编号:<%=operateuseId%></b></font>
<font size="+1" color="green" ><b>使用人:<%=SM4.SM4Decrypt(Base64.decode(opee))%>&nbsp;&nbsp;编号:<%=operateuseId%></b></font>
</td>
</tr>
</table>

@ -11,6 +11,8 @@
<%@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");
@ -192,7 +194,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="cell2">
<%=buf.fget("recover_staffid", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("recover_staffid", 0))) %>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35">

@ -11,6 +11,9 @@
<%@page import="java.util.Date"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%@page import="java.util.Date"%>
<%@ page import="cn.org.bjca.chaos.jcajce.provider.digest.Skein" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%
String secret="";
String purpose=(String)request.getAttribute("purpose");
@ -181,7 +184,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="cell2">
<input type="text" name="recoverStaffid" maxlength="12" value="<%=buf.fget("RECOVER_STAFFID", 0)%>" /><font color="#ff0000">*</font>
<input type="text" name="recoverStaffid" maxlength="12" value="<%=SM4.SM4Decrypt(Base64.decode(buf.fget("RECOVER_STAFFID", 0)))%>" /><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="30">

@ -1,5 +1,7 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -167,7 +169,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<span><%=buf.fget("RECOVER_DEPARTID",i)%></span>
<span><%=buf.fget("property_name",i) %></span>
<span><%=buf.fget("use_staffid",i) %></span>
<span><%=buf.fget("RECOVER_STAFFID",i)%></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("RECOVER_STAFFID",i)))%></span>
<span><%=buf.fget("USE_DATE",i) %></span>
<span width="8px">
<a href="javascript:check('PropertyUseEditDetail','<%=tempEmpid%>');"><img src="/images1/read_document.png" border="0"/></a></span>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -93,7 +95,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="td1">
<font color="gray" size=3><%=bufInfo.fget("recover_staffid", 0)%></font>
<font color="gray" size=3><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("recover_staffid", 0)))%></font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -93,7 +95,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">使用人员</td>
<td class="td1">
<font color="gray" size=3><%=bufInfo.fget("recover_staffid", 0)%></font>
<font color="gray" size=3><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("recover_staffid", 0)))%></font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -2,6 +2,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" />
@ -209,7 +211,7 @@ html { overflow-x:hidden; overflow-y:hidden; }
<span><%=buf.fget("use_staffid", i)%></span>
<span ><%=buf.fget("departname", i)%></span>
<span ><%=buf.fget("part", i)%></span>
<span><%=buf.fget("recover_staffid", 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;">&nbsp;
<a href="/servlet/PropertyUseManage?operate=showProperty&useId=<%=tempDeptid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>&nbsp;&nbsp;

@ -11,6 +11,8 @@
<%@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");
@ -230,7 +232,7 @@ table#csstable #bottomcss td{
<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="<%=buf.fget("TMANAME",0) %>"/><font color="#ff0000">*</font></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>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -56,7 +58,7 @@
<tr bgcolor="#FFFFFF">
<td class="cell1" height="30" valign="middle">网络名称</td>
<td class="cell2" height="30" valign="middle">
<font size=2><%=bufInfo.fget("TMANAME",0) %></font>
<font size=2><%=SM4.SM4Decrypt(Base64.decode(bufInfo.fget("TMANAME",0))) %></font>
</td>
<td class="cell1" height="30" valign="middle">密级</td>
<td class="cell2" height="30" valign="middle">

@ -1,4 +1,6 @@
<%@page import="com.zky.para.Para"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@include file="/auth.jsp"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
@ -195,7 +197,7 @@ function selectChange(i)
<span style="text-align: center;width:2px;"><input type="checkbox" name="Infos" value="<%=buf.fget("indenture_id",i)%>"></span>
<span><%=buf.fget("indenture_id",i)%></span>
<span><%if(tempstate.equals("注销")){ %><font color="red"><%=tempstate%></font><%} else{%><font color="green"><%=tempstate%></font><%} %></span>
<span><%=buf.fget("indenture_name",i)%></span>
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("indenture_name",i)))%></span>
<span><%=buf.fget("indenture_address",i)%></span>
<span><%=buf.fget("indenture_phone",i)%></span>
<span><%=buf.fget("indenture_mobile",i)%></span>

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -117,7 +119,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">维修单位名称</td>
<td class="cell2">
<input type="text" value="<%=indentureBuf.fget("indenture_name",0) %>" name="indentureName" maxlength="20"/> <font color="#ff0000">*</font>
<input type="text" value="<%=SM4.SM4Decrypt(Base64.decode(indentureBuf.fget("indenture_name",0))) %>" name="indentureName" maxlength="20"/> <font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">

@ -1,5 +1,7 @@
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
@ -62,7 +64,7 @@ table#csstable #bottomcss td{
</td>
<td class="cell1">维修单位名称</td>
<td class="cell2">
<%=buf.fget("indenture_name", 0) %>
<%=SM4.SM4Decrypt(Base64.decode(buf.fget("indenture_name", 0))) %>
</td>
</tr>
<tr bgcolor="#FFFFFF">

Loading…
Cancel
Save