Commit fa3f7b82 by mayunfei

Merge remote-tracking branch 'origin/master_sc' into master_sc

parents e1b4303b 610ef799
...@@ -18,7 +18,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter { ...@@ -18,7 +18,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
// //
registry.addInterceptor(InterceptorConfig). registry.addInterceptor(InterceptorConfig).
addPathPatterns("/**"). addPathPatterns("/**").
excludePathPatterns("/refreshCodeCache","/loginFail","/login","/toGetZczlListYth","/queryAllzTreeData","/queryUnitCode","/queryTypeCode","/queryZTreeDataByName"); excludePathPatterns("/refreshCodeCache","/loginFail","/login","/toGetZczlListYth","/queryAllzTreeData","/queryUnitCode","/queryTypeCode","/queryZTreeDataByName","/getZczlListImp","/zczlQsImp");
} }
@Override @Override
......
...@@ -113,6 +113,8 @@ public interface ZczlDao { ...@@ -113,6 +113,8 @@ public interface ZczlDao {
Integer toQueryBxqjsdzczlsForTotal(TbYwZczl tbYwZczl); Integer toQueryBxqjsdzczlsForTotal(TbYwZczl tbYwZczl);
List<TbYwZczlFp> toQueryBxqjsdzczlsQs(TbYwZczl tbYwZczl);
List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh); List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh);
TbYwZczlHb getFirstHbxxByFpbhForBlgc(String fpbh); TbYwZczlHb getFirstHbxxByFpbhForBlgc(String fpbh);
...@@ -200,4 +202,6 @@ public interface ZczlDao { ...@@ -200,4 +202,6 @@ public interface ZczlDao {
Integer toQueryBxqjsdzjzlsForTotal(TbYwZjZczl tbYwZjZczl); Integer toQueryBxqjsdzjzlsForTotal(TbYwZjZczl tbYwZjZczl);
List<TbYwZjZczl> getZjzlxxByHbbhFormZjzl(String hbbh); List<TbYwZjZczl> getZjzlxxByHbbhFormZjzl(String hbbh);
User getUserByIdCard(String identitycard);
} }
...@@ -108,6 +108,8 @@ public interface IZczlService { ...@@ -108,6 +108,8 @@ public interface IZczlService {
Integer toQueryBxqjsdzczlsForTotal(TbYwZczl tbYwZczl, String unitcode); Integer toQueryBxqjsdzczlsForTotal(TbYwZczl tbYwZczl, String unitcode);
List<TbYwZczlFp> toQueryBxqjsdzczlsQs(String zczlbh,String unitcode,String flag);
List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh); List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh);
TbYwZczlHb getFirstHbxxByFpbhForBlgc(String fpbh); TbYwZczlHb getFirstHbxxByFpbhForBlgc(String fpbh);
...@@ -185,4 +187,6 @@ public interface IZczlService { ...@@ -185,4 +187,6 @@ public interface IZczlService {
List<TbYwZjZczl> toQueryBxqjsdzjzls(TbYwZjZczl tbYwZjZczl, String unitcode); List<TbYwZjZczl> toQueryBxqjsdzjzls(TbYwZjZczl tbYwZjZczl, String unitcode);
List<TbYwZjZczl> getZjzlxxByHbbhFormZjzl(String hbbh); List<TbYwZjZczl> getZjzlxxByHbbhFormZjzl(String hbbh);
User getUserByIdCard(String identitycard);
} }
...@@ -1278,6 +1278,28 @@ public class ZczlService implements IZczlService { ...@@ -1278,6 +1278,28 @@ public class ZczlService implements IZczlService {
inString = inString+",'"+list.get(i)+"')"; inString = inString+",'"+list.get(i)+"')";
} }
}else{ }else{
if(i == list.size() -1 && i % 500 == 0){
inString = inString + "or fp.QSRGAJGDM in ('"+list.get(i)+"'";
}else if(i % 500 == 0){
inString = inString + "or fp.QSRGAJGDM in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
}
}
}
/*for(int i=0;i<list.size();i++){
if(i<500){
if(i==0){
inString = "('"+list.get(i)+"'";
}else if(i<499){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
}
}else{
if(i==500){ if(i==500){
inString = inString + "or fp.QSRGAJGDM in ('"+list.get(i)+"'"; inString = inString + "or fp.QSRGAJGDM in ('"+list.get(i)+"'";
}else if(i!=list.size()-1){ }else if(i!=list.size()-1){
...@@ -1287,7 +1309,7 @@ public class ZczlService implements IZczlService { ...@@ -1287,7 +1309,7 @@ public class ZczlService implements IZczlService {
} }
} }
} }*/
} }
m.put("inString",inString); m.put("inString",inString);
}else{ }else{
...@@ -1374,9 +1396,11 @@ public class ZczlService implements IZczlService { ...@@ -1374,9 +1396,11 @@ public class ZczlService implements IZczlService {
inString = inString+",'"+list.get(i)+"')"; inString = inString+",'"+list.get(i)+"')";
} }
}else{ }else{
if(i==500){ if(i == list.size() -1 && i % 500 == 0){
inString =inString + " or f.QSRGAJGDM in ('"+list.get(i)+"'"; inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if(i!=list.size()-1){ }else if(i % 500 == 0){
inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'"; inString = inString+",'"+list.get(i)+"'";
}else{ }else{
inString = inString+",'"+list.get(i)+"')"; inString = inString+",'"+list.get(i)+"')";
...@@ -1462,9 +1486,11 @@ public class ZczlService implements IZczlService { ...@@ -1462,9 +1486,11 @@ public class ZczlService implements IZczlService {
inString = inString+",'"+list.get(i)+"')"; inString = inString+",'"+list.get(i)+"')";
} }
}else{ }else{
if(i==500){ if(i == list.size() -1 && i % 500 == 0){
inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'"; inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if(i!=list.size()-1){ }else if(i % 500 == 0){
inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'"; inString = inString+",'"+list.get(i)+"'";
}else{ }else{
inString = inString+",'"+list.get(i)+"')"; inString = inString+",'"+list.get(i)+"')";
...@@ -1479,6 +1505,81 @@ public class ZczlService implements IZczlService { ...@@ -1479,6 +1505,81 @@ public class ZczlService implements IZczlService {
} }
@Override @Override
public List<TbYwZczlFp> toQueryBxqjsdzczlsQs(String zczlbh, String unitcode, String flag) {
TbYwZczl tbYwZczl = new TbYwZczl();
//根据用户单位代码,拿到其下属单位以及所有单位信息
String inString = null;
//通过单位代码拿到其下级的单位
List<String> list = new ArrayList<>();
list.add(unitcode);//添加本单位
List<String> xycxList = new ArrayList<>();//需要查询的单位
xycxList.add(unitcode);
boolean bool = true;//是否还存在子节点
//通过单位代码拿到其子节点
while(bool){
xycxList = zczlDao.getChilds(xycxList);
if(xycxList==null||xycxList.size()==0){
bool = false;//没有子节点
}else{
for(int i=0;i<xycxList.size();i++){
list.add(xycxList.get(i));
}
}
}
//oracle的in关键字中的元素不能超过1000
boolean oneIn = true;//是否只用一个in
if(list!=null&&list.size()>1000){
oneIn = false;
}
if(oneIn){
//遍历list,拼接单位的字符串
for(int i=0;i<list.size();i++){
//只有一个单位
if(i==0&&i==list.size()-1){
inString = "('"+list.get(i)+"')";
}else if(i==0){
inString = "('"+list.get(i)+"'";
}else if(i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
}
}
}else{
//遍历list,拼接单位的字符串
for(int i=0;i<list.size();i++){
if(i<500){
if(i==0){
inString = "('"+list.get(i)+"'";
}else if(i<499){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
}
}else{
if(i == list.size() -1 && i % 500 == 0){
inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if(i % 500 == 0){
inString = inString + "or f.QSRGAJGDM in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
}
}
}
}
tbYwZczl.setBxqdwdms(inString);
tbYwZczl.setUnitcode(unitcode);
tbYwZczl.setZlsfqs(flag);
tbYwZczl.setZczlbh(zczlbh);
return zczlDao.toQueryBxqjsdzczlsQs(tbYwZczl);
}
@Override
public List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh) { public List<TbYwZczlFp> getAllFpxxOrderByFpsj(String zczlbh) {
return zczlDao.getAllFpxxOrderByFpsj(zczlbh); return zczlDao.getAllFpxxOrderByFpsj(zczlbh);
} }
...@@ -2445,4 +2546,9 @@ public class ZczlService implements IZczlService { ...@@ -2445,4 +2546,9 @@ public class ZczlService implements IZczlService {
return zczlDao.getZjzlxxByHbbhFormZjzl(hbbh); return zczlDao.getZjzlxxByHbbhFormZjzl(hbbh);
} }
@Override
public User getUserByIdCard(String identitycard) {
return zczlDao.getUserByIdCard(identitycard);
}
} }
...@@ -1292,14 +1292,14 @@ ...@@ -1292,14 +1292,14 @@
</if> </if>
</if> </if>
<if test="sfbdw==0"> <if test="sfbdw==0">
<if test="userUnitcode!=null and userUnitcode!=''"> <!--<if test="userUnitcode!=null and userUnitcode!=''">
and fp.FPRGAJGDM = #{userUnitcode} and fp.FPRGAJGDM = #{userUnitcode}
</if> </if>
<if test="userUnitcode==null or userUnitcode==''"> <if test="userUnitcode==null or userUnitcode==''">
<if test="dadCodes!=null and dadCodes!=''"> <if test="dadCodes!=null and dadCodes!=''">
and fp.FPRGAJGDM in ${dadCodes} and fp.FPRGAJGDM in ${dadCodes}
</if> </if>
</if> </if>-->
<if test="inString!=null and inString!=''"> <if test="inString!=null and inString!=''">
and (fp.QSRGAJGDM in ${inString}) and (fp.QSRGAJGDM in ${inString})
</if> </if>
...@@ -1380,6 +1380,13 @@ ...@@ -1380,6 +1380,13 @@
<include refid="bxqjsdzczl-where"/> <include refid="bxqjsdzczl-where"/>
</select> </select>
<!-- 拿到我辖区的侦查指令信息 -->
<select id="toQueryBxqjsdzczlsQs" parameterType="com.founder.model.TbYwZczl" resultType="com.founder.model.TbYwZczlFp">
select * from TB_YW_ZCZL_FP f where 1=1
<if test="zczlbh !=null and zczlbh!=''"> and f.zczlbh = #{zczlbh, jdbcType=VARCHAR}</if>
and ((f.YFPBH is null and f.FPRGAJGDM = #{unitcode, jdbcType=VARCHAR}) or (f.QSRGAJGDM in ${bxqdwdms})) and f.xxscpdbz='0'
</select>
<!-- 查询所有-侦查指令统计需要显示的单位--> <!-- 查询所有-侦查指令统计需要显示的单位-->
<select id="getAllDwdms" parameterType="com.founder.model.TbYwZczl" resultType="com.founder.model.TbYwZczlTj"> <select id="getAllDwdms" parameterType="com.founder.model.TbYwZczl" resultType="com.founder.model.TbYwZczlTj">
select * from ( select * from (
...@@ -2717,4 +2724,16 @@ ...@@ -2717,4 +2724,16 @@
from TB_YW_ZJ_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0' and zczl.HBBH=#{hbbh} from TB_YW_ZJ_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0' and zczl.HBBH=#{hbbh}
</select> </select>
<select id="getUserByIdCard" parameterType="java.lang.String" resultType="com.founder.model.User">
select
USERNAME username,
TRUE_NAME truename,
TELEPHONE telephone,
UNITCODE unitcode,
UNITNAME unitname,
POLICEMANID policemanid,
IDENTITYCARD identitycard
from SYS_USER where identitycard = #{identitycard} and scbz='0'
</select>
</mapper> </mapper>
\ No newline at end of file
$(function(){ $(function(){
doQuery(); doQuery();
//相册层
layer.alert('更新内容:本辖区接收的侦察指令添加签收,回报情况展示。', {
title: false,
closeBtn: 0,
shadeClose: true,
area: ['500px', '120px'],
icon: 1,
btn: ['我明白了'],
skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则,去这里查阅
})
}) })
function getSpztColumn(row){ function getSpztColumn(row){
...@@ -28,13 +38,60 @@ function toZczlDetail(zczlbh){ ...@@ -28,13 +38,60 @@ function toZczlDetail(zczlbh){
window.open(url); window.open(url);
} }
//指令文号后拼接状态
function getZlwhzt(row){
var str = row.zlwh;
if(str!=null&&str!=""){
//存在分派信息显示签收数
if(row.zlfpgs!=null&&row.zlfpgs!=0&&row.zlfpgs!=""){
str = str + "&nbsp;&nbsp;<a onclick='qs_tk(this,event)' class=\"re_hqzt re_qs\">签:<span class=\"n_hq\">"+row.zlqsgs+"</span>/<span class=\"n_totle\">"+row.zlfpgs+"</span><div class=\"right_po\"><table><tr><th width=\"60%\">单位名称</th><th width=\"40%\">签收状态</th></tr>"+row.zlfpdwHtml+"</table></div></a>";
}
//存在回报信息显示回报数
if(row.zlqsgs!=null&&row.zlqsgs!=0&&row.zlqsgs!=""){
str = str + "&nbsp;&nbsp;<a onclick=\"toHbDetail('"+row.zczlbh+"')\" class=\"re_hqzt re_hb\">报:<span class=\"n_hq\">"+row.zlhbcs+"</span>/<span class=\"n_totle\">"+row.zlfpgs+"</span></a>";
}
}
return str;
}
/* 添加右侧弹出框 */
function qs_tk(el,event) {
window.top.aa(el,event);
// $('.right_po').dialog('open');
}
function aa(el,event) {
var top = $(el).offset().top;
var height = $(window).height();
var bottom = height - top;
var div_height = $(el).find('.right_po').height();
$('.right_po').hide();
if (div_height < bottom) {
$(el).find('.right_po').show();
} else {
$(el).find('.right_po').show().css("top", -div_height + 'px');
}
// 解决easyui相应元素设置overflow:hidden属性导致定位的弹窗溢出不显示问题--待定
$('.datagrid-body').css({'overflow':'visible','overflow-x':'visible'});
$('.datagrid-view2').css('overflow','visible');
$('.datagrid-view').css('overflow','visible');
$('.panel').css('overflow','visible');
$('.panel-body').css('overflow','visible');
event.stopPropagation();
}
//跳转我负责的侦查指令的回报详情界面
function toHbDetail(zczlbh){
var url = "/toHbDetail?sfwfzdzczl=1&sfwxqdZczl=1&zczlbh="+zczlbh;
window.open(url);
}
$(document).click(function (event) {
$('.right_po').slideUp(200);
});
var table_title = [ var table_title = [
{title:"操作",field:"cz",align:'center',width:'10%',formatter:function(val,row,index){ {title:"操作",field:"cz",align:'center',width:'10%',formatter:function(val,row,index){
return getCzColumn(row); return getCzColumn(row);
}}, }},
{title:"指令文号",field:"zlwh",align:'center',width:'20%',formatter : function(val,row,index){ {title:"指令文号",field:"zlwh",align:'center',width:'20%',formatter : function(val,row,index){
return row.zlwh ; return getZlwhzt(row) ;
}}, }},
{title:"业务类型",field:"ywlx_str",align:'center',width:'10%',formatter : function(val,row,index){ {title:"业务类型",field:"ywlx_str",align:'center',width:'10%',formatter : function(val,row,index){
return row.ywlx_str ; return row.ywlx_str ;
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
String ssw = user.getUnitcode().substring(2,4); String ssw = user.getUnitcode().substring(2,4);
//用户名 //用户名
String username = user.getUsername(); String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%> %>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
...@@ -216,6 +222,15 @@ ...@@ -216,6 +222,15 @@
<script type="text/javascript" src="/js/listBxqjsdzjzl.js"></script> <script type="text/javascript" src="/js/listBxqjsdzjzl.js"></script>
<script id="scripturlid" src="/common/js/checkurl.js?url=${perurl}" type="text/javascript"></script> <script id="scripturlid" src="/common/js/checkurl.js?url=${perurl}" type="text/javascript"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script> <script>
openCombotree('ywlx'); openCombotree('ywlx');
openCombotree('zllx'); openCombotree('zllx');
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="en"> <html lang="en">
<%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%>
<%
User user = new User();
user = (User)session.getAttribute("user");
//是否联络员
String sflly = (String)session.getAttribute("sflly");
//用户单位
String unitcode = user.getUnitcode();
//系统所属单位
String ssdw = user.getUnitcode().substring(0,2);
//用户单位三四位
String ssw = user.getUnitcode().substring(2,4);
//用户名
String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
...@@ -339,6 +359,14 @@ ...@@ -339,6 +359,14 @@
<!--- 日期时间--> <!--- 日期时间-->
<script type="text/javascript" src="/common/datepicker/WdatePicker.js"></script> <script type="text/javascript" src="/common/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="/common/datepicker/calendar.js"></script> <script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script> <script>
openCombotree('ywlx'); openCombotree('ywlx');
openCombotree('zllx'); openCombotree('zllx');
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
String ssw = user.getUnitcode().substring(2,4); String ssw = user.getUnitcode().substring(2,4);
//用户名 //用户名
String username = user.getUsername(); String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%> %>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
...@@ -254,6 +260,14 @@ ...@@ -254,6 +260,14 @@
<script type="text/javascript" src="/common/datepicker/calendar.js"></script> <script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<script type="text/javascript" src="/js/listWfzdzjzl.js"></script> <script type="text/javascript" src="/js/listWfzdzjzl.js"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script> <script>
openCombotree('ywlx'); openCombotree('ywlx');
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
String ssw = user.getUnitcode().substring(2,4); String ssw = user.getUnitcode().substring(2,4);
//用户名 //用户名
String username = user.getUsername(); String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%> %>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
...@@ -184,6 +190,15 @@ ...@@ -184,6 +190,15 @@
<script type="text/javascript" src="/js/listWzjdzczl.js"></script> <script type="text/javascript" src="/js/listWzjdzczl.js"></script>
<script id="scripturlid" src="/common/js/checkurl.js?url=${perurl}" type="text/javascript"></script> <script id="scripturlid" src="/common/js/checkurl.js?url=${perurl}" type="text/javascript"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script> <script>
openCombotree('ywlx'); openCombotree('ywlx');
openCombotree('zllx'); openCombotree('zllx');
......
...@@ -3,7 +3,26 @@ ...@@ -3,7 +3,26 @@
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html xmlns:th="http://www.thymeleaf.org"> <html xmlns:th="http://www.thymeleaf.org">
<%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%>
<%
User user = new User();
user = (User)session.getAttribute("user");
//是否联络员
String sflly = (String)session.getAttribute("sflly");
//用户单位
String unitcode = user.getUnitcode();
//系统所属单位
String ssdw = user.getUnitcode().substring(0,2);
//用户单位三四位
String ssw = user.getUnitcode().substring(2,4);
//用户名
String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
...@@ -425,6 +444,14 @@ ...@@ -425,6 +444,14 @@
<script src="/timeLine/js/jquery.eeyellow.Timeline.js" type="text/javascript"></script> <script src="/timeLine/js/jquery.eeyellow.Timeline.js" type="text/javascript"></script>
<script src="/layer/layer.js" type="text/javascript"></script> <script src="/layer/layer.js" type="text/javascript"></script>
<script src="/js/zlxq.js" type="text/javascript"></script> <script src="/js/zlxq.js" type="text/javascript"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="en"> <html lang="en">
<%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%>
<%
User user = new User();
user = (User)session.getAttribute("user");
//是否联络员
String sflly = (String)session.getAttribute("sflly");
//用户单位
String unitcode = user.getUnitcode();
//系统所属单位
String ssdw = user.getUnitcode().substring(0,2);
//用户单位三四位
String ssw = user.getUnitcode().substring(2,4);
//用户名
String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
...@@ -213,6 +233,14 @@ ...@@ -213,6 +233,14 @@
<!--- 日期时间--> <!--- 日期时间-->
<script type="text/javascript" src="/common/datepicker/WdatePicker.js"></script> <script type="text/javascript" src="/common/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="/common/datepicker/calendar.js"></script> <script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script> <script>
openCombotree('ywlx'); openCombotree('ywlx');
openCombotree('zllx'); openCombotree('zllx');
......
...@@ -3,7 +3,26 @@ ...@@ -3,7 +3,26 @@
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html xmlns:th="http://www.thymeleaf.org"> <html xmlns:th="http://www.thymeleaf.org">
<%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*,com.founder.model.*" pageEncoding="utf-8"%>
<%
User user = new User();
user = (User)session.getAttribute("user");
//是否联络员
String sflly = (String)session.getAttribute("sflly");
//用户单位
String unitcode = user.getUnitcode();
//系统所属单位
String ssdw = user.getUnitcode().substring(0,2);
//用户单位三四位
String ssw = user.getUnitcode().substring(2,4);
//用户名
String username = user.getUsername();
//真实姓名
String truename = user.getTrueName();
//警号
String policeId = user.getPolicemanid();
//证件号码
String identitycard = user.getIdentitycard();
%>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
...@@ -401,5 +420,13 @@ ...@@ -401,5 +420,13 @@
<script src="/timeLine/js/jquery.eeyellow.Timeline.js" type="text/javascript"></script> <script src="/timeLine/js/jquery.eeyellow.Timeline.js" type="text/javascript"></script>
<script src="/layer/layer.js" type="text/javascript"></script> <script src="/layer/layer.js" type="text/javascript"></script>
<script src="/js/zlxq.js" type="text/javascript"></script> <script src="/js/zlxq.js" type="text/javascript"></script>
<%--添加水印--%>
<script type="text/javascript" src="/common/js/common.js"></script>
<script type="text/javascript" src="/common/js/watermark.js"></script>
<script>
getIPs(function(ip){
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment