Commit 1088566a by chang_chao@founder.com.cn

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/main/java/com/founder/login/controller/LoginController.java
parents 5a158d83 f50236fe
......@@ -164,8 +164,11 @@ public class TbXwRycjController {
@RequestMapping("/toAddRyxx")
@ResponseBody
public String toAddRyxx(Model model){
public String toAddRyxx(Model model,HttpServletRequest request){
AutoTbStRy xyrC = new AutoTbStRy();
User user = (User)request.getSession().getAttribute("User");
model.addAttribute("username",user.getUsername());
model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0");
return "rygl/addryxx.html";
......@@ -348,28 +351,38 @@ public class TbXwRycjController {
File filejia1 = new File(filePath+"/"+rybhstr+"1.jpg");
if (filejia1.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"1.jpg");
insPic2(zpBase64,rybhstr,"1");
xyrC.setEdzzpStr64(zpBase64);
xyrC.setEdzzplj("static/img"+savePath+"/"+rybhstr+"1.jpg");
xyrC.setEDZZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia2 = new File(filePath+"/"+rybhstr+"2.jpg");
if (filejia2.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"2.jpg");
insPic2(zpBase64,rybhstr,"2");
xyrC.setZmzpStr64(zpBase64);
xyrC.setZmzplj("static/img"+savePath+"/"+rybhstr+"2.jpg");
xyrC.setZMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia3 = new File(filePath+"/"+rybhstr+"3.jpg");
if (filejia3.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"3.jpg");
insPic2(zpBase64,rybhstr,"3");
xyrC.setCmzpStr64(zpBase64);
xyrC.setCmzplj("static/img"+savePath+"/"+rybhstr+"3.jpg");
xyrC.setCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia4 = new File(filePath+"/"+rybhstr+"4.jpg");
if (filejia4.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"4.jpg");
insPic2(zpBase64,rybhstr,"4");
xyrC.setYcmzpStr64(zpBase64);
xyrC.setYcmzplj("static/img"+savePath+"/"+rybhstr+"4.jpg");
xyrC.setYCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
User user = (User)request.getSession().getAttribute("User");
model.addAttribute("username",user.getUsername());
model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0");
return "rygl/addryxx.html";
......@@ -436,8 +449,6 @@ public class TbXwRycjController {
String rybhstr = xyrC.getRybh();
String savePath = "/personphoto/"+ rybhstr.substring(rybhstr.length() - 10, rybhstr.length() - 4)+ "/" + rybhstr.substring(rybhstr.length() - 3, rybhstr.length());
ServletContext context = request.getSession() .getServletContext();
//String filePath = context.getRealPath(savePath);
//filePath = filePath.substring(0,filePath.indexOf("\\"))+savePath;
Param param = paramService.getParamById("0050");
String zplj = param.getParamvalue();
String filePath = zplj;
......@@ -445,28 +456,37 @@ public class TbXwRycjController {
File filejia1 = new File(filePath+"/"+rybhstr+"1.jpg");
if (filejia1.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"1.jpg");
insPic2(zpBase64,rybhstr,"1");
xyrC.setEdzzpStr64(zpBase64);
xyrC.setEdzzplj("static/img"+savePath+"/"+rybhstr+"1.jpg");
xyrC.setEDZZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia2 = new File(filePath+"/"+rybhstr+"2.jpg");
if (filejia2.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"2.jpg");
insPic2(zpBase64,rybhstr,"2");
xyrC.setZmzpStr64(zpBase64);
xyrC.setZmzplj("static/img"+savePath+"/"+rybhstr+"2.jpg");
xyrC.setZMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia3 = new File(filePath+"/"+rybhstr+"3.jpg");
if (filejia3.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"3.jpg");
insPic2(zpBase64,rybhstr,"3");
xyrC.setCmzpStr64(zpBase64);
xyrC.setCmzplj("static/img"+savePath+"/"+rybhstr+"3.jpg");
xyrC.setCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia4 = new File(filePath+"/"+rybhstr+"4.jpg");
if (filejia4.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"4.jpg");
insPic2(zpBase64,rybhstr,"4");
xyrC.setYcmzpStr64(zpBase64);
xyrC.setYcmzplj("static/img"+savePath+"/"+rybhstr+"4.jpg");
xyrC.setYCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
model.addAttribute("username",user.getUsername());
model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","1");
return "rygl/addryxx.html";
......@@ -587,27 +607,37 @@ public class TbXwRycjController {
File filejia1 = new File(filePath+"/"+rybhstr+"1.jpg");
if (filejia1.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"1.jpg");
insPic2(zpBase64,rybhstr,"1");
xyrC.setEdzzpStr64(zpBase64);
xyrC.setEdzzplj("static/img"+savePath+"/"+rybhstr+"1.jpg");
xyrC.setEDZZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia2 = new File(filePath+"/"+rybhstr+"2.jpg");
if (filejia2.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"2.jpg");
insPic2(zpBase64,rybhstr,"2");
xyrC.setZmzpStr64(zpBase64);
xyrC.setZmzplj("static/img"+savePath+"/"+rybhstr+"2.jpg");
xyrC.setZMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia3 = new File(filePath+"/"+rybhstr+"3.jpg");
if (filejia3.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"3.jpg");
insPic2(zpBase64,rybhstr,"3");
xyrC.setCmzpStr64(zpBase64);
xyrC.setCmzplj("static/img"+savePath+"/"+rybhstr+"3.jpg");
xyrC.setCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia4 = new File(filePath+"/"+rybhstr+"4.jpg");
if (filejia4.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"4.jpg");
insPic2(zpBase64,rybhstr,"4");
xyrC.setYcmzpStr64(zpBase64);
xyrC.setYcmzplj("static/img"+savePath+"/"+rybhstr+"4.jpg");
xyrC.setYCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
model.addAttribute("username",user.getUsername());
model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","1");
return "rygl/addryxx.html";
......@@ -626,9 +656,6 @@ public class TbXwRycjController {
ServletContext context = request.getSession()
.getServletContext();
String savePathS = "/personphoto";
// String filePathS = context.getRealPath(savePathS);
//filePathS = filePathS.substring(0,filePathS.indexOf("\\"))+savePathS;
//String filePathS = "C:/Oracle/Middleware/user_projects/domains/XTBA_domain/autodeploy/XZZYXT/upload";//株洲人像保存路径
String filePathS = zplj;
filePathS = filePathS+savePathS;
File filejiaS = new File(filePathS); // 如果文件夹不存在则创建
......@@ -638,8 +665,6 @@ public class TbXwRycjController {
String savePathNY = "/personphoto/"
+ rybh.substring(rybh.length() - 10, rybh.length() - 4);
//String filePathNY = context.getRealPath(savePathNY);
//filePathNY = filePathNY.substring(0,filePathNY.indexOf("\\"))+savePathNY;
String filePathNY = zplj;
filePathNY = filePathNY+savePathNY;
File filejiaNY = new File(filePathNY); // 如果文件夹不存在则创建
......@@ -650,8 +675,6 @@ public class TbXwRycjController {
String savePath = "/personphoto/"
+ rybh.substring(rybh.length() - 10, rybh.length() - 4)
+ "/" + rybh.substring(rybh.length() - 3, rybh.length());
//String filePath = context.getRealPath(savePath);
//filePath = filePath.substring(0,filePath.indexOf("\\"))+savePath;
String filePath = zplj;
filePath = filePath+savePath;
File filejia = new File(filePath); // 如果文件夹不存在则创建
......@@ -707,6 +730,46 @@ public class TbXwRycjController {
}
// 图片下载
public String insPic2(String R_EDZZP64, String rybh, String zpbw) {
String fileName = rybh + zpbw + ".jpg";
try {
Param param = paramService.getParamById("0051");
String zplj = param.getParamvalue();
String savePathS = "/WEB-INF/classes/static/img/personphoto";
String filePathS = zplj;
filePathS = filePathS + savePathS;
File filejiaS = new File(filePathS); // 如果文件夹不存在则创建
if (!filejiaS.exists()) {
filejiaS.mkdir();
}
String savePathNY = "/WEB-INF/classes/static/img/personphoto/"
+ rybh.substring(rybh.length() - 10, rybh.length() - 4);
String filePathNY = zplj;
filePathNY = filePathNY + savePathNY;
File filejiaNY = new File(filePathNY); // 如果文件夹不存在则创建
if (!filejiaNY.exists()) {
filejiaNY.mkdir();
}
String savePath = "/WEB-INF/classes/static/img/personphoto/"
+ rybh.substring(rybh.length() - 10, rybh.length() - 4)
+ "/" + rybh.substring(rybh.length() - 3, rybh.length());
String filePath = zplj;
filePath = filePath + savePath;
File filejia = new File(filePath); // 如果文件夹不存在则创建
if (!filejia.exists()) {
filejia.mkdir();
}
GenerateImage(R_EDZZP64, filePath + "/" + fileName);
} catch (Exception e) {
return "0";
} finally {
}
return "1";
}
public byte[] getByte(File file) throws Exception {
byte[] bytes = null;
if (file != null) {
......
......@@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>人员信息采集</title>
<object id="expinfo" name="expinfo" classid="clsid:843423EB-8790-431E-AC0B-F74A874DC9CB" width=100 height=100 align=center hspace=0 vspace=0 > </object><!-- 陕西手机 -->
<object id="OpDriver" classid="clsid:EB3C46F2-9E76-4DF3-9960-0E067A70F140" width="0" height="0"></object><!-- 上海乐顾 -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
......@@ -297,6 +299,45 @@
document.frminput.submit();
}
function addRyzpimg() {//初始化数据
var FileReader = window.FileReader;
if (FileReader) {//chrome浏览器处理
var edzzpStr64 = $("#edzzpStr64").val();
if(edzzpStr64!=null&&edzzpStr64!=""){
$("#imghead1").attr("src","data:image/gif;base64,"+edzzpStr64);
}
var zmzpStr64 = $("#zmzpStr64").val();
if(zmzpStr64!=null&&zmzpStr64!=""){
$("#imghead2").attr("src","data:image/gif;base64,"+zmzpStr64);
}
var cmzpStr64 = $("#cmzpStr64").val();
if(cmzpStr64!=null&&cmzpStr64!=""){
$("#imghead3").attr("src","data:image/gif;base64,"+cmzpStr64);
}
var ycmzpStr64 = $("#ycmzpStr64").val();
if(ycmzpStr64!=null&&ycmzpStr64!=""){
$("#imghead4").attr("src","data:image/gif;base64,"+ycmzpStr64);
}
}else {//IE等其他浏览器处理
var edzzplj = $("#edzzplj").val();
if(edzzplj!=null&&edzzplj!=""){
$("#imghead1").attr("src",edzzplj);
}
var zmzplj = $("#zmzplj").val();
if(zmzplj!=null&&zmzplj!=""){
$("#imghead2").attr("src",zmzplj);
}
var cmzplj = $("#cmzplj").val();
if(cmzplj!=null&&cmzplj!=""){
$("#imghead3").attr("src",cmzplj);
}
var ycmzplj = $("#ycmzplj").val();
if(ycmzplj!=null&&ycmzplj!=""){
$("#imghead4").attr("src",ycmzplj);
}
}
}
function editData(){//初始化数据
......@@ -304,22 +345,6 @@
if(saveflag=="1"){
alert("保存成功!");
}
var edzzpStr64 = $("#edzzpStr64").val();
if(edzzpStr64!=null&&edzzpStr64!=""){
$("#imghead1").attr("src","data:image/gif;base64,"+edzzpStr64);
}
var zmzpStr64 = $("#zmzpStr64").val();
if(zmzpStr64!=null&&zmzpStr64!=""){
$("#imghead2").attr("src","data:image/gif;base64,"+zmzpStr64);
}
var cmzpStr64 = $("#cmzpStr64").val();
if(cmzpStr64!=null&&cmzpStr64!=""){
$("#imghead3").attr("src","data:image/gif;base64,"+cmzpStr64);
}
var ycmzpStr64 = $("#ycmzpStr64").val();
if(ycmzpStr64!=null&&ycmzpStr64!=""){
$("#imghead4").attr("src","data:image/gif;base64,"+ycmzpStr64);
}
$("#cyzjdm").combobox("setValue",$("#cyzjdmStr").val());
$("#csrqQsrqStr").datebox("setValue",$("#csrqQsrq").val());
$("#zhsjStr").datebox("setValue",$("#zhsj").val());
......@@ -342,7 +367,7 @@
$("#tbbjms").val($("#tbbjmsStr").val());
$("#rqttzms").val($("#rqttzmsStr").val());
$("#jl").val($("#jlStr").val());
$("#wffzjlms").val($("#wffzjlmsStr").val());
$("#wffzjlms").val($("#jyaq").val());
$("#daztdm").combobox("setValue",$("#daztdmStr").val());
$("#zhddqh").combotree("setValue",$("#zhddqhStr").val());
......@@ -363,6 +388,7 @@
$("#lrdwdm").val(codeVal);
codeVal=codeFormatter($("#zwcjdwdmStr").val(),"CODE_UNIT");
$("#zwcjdwdm").val(codeVal);
addRyzpimg();
setCodeTexts();
}
function setCodeText(id,code,type){
......@@ -549,18 +575,18 @@
}
}
}
reg = /^[P]{1}[0-9]{22}$/;
var szzwbh = $("#szzwbh").val().replace(/(^\s*)|(\s*$)/g, "");
if($("#szzwbh").val()!=null&&$("#szzwbh").val()!=""&&reg.test(szzwbh)!=true){
alert("指纹编号必须为P开头加上数字的23位编码!","提示");
return -1;
}
reg = /^[P]{1}[0-9]{22}$/;
var dnabh = $("#dnabh").val().replace(/(^\s*)|(\s*$)/g, "");
if($("#dnabh").val()!=null&&$("#dnabh").val()!=""&&reg.test(dnabh)!=true){
alert("DNA编号必须为P开头加上数字的23位编码!","提示");
return -1;
}
///reg = /^[P]{1}[0-9]{22}$/;
//var szzwbh = $("#szzwbh").val().replace(/(^\s*)|(\s*$)/g, "");
//if($("#szzwbh").val()!=null&&$("#szzwbh").val()!=""&&reg.test(szzwbh)!=true){
// alert("指纹编号必须为P开头加上数字的23位编码!","提示");
// return -1;
//}
//reg = /^[P]{1}[0-9]{22}$/;
//var dnabh = $("#dnabh").val().replace(/(^\s*)|(\s*$)/g, "");
//if($("#dnabh").val()!=null&&$("#dnabh").val()!=""&&reg.test(dnabh)!=true){
// alert("DNA编号必须为P开头加上数字的23位编码!","提示");
// return -1;
//}
if($("#zhddxz").val()!=null&&$("#zhddxz").val().length>60){
alert("抓获详址长度过长!","提示");
return -1;
......@@ -958,105 +984,123 @@
}
}
/**
*西藏笔迹、声纹、人像对接开始
*renzw
**/
var myAfisBjcj ;
function getBjPicObj()
{
try
{
myAfisBjcj =new ActiveXObject("HLChirography.Document");
}
catch(e)
{
//alert(e.message);
}
}
function saveBiCj(){
var rybh=$("#rybh").val();
var bjcjzpbh=$("#bjcjzpbh").val();
var str = "";
getBjPicObj();
str = myAfisBjcj.GetOneChirographyForWeb(rybh);
if(str != "" && str != "Fail"){
var BJCJZP64=str;
$.ajax({
url:"saveBiJiPhoto.action",
type:"POST",
data:{"BJCJZP64" : BJCJZP64,
"rybh":rybh,
"bjcjzpbh":bjcjzpbh
},
dataType:"json",
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("初始化程序异常!","提示");
},
success:function(data){
alert("笔迹图片保存成功!","提示");
function sjcj(){
var rybh = $("#rybh").val();
var xm = $("#xm").val();
var zjhm = $("#zjhm").val();
var lxdm = $("#lxdm").val();
var salb = $("#ajlbdm").val();
var jh = $("#username").val();
var jyszzzjgdm = $("#unitcode").val();
var bmch = $("#bmch").val();
var zz = $("#xzzXzqhdm").val();
var gzdw = $("#fwcs").val();
var hjxx = $("#hjdzXzqhdm").val();
if (lxdm == null || lxdm == "") {
lxdm = "0";
}
var sj_str = rybh + "#" + xm + "#" + zjhm + "#" + lxdm;
var objDriver = document.getElementById("OpDriver");
if (objDriver.object == null) {
//alert("本机未安装乐顾手机采集控件!");
try{
var obj = new ActiveXObject("KNMFLauncherX.RunAdapter.1");
if (obj != null){
//obj.RunCollector(rybh);
if(AtlDemoObj.hasOwnProperty('RunCollector2')){
obj.RunCollector2(jh,jh,jyszzzjgdm,xm,zjhm,rybh,lxdm,getNowFormatDate());
}else {
alert("请下载最新版一键通安装。下载地址ftp://10.142.16.170找到文件夹'金诺'下载各地市对应的一键通 ,重新安装即可。如有问题请添加微信18521334973咨询。");
}
}
});
}
}
function openRxSc(){
var rybh=$("#rybh").val();
var ZMZPBASE64=$("#ZMZPBASE64").val();
if(ZMZPBASE64 != "" && rybh != ""){
$.ajax({
url:"callZmzpToRxxt.action",
type:"POST",
data:{"ZMZPBASE64" : ZMZPBASE64,
"rybh" : rybh,
"xm" : $("#xm").val(),
"zjhm" : $("#zjhm").val(),
"xbdm" : $("#xbdm").val(),
"mzdm" : $("#mzdm").val(),
"hjdzXzqhdm" : $("#hjdzXzqhdm").val(),
"zmzpxxbh" : $("#zmzpxxbh").val()
},
dataType:"json",
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("人像比对图片上传异常!","提示");
},
success:function(data){
alert("人像比对图片上传成功!","提示");
}catch (e){
//alert("本机没有安装手机信息采集程序!");
try{
var ocxObj = new ActiveXObject("XT_PHONECOLLECT.Document");
if (ocxObj != null&&ocxObj !=undefined){
var inParam = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" +
"<RYXX><RYBH>"+rybh+"</RYBH><XM>"+xm+"</XM><SFZH>"+zjhm+"</SFZH><SALB>"+salb+"</SALB><SJHM>"+lxdm+"</SJHM><JH>"+jh+"</JH><JYSZZZJGDM>"+jyszzzjgdm+"</JYSZZZJGDM><BMCH>"+bmch+"</BMCH><ZZ>"+zz+"</ZZ><GZDW>"+gzdw+"</GZDW><HJZZ>"+hjxx+"</HJZZ></RYXX>";
//alert(inParam);
var str = ocxObj.StartupSJCJ(inParam);
} else{
$.ajax({
url:"http://127.0.0.1:1500/Service/?param="+rybh+","+xm+","+zjhm+","+lxdm,//此处换成你的服务端地址
type:"Post",
data:{},
dataType:"jsonp",//jsonp 实现跨域
jsonpCallback:"fun",//服务器返回执行的方法名
success:function (data) {
alert("采集程序出错!处理方法:1、IE添加信任站点;2、自定义级别中ActiveX控件和插件全部选择启用;3、注册相应手机厂商采集控件;4、安装相应手机厂商采集软件!");
},
error:function (err) {
alert("采集程序出错!处理方法:1、IE添加信任站点;2、自定义级别中ActiveX控件和插件全部选择启用;3、注册相应手机厂商采集控件;4、安装相应手机厂商采集软件!");
}
});
}
}catch (e){
$.ajax({
url:"http://127.0.0.1:1500/Service/?param="+rybh+","+xm+","+zjhm+","+lxdm,//此处换成你的服务端地址
type:"Post",
data:{},
dataType:"jsonp",//jsonp 实现跨域
jsonpCallback:"fun",//服务器返回执行的方法名
success:function (data) {
alert("采集程序出错!处理方法:1、IE添加信任站点;2、自定义级别中ActiveX控件和插件全部选择启用;3、注册相应手机厂商采集控件;4、安装相应手机厂商采集软件!");
},
error:function (err) {
alert("采集程序出错!处理方法:1、IE添加信任站点;2、自定义级别中ActiveX控件和插件全部选择启用;3、注册相应手机厂商采集控件;4、安装相应手机厂商采集软件!");
}
});
}
});
}else{
alert("请先采集人员正面照片!","提示");
}
} else {
lgsjcj();
}
}
function openSwCj(){
var str = "audio-capture:{"
+"'PersonNum':'"+$("#rybh").val()+"'"
+",'Name':'"+$("#xm").val()+"'"
+",'CollectorName':'"+$("#zwcjr").val()+"'"
+",'IdNumber':'"+$("#zjhm").val()+"'"
+",'GenderNo':'"+$("#xbdm").val()+"'"
+",'Phone':'"+$("#lxdm").val()+"'"
+",'BirthAddrNo':'"+$("#csdXzqhdm").val()+"'"
+",'BirthAddrDesc':'"+$("#csdDzmc").val()+"'"
+",'ResidenceAddrNo':'"+$("#xzzXzqhdm").val()+"'"
+",'ResidenceAddrDesc':'"+$("#xzzDzmc").val()+"'"
+",'NationsNo':'"+$("#mzdm").val()+"'"
+",'CaseTypeNos':''"
+"}";//长度最多400,超过会调用不了
//alert(str);
window.location.href = str;
}
function zljc(){
alert($("#R_EDZZP64").val());
var rybh = document.getElementById("rybh").value;
var szzwbh = document.getElementById("szzwbh").value;
if(document.getElementById("szzwbh").value==""){
alert("尚未采集指纹!","提示");
}else{
window.open("/toZljc?rybh="+rybh+"&szzwbh="+szzwbh,'_blank');
function lgsjcj() {
var objDriver = document.getElementById("OpDriver");
if (objDriver.object == null) {
alert("OpDriver插件未安装!");
return;
} else {
//alert("已检测到OpDriver插件!");
}
var rybh = $("#rybh").val();
var OpRequest = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><RYXX><RYBH>"
+ rybh + "</RYBH></RYXX>";
alert(OpRequest);
try {
var ret = objDriver.OpDriver(OpRequest);
if (ret == 0) {
//txtSend.value = objDriver.OpResponse;
alert("操作成功!" + objDriver.OpResponse);
} else {
alert("操作失败!错误码为:" + ret);
}
} catch (e) {
alert(e.message);
}
}
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var seperator2 = ":";
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
+ " " + date.getHours() + seperator2 + date.getMinutes()
+ seperator2 + date.getSeconds();
return currentdate;
}
</script>
</head>
......@@ -1069,6 +1113,8 @@
</div>
<form action="" name="frminput" method="post" enctype="multipart/form-data">
<input type="hidden" id="flag" name="flag" th:value="1"/>
<input type="hidden" id="username" th:value="${username}"/>
<input type="hidden" id="unitcode" th:value="${unitcode}"/>
<input type="hidden" id="saveflag" name="saveflag" th:value="${saveflag}"/>
<!--<input type="hidden" id="rysxstr" name="rysxstr" th:value="${ryxx.rysx}"/>-->
<input type="hidden" id="edzzpflag" name="edzzpflag" th:value="1"/>
......@@ -1081,6 +1127,10 @@
<input type="hidden" name="CMZPL64" id="CMZPL64" th:value="${ryxx.CMZPL64}"/>
<input type="hidden" name="YCMZPL64" id="YCMZPL64" th:value="${ryxx.YCMZPL64}"/>
<input type="hidden" name="YCMZPL64" id="EDZZPL64" th:value="${ryxx.EDZZPL64}"/>
<input type="hidden" name="zmzplj" id="zmzplj" th:value="${ryxx.zmzplj}"/>
<input type="hidden" name="cmzplj" id="cmzplj" th:value="${ryxx.cmzplj}"/>
<input type="hidden" name="ycmzplj" id="ycmzplj" th:value="${ryxx.ycmzplj}"/>
<input type="hidden" name="edzzplj" id="edzzplj" th:value="${ryxx.edzzplj}"/>
<input type="hidden" name="EDZZPBASE64" id="EDZZPBASE64" th:value="${EDZZPBASE64}"/>
<input type="hidden" name="ZMZPBASE64" id="ZMZPBASE64" th:value="${ZMZPBASE64}"/>
<input type="hidden" name="CMZPBASE64" id="CMZPBASE64" th:value="${CMZPBASE64}"/>
......@@ -1444,6 +1494,7 @@
<span class="input-group-addon">违法犯罪描述</span>
<textarea id="wffzjlms" name="wffzjlms" class="dhwb" rows="" cols="" style="width: 102%;"></textarea>
<input type="hidden" id="wffzjlmsStr" th:value="${ryxx.wffzjlms}"/>
<input type="hidden" id="jyaq" th:value="${ryxx.jyaq}"/>
</div>
<div class="input-group l1 br">
<span class="input-group-addon" style="width:32%; height:32px;">&nbsp;&nbsp;&nbsp;是否吸毒&nbsp;&nbsp;&nbsp;</span>
......@@ -1567,12 +1618,12 @@
<li><a href="javascript:scanWH(document.frminput)"><i class="fa fa-street-view"></i> 采集身高体重</a></li>
<li><a href="javascript:getStatus()"><i class="fa fa-hand-paper-o"></i> 捺印指纹采集</a></li>
<li><a href="javascript:showScan()"><i class="fa fa-barcode"></i> 指纹卡扫描</a></li>
<li><a href="javascript:openSwCj()"><i class="fa fa-address-card-o"></i> 采集声纹</a></li>
<li><a href="javascript:prtzw()"><i class="fa fa-print"></i> 打印指纹卡</a></li>
<li><a href="javascript:sjcj()"><i class="fa fa-print"></i> 手机信息采集</a></li>
<!-- <li><a href="javascript:openSwCj()"><i class="fa fa-address-card-o"></i> 采集声纹</a></li>
<li><a href="javascript:saveBiCj()"><i class="fa fa-address-card-o"></i> 采集笔迹</a></li>
<li><a href="javascript:window.open('http://10.188.45.120:8080/FARS')"><i class="fa fa-address-card-o"></i> 人像比对</a></li>
<li><a href="javascript:prtzw()"><i class="fa fa-print"></i> 打印指纹卡</a></li>
<li><a href="javascript:zljc()"><i class="fa fa-print"></i> 质量检查</a></li>
<!-- <li><a href="javascript:void(0)"><i class="fa fa-address-card-o"></i> 人员使用其他身份信息</a></li>
<li><a href="javascript:void(0)"><i class="fa fa-address-card-o"></i> 人员使用其他身份信息</a></li>
<li><a href="javascript:void(0)"><i class="fa fa-address-card-o"></i> 关系人信息</a></li>
<li><a href="javascript:void(0)"><i class="fa fa-address-card-o"></i> 人员携带移动通讯设备</a></li>
<li><a href="javascript:void(0)"><i class="fa fa-address-card-o"></i> 人员驾电动车/机动车信息</a></li>
......
......@@ -691,26 +691,6 @@
}
$(function(){//初始化数据
var edzzpStr64 = $("#edzzpStr64").val();
if(edzzpStr64!=null&&edzzpStr64!=""){
$("#edzzp").attr("src","data:image/gif;base64,"+edzzpStr64);
$("#edzzp").attr("layer-src","data:image/gif;base64,"+edzzpStr64);
}
var zmzpStr64 = $("#zmzpStr64").val();
if(zmzpStr64!=null&&zmzpStr64!=""){
$("#zmzp").attr("src","data:image/gif;base64,"+zmzpStr64);
$("#zmzp").attr("layer-src","data:image/gif;base64,"+zmzpStr64);
}
var cmzpStr64 = $("#cmzpStr64").val();
if(cmzpStr64!=null&&cmzpStr64!=""){
$("#cmzp").attr("src","data:image/gif;base64,"+cmzpStr64);
$("#cmzp").attr("layer-src","data:image/gif;base64,"+cmzpStr64);
}
var ycmzpStr64 = $("#ycmzpStr64").val();
if(ycmzpStr64!=null&&ycmzpStr64!=""){
$("#ycmzp").attr("src","data:image/gif;base64,"+ycmzpStr64);
$("#ycmzp").attr("layer-src","data:image/gif;base64,"+ycmzpStr64);
}
$("#xm").html($("#xmStr").val());
$("#cym").html($("#cymStr").val());
$("#csrqQsrq").html($("#csrqQsrqStr").val());
......@@ -743,6 +723,11 @@
$("#zwcjr").html(codeFormatters($("#zwcjrStr").val(),"CODE_JY"));
$("#ajlbdm").html(codeFormatters($("#ajlbdmStr").val(),"CODE_AJLB"));
getRxImage($("#rybhStr").val(),$("#zjhmStr").val(),'1','edzzp');
getRxImage($("#rybhStr").val(),$("#zjhmStr").val(),'2','zmzp');
getRxImage($("#rybhStr").val(),$("#zjhmStr").val(),'3','cmzp');
getRxImage($("#rybhStr").val(),$("#zjhmStr").val(),'4','ycmzp');
getGdImage($("#szzwbhStr").val(),"1");
getGdImage($("#szzwbhStr").val(),"2");
getGdImage($("#szzwbhStr").val(),"3");
......@@ -950,6 +935,26 @@
}
});
}
function getRxImage(rybh,zjhm,zpbw,rst){
$.ajax({
url:"/getRyzpimages",
data:{"rybh":rybh,"zjhm":zjhm,"zpbw":zpbw},
async:false,
type:"post",
dataType:"text",
success:function(data){
if(data!=null&&data!=""){
$("#"+rst).attr("src","data:image/gif;base64,"+data);
$("#"+rst).attr("layer-src","data:image/gif;base64,"+data);
}
},
error:function(e){
console.log("error="+JSON.stringify(e));
}
});
}
</script>
</body>
</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