华视身份证阅读器浏览器控件(与之前B/S控件不兼容)不支持IE,火狐,谷歌
名称:华视身份证阅读器浏览器控件(与之前B/S控件不兼容)支持IE,火狐,谷歌
版本:【2016最新改良版】
开发包大小:10.34M
下载地址:
特别注意:
此机型已不支持最新谷歌chrome(69)版本以及火狐Firefox(61)版本。如需要最新的支持谷歌火狐网页浏览器的,请考虑以下机型。
广东东信智能科技有限公司EST-100G谷歌版本身份证阅读器
专业提供华视身份证阅读器浏览器控件下载,华视CVR-100U/D BS SDK开发包免费下载,WEB谷歌/火狐网页开发包控件等相关技术支持由www.idukaqi.com免费提供。
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=GBK">
<title>身份证阅读器接入测试页面</title>
<script type="text/javascript">
function toJson(str) {
//var obj = JSON.parse(str);
//return obj;
return eval('(' + str + ')');
}
function clearForm() {
document.getElementById("timeElapsed").value = "";
document.getElementById("partyName").value = "";
document.getElementById("gender").value = "";
document.getElementById("nation").value = "";
document.getElementById("bornDay").value = "";
document.getElementById("certAddress").value = "";
document.getElementById("certNumber").value = "";
document.getElementById("certOrg").value = "";
document.getElementById("effDate").value = "";
document.getElementById("expDate").value = "";
document.getElementById("handjpg").src = "";
document.getElementById("result").value = "";
PicFront.src = "";
PicBack.src = "";
}
function connect() {
clearForm();
//var CertCtl = document.getElementById("CertCtl");
var result = CertCtl.connect();
document.getElementById("result").value = result;
}
function disconnect() {
clearForm();
// var CertCtl = document.getElementById("CertCtl");
var result = CertCtl.disconnect();
document.getElementById("result").value = result;
}
function getStatus() {
clearForm();
// var CertCtl = document.getElementById("CertCtl");
var result = CertCtl.getStatus();
document.getElementById("result").value = result;
}
function readCert() {
clearForm();
// var CertCtl = document.getElementById("CertCtl");
var startDt = new Date();
var result = CertCtl.readCert();
var endDt = new Date();
document.getElementById("timeElapsed").value = (endDt.getTime() - startDt.getTime()) + "毫秒";
document.getElementById("result").value = result;
var resultObj = toJson(result);
if (resultObj.resultFlag == 0) {
document.getElementById("partyName").value = resultObj.resultContent.partyName;
document.getElementById("gender").value = resultObj.resultContent.gender;
document.getElementById("nation").value = resultObj.resultContent.nation;
document.getElementById("bornDay").value = resultObj.resultContent.bornDay;
document.getElementById("certAddress").value = resultObj.resultContent.certAddress;
document.getElementById("certNumber").value = resultObj.resultContent.certNumber;
document.getElementById("certOrg").value = resultObj.resultContent.certOrg;
document.getElementById("effDate").value = resultObj.resultContent.effDate;
document.getElementById("expDate").value = resultObj.resultContent.expDate;
document.getElementById("handjpg").src = "data:image/jpeg;base64," + resultObj.resultContent.identityPic;
PicFront.src = "data:image/jpeg;base64," + resultObj.resultContent.base64ID_PicFront;
PicBack.src = "data:image/jpeg;base64," + resultObj.resultContent.base64ID_PicBack;
}
}
</script>
<style type="text/css">
.style1
{
height: 81px;
width: 622px;
}
</style>
</head>
<body bgcolor="#D2F0FF">
<h1 style="text-align: center; color: #5555FF;">
身份证阅读器USB接入测试页面</h1>
<table border="0" width="50%" cellpadding="0" cellspacing="0" style="padding-left: 100px;">
<tr>
<td>
<input type="button" value="连接" onclick="connect()">
</td>
<td>
<input type="button" value="状态" onclick="getStatus()">
</td>
<td>
<input type="button" value="读卡" onclick="readCert()">
</td>
<td>
<input type="button" value="断开" onclick="disconnect()">
</td>
<td>
</td>
</tr>
</table>
<table style="width: 92%;" align="center">
<tr>
<td class="style1">
<img id="handjpg" alt="" src="" style="height: 126px; width: 102px" />
<img id="PicFront" name="PicFront" alt="" src="" style="height: 209px; width: 327px" />
<img id="PicBack" name="PicBack" alt="" src="" style="height: 209px; width: 327px" />
</td>
</tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="10">
<tr>
<td align="right">
读卡时间:
</td>
<td>
<input type="text" id="timeElapsed" size="49" style="width: 400px;" readonly="readonly">
</td>
</tr>
<tr>
<td align="right">
姓名:
</td>
<td>
<input type="text" id="partyName" size="49" style="width: 400px;" readonly="readonly">(要求中间,两头都没有空格)
</td>
</tr>
<tr>
<td align="right">
性别:
</td>
<td>
<input type="text" id="gender" size="49" style="width: 400px;" readonly="readonly">(取值为“1”(表示“男”)或“0”(表示“女”))
</td>
</tr>
<tr>
<td align="right">
民族:
</td>
<td>
<input type="text" id="nation" size="49" style="width: 400px;" readonly="readonly">(汉字即可)
</td>
</tr>
<tr>
<td align="right">
出生日期:
</td>
<td>
<input type="text" id="bornDay" size="49" style="width: 400px;" readonly="readonly">(要求格式为:yyyyMMdd,长度为8)
</td>
</tr>
<tr>
<td align="right">
住址:
</td>
<td>
<input type="text" id="certAddress" size="49" style="width: 400px;" readonly="readonly">
</td>
</tr>
<tr>
<td align="right">
身份证号:
</td>
<td>
<input type="text" id="certNumber" size="49" style="color: #FF0000; width: 400px;"
readonly="readonly">(居民身份号码,长度18位)
</td>
</tr>
<tr>
<td align="right">
签发机关:
</td>
<td>
<input type="text" id="certOrg" size="49" style="width: 400px;" readonly="readonly">
</td>
</tr>
<tr>
<td align="right">
开始期限:
</td>
<td>
<input type="text" id="effDate" size="49" style="width: 400px;" readonly="readonly">(要求格式为:yyyyMMdd,长度为8)
</td>
</tr>
<tr>
<td align="right">
结束期限:
</td>
<td>
<input type="text" id="expDate" size="49" style="width: 400px;" readonly="readonly">(要求格式为:yyyyMMdd,长度为8,或者是“长期”)
</td>
</tr>
<tr>
<td align="right">
结果:
</td>
<td>
<textarea id="result" rows="8" cols="47" style="width: 400px;" readonly="readonly"></textarea>
</td>
</tr>
<tr>
<td>
</td>
<td >
</td>
</tr>
</table>
<object id="CertCtl" name="CertCtl" type="application/cert-reader" width="0" height="0">
该浏览器不支持身份证阅读器控件!
</object>
</body>
</html>