Commit 320bade3 by yangliang

增加万里红虹膜采集

parent 7c80c257
......@@ -176,7 +176,9 @@ public class HmCjController {
model.addObject("xm",request.getParameter("xm"));
model.addObject("gmsfhm",request.getParameter("gmsfhm"));
String sbcs = request.getParameter("sbcs");
if("3".equals(sbcs)){
if("2".equals(sbcs)){
model.setViewName("hmcj/wlh");
}else if("3".equals(sbcs)){
model.setViewName("hmcj/yskj");
}else if("5".equals(sbcs)){
model.setViewName("hmcj/shjh");
......
......@@ -61,6 +61,21 @@ function jsonp( options ) {
if(response.flgResult==0){
document.getElementById(leftid).src ="data:image/jpeg;base64," + response["hmzp_zy_zip"];
document.getElementById(rightid).src ="data:image/jpeg;base64," + response["hmzp_yy_zip"];
alert("右:"+response["hmzp_yy_zip"]);
document.getElementById("hmqsqkRight").value = "0";
document.getElementById("hmsjRight").value = response["hmzp_yy_zip"];
window.opener.document.getElementById("imghead22").src="data:image/jpeg;base64," + response["hmzp_yy_zip"];
$("#hmsjRight").val(response["hmzp_yy_zip"]);
$("#rightEye").attr("src","data:image/jpeg;base64," + response["hmzp_yy_zip"])
$("#rightSelect option[value='1']").prop("selected", true);
alert("左:"+response["hmzp_zy_zip"]);
document.getElementById("hmqsqkLeft").value = "0";
document.getElementById("hmsjLeft").value = response["hmzp_zy_zip"];
window.opener.document.getElementById("imghead21").src="data:image/jpeg;base64," + response["hmzp_zy_zip"];
$("#hmsjLeft").val(response["hmzp_zy_zip"]);
$("#leftEye").attr("src","data:image/jpeg;base64," + response["hmzp_zy_zip"])
$("#leftSelect option[value='1']").prop("selected", true);
irisData=response;
window.dispatchEvent(myEvent);
}else{
......@@ -79,6 +94,7 @@ function jsonp( options ) {
timerID = setInterval(function(){getLiveImage(leftid,rightid,setEye)}, 200);
}
function getIrisData(){
alert(irisData);
return irisData;
}
......@@ -93,6 +109,7 @@ function jsonp( options ) {
eye_right.src = "http://127.0.0.1:40315/getEyeLive?eyeType=1&t=" + Math.random();
}else if(setEye==2){
eye_left.src = "http://127.0.0.1:40315/getEyeLive?eyeType=2&t=" + Math.random();
}else{
eye_left.src = "http://127.0.0.1:40315/getEyeLive?eyeType=2&t=" + Math.random();
eye_right.src = "http://127.0.0.1:40315/getEyeLive?eyeType=1&t=" + Math.random();
......
......@@ -120,7 +120,7 @@
{{# } }}
</script>
<script type="text/html" id="ifsw">
 {{# if(d.ifzwcjy == '是'){ }}
 {{# if(d.ifswcjy == '是'){ }}
   <span class="layui-badge layui-bg-green"></span>
  {{# } else { }}
  <span class="layui-badge">×</span>
......
......@@ -125,7 +125,7 @@
{{# } }}
</script>
<script type="text/html" id="ifsw">
 {{# if(d.ifzwcjy == '是'){ }}
 {{# if(d.ifswcjy == '是'){ }}
   <span class="layui-badge layui-bg-green"></span>
  {{# } else { }}
  <span class="layui-badge">×</span>
......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="renderer" content="webkit">
<meta name="author" content="方正国际软件有限公司">
<title>虹膜采集</title>
<style type="text/css">
*{padding: 0; margin: 0; border: 0 none; list-style: none;}
body{background: #f5f5f5; font-family: "微软雅黑";}
#nav{ width: 100%; height: 64px; background-color: #FFFFFF; margin-bottom: 40px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); border-left: 1px solid rgba(0, 0, 0, 0.12); border-right: 1px solid rgba(0, 0, 0, 0.12);}
#nav li{ float: left;}
#nav li:nth-child(1){ margin-right: 80px;}
#nav li a{font-size: 16px; color: #5f6368; line-height: 64px; padding:21px 26px 21px 26px; padding-left: 16px; padding-right: 16px; text-decoration: none;}
#nav li a:hover{ background: #4285f4;color: #FFFFFF; }
#nav li img{ margin-top: 14px; margin-left: 20px;}
.container{border: 1px solid rgba(6, 8, 21, 0.12); border-radius: 8px;padding: 20px 0px 20px 0px; background: #FFFFFF; margin-top: 20px;}
.operate-box{border-top: 1px solid rgba(6, 8, 21, 0.12); padding-top: 20px; margin-top: 20px;}
input{ height: 36px; background: #ffffff; font-size: 15px; color: #1a73e8; border: 1px solid #dadce0; border-radius: 4px; font-weight: 500; padding-left: 16px; padding-right: 16px;}
input:hover{ cursor: pointer; background-color: rgba(66, 133, 244, 0.12);}
img{border: 1px solid rgba(6, 8, 21, 0.12); border-radius: 6px;}
#message{ color: #31708f;
background-color: #d9edf7;
border:1px solid #bce8f1;padding: 15px; border: 1px solid transparent; border-radius: 4px; margin-top: 30px; display: block;}
.display_images .display_infos {
position: absolute;
background-color: rgba(255, 255, 0, .3);
height: 460px;
color: lime;
z-index:30;
}
</style>
<script src="/static/hmcj/vendors/jquery/jquery-1.9.1.min.js"></script>
<script src="/static/hmcj/vendors/bootstrap/js/bootstrap.min.js"></script>
<link rel="shortcut icon" href="/static/hmcj/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/static/hmcj/vendors/bootstrap/css/bootstrap.min.css?v=2.3.2">
<link rel="stylesheet" type="text/css" href="/static/hmcj/css/demo.css">
<link rel="stylesheet" type="text/css" href="/static/hmcj/css/main.css">
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="/static/hmcj/css/ie8compact.css">
<![endif]-->
<!--如需通过iframe调用,请仿照如下示例:
<iframe src="http://localhost:7880/index.html" name="myframe" id="irisIframe"></iframe>
DEMO界面请输入网址:http://localhost:7880/?mode=demo&type=GA
-->
</head>
<body onload="CreateWebSocket()" onunload="CloseCamera()">
<table class="full_view">
<tr>
<td class="demo_panel">
<table class="btn_table">
<tr>
<td>
<button id="auto_register_btn" class="btn_style" type="button"
onclick="startIris('lefteyeimg','righteyeimg','3')"><span id="toggleRegis" class="startContent">虹膜采集</span>
</button>
</td>
<td>
<label style="width:55px;">眼睛模式:</label>
</td>
<td>
<select class="start_register" style="width: 70px !important;" id="EyeFlag" onchange="javascrypt:EyeFlagChange(this)">
<option value="3">双眼</option>
<option value="1">左眼</option>
<option value="2">右眼</option>
</select>
</td>
</tr>
<tr>
<td>
<button type="button" class="btn_style" onclick="gbcj()">取消采集</button>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center">
<img id="leftEye" src="/static/hmcj/images/eyesuggest.png" style="width: 200px;height: 200px">
<div >
<h3 style="float: left;margin-left: 22px;">左眼</h3>
<div>
<select id="leftSelect" style="float: left;margin-top: 15px;margin-left: 9px;">
<option value="0">正常</option>
<option value="1">残缺</option>
<option value="2">系统设置不采集</option>
<option value="3">受伤未采集</option>
<option value="9">其他缺失情况</option>
</select>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center">
<img id="rightEye" src="/static/hmcj/images/eyesuggest.png" style="width: 200px;height: 200px">
<div >
<h3 style="float: left;margin-left: 22px;">右眼</h3>
<div>
<select id="rightSelect" style="float: left;margin-top: 15px;margin-left:9px;">
<option value="0">正常</option>
<option value="1">残缺</option>
<option value="2">系统设置不采集</option>
<option value="3">受伤未采集</option>
<option value="9">其他缺失情况</option>
</select>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center">
<button type="button" class="btn_style" id="baocun" onclick="ysbaocun()">保存</button>
</td>
</tr>
</table>
</td>
<td class="display_panel" style="display: block;">
<div class="display_area" style="display: block;">
<div class="display_images" style="display: block;background-color:rgba(255, 255, 0, .3);width:100%; height:100%;">
<div class="display_infos" style="display: block;background-color: rgba(255, 255, 0, .3);">
<img id="righteyeimg" height="600px" width="600px" style="display: block;" />
<img id="lefteyeimg" height="600px" width="600px" style="display: block;margin-top: -450px; margin-left: 620px;" />
</div>
</div>
</div>
</td>
</tr>
</table>
<!--提示信息-->
<div class="container">
<span> 设备状态:<input type="text" id="DeviceState" value="" style="width:150px">&nbsp;&nbsp;
<span> 动作信息:<input type="text" id="ActionHint" value="" style="width:150px">&nbsp;&nbsp;
<span> 超时时间:<input type="text" id="CapTimeOut" value="20" style="width:50px"><br><br>
<span> <input type="text" id="showimage" value="" style="width:600px; height: 100px;">
</span></span></span></span></span></div>
<label id="message" value="123"></label>
<form action="" id="hmForm" name="frminput" method="post" enctype="multipart/form-data">
<input type="hidden" id="rybh" name="rybh" th:value="${rybh}"/>
<input type="hidden" id="xm" name="xm" th:value="${xm}"/>
<input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${gmsfhm}"/>
<input type="hidden" id="hmywdm" name="hmywdm" value="">
<input type="hidden" id="hmsjLeft" name="hmsjLeft" value="">
<input type="hidden" id="hmsjRight" name="hmsjRight" value="">
<input type="hidden" id="hmqsqkLeft" name="hmqsqkLeft" value="">
<input type="hidden" id="hmqsqkRight" name="hmqsqkRight" value="">
<input type="hidden" id="sbxh" name="sbxh" value="">
<input type="hidden" id="sbbh" name="sbbh" value="">
<input type="hidden" id="sbcsdm" name="sbcsdm" value="">
</form>
<script src="/static/hmcj/i18n/ik-server-localisation.js" type="text/javascript" language="JavaScript"
charset="utf-8"></script>
<script src="/static/hmcj/js/infoProcess.js" type="text/javascript" language="JavaScript" charset="utf-8"></script>
<script src="/static/hmcj/js/main.js" type="text/javascript" language="JavaScript" charset="utf-8"></script>
<script src="/static/hmcj/js/hmcj_wlh.js" type="text/javascript" language="JavaScript" charset="utf-8"></script>
<script src="/static/hmcj/js/getMessage.js" type="text/javascript" language="JavaScript" charset="utf-8"></script>
<script src="/static/js/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="/static/js/layer/skin/layer.css">
</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