第一句子网 - 唯美句子、句子迷、好句子大全
第一句子网 > C# 国腾 二代身份证 扫描身份证信息

C# 国腾 二代身份证 扫描身份证信息

时间:2021-04-05 01:07:13

相关推荐

C# 国腾 二代身份证  扫描身份证信息

可以扫描身份证的

姓名 性别 民族 地址 身份证号码 签发机关 开始日期 结束日期 身份证正面 反面 正反面 证件照

<%@ Page Language="c#" CodeBehind="RYEmployee.aspx.cs" AutoEventWireup="True" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head><title></title><meta content="Microsoft Visual Studio 7.0" name="GENERATOR"><meta content="C#" name="CODE_LANGUAGE"><meta content="JavaScript" name="vs_defaultClientScript"><meta content="/intellisense/ie5" name="vs_targetSchema"><script language="javascript"><!-- function StartRead()//开始读卡{var GT2ICROCX = document.getElementById("GT2ICROCX");if (GT2ICROCX.GetState() == 0 &&GT2ICROCX.ReadCard() == 0) {MyGetData();}}function MyGetErrMsg()//OCX读卡消息回调函数{var GT2ICROCX = document.getElementById("GT2ICROCX");document.getElementById("lblErrorMsg").innerText = GT2ICROCX.ErrMsg;}function MyClearData()//OCX读卡失败后的回调函数{}function MyGetData()//OCX读卡成功后的回调函数{var GT2ICROCX = document.getElementById("GT2ICROCX");document.getElementById("Label1").innerText = GT2ICROCX.Name;var sex= GT2ICROCX.Sex;if (sex==1) sex= "男" ;if (sex==2) sex= "女" ;document.getElementById("Label2").innerText=sex;var nation = GT2ICROCX.Nation;if (nation.length < 2) nation = "0" + nation;if (nation=="01") nation="汉族";if (nation=="02") nation="蒙古族";if (nation=="03") nation="回族";if (nation=="04") nation="藏族";if (nation=="05") nation="维吾尔族";if (nation=="06") nation="苗族";if (nation=="07") nation="彝族";if (nation=="08") nation="壮族";if (nation=="09") nation="布依族";if (nation=="10") nation="朝鲜族";if (nation=="11") nation="满族";if (nation=="12") nation="侗族";if (nation=="13") nation="瑶族";if (nation=="14") nation="白族";if (nation=="15") nation="土家族";if (nation=="16") nation="哈尼族";if (nation=="17") nation="哈萨克族";if (nation=="18") nation="傣族";if (nation=="19") nation="黎族";if (nation=="20") nation="傈僳族";if (nation=="21") nation="佤族";if (nation=="22") nation="畲族";if (nation=="23") nation="高山族";if (nation=="24") nation="拉祜族";if (nation=="25") nation="水族";if (nation=="26") nation="东乡族";if (nation=="27") nation="纳西族";if (nation=="28") nation="景颇族";if (nation=="29") nation="柯尔克孜族";if (nation=="30") nation="土族";if (nation=="31") nation="达斡尔族";if (nation=="32") nation="仫佬族";if (nation=="33") nation="羌族";if (nation=="34") nation="布朗族";if (nation=="35") nation="撒拉族";if (nation=="36") nation="毛南族";if (nation=="37") nation="仡佬族";if (nation=="38") nation="锡伯族";if (nation=="39") nation="阿昌族";if (nation=="40") nation="普米族";if (nation=="41") nation="塔吉克族";if (nation=="42") nation="怒族";if (nation=="43") nation="乌孜别克族";if (nation=="44") nation="俄罗斯族";if (nation=="45") nation="鄂温克族";if (nation=="46") nation="德昂族";if (nation=="47") nation="保安族";if (nation=="48") nation="裕固族";if (nation=="49") nation="京族";if (nation=="50") nation="塔塔尔族";if (nation=="51") nation="独龙族";if (nation=="52") nation="鄂伦春族";if (nation=="53") nation="赫哲族";if (nation=="54") nation="门巴族";if (nation=="55") nation="珞巴族";if (nation=="56") nation="基诺族";if (nation=="97") nation="其他";if (nation=="98") nation="外国血统中国籍人士";document.getElementById("Label3").innerText=nation;document.getElementById("Label4").innerText=GT2ICROCX.Born;document.getElementById("Label5").innerText=GT2ICROCX.Address; document.getElementById("Label6").innerText=GT2ICROCX.CardNo;document.getElementById("Label7").innerText=GT2ICROCX.Police;// var ActivityLTo= GT2ICROCX.ActivityLTo; //if (ActivityLTo.indexOf('-')<0) //{// var year = ActivityLTo.substr(0, 4);// var month = ActivityLTo.substr(4, 2);// var day = ActivityLTo.substr(6, 2);// ActivityLTo = year + '-' + month + '-'+day;// }document.getElementById("Label8").innerText=GT2ICROCX.ActivityLFrom; document.getElementById("Label9").innerText=GT2ICROCX.ActivityLTo; document.getElementById("Label10").innerText=GT2ICROCX.GetFaceJpgBase64(0);document.getElementById("Label11").innerText=GT2ICROCX.GetPhotoBuffer(); document.getElementById("Label12").innerText=GT2ICROCX.GetFaceJpgBase64(1);document.getElementById("Label13").innerText=GT2ICROCX.GetFaceJpgBase64(2);}//--></script> <script language="javascript" for="GT2ICROCX" event="GetData">//设置回调函数MyGetData()</script><script language="javascript" for="GT2ICROCX" event="GetErrMsg">//设置回调函数MyGetErrMsg()</script><script language="javascript" for="GT2ICROCX" event="ClearData">//设置回调函数// MyClearData()</script><link href="../hr.css" type="text/css" rel="stylesheet"></head><body οnkeypress="AvoidEnter()" ><form id="RYEmployee" method="post" enctype="multipart/form-data"runat="server"><table class="tool" id="Table6" cellspacing="0" cellpadding="0" border="0"><tr class="tooltop"><td class="tooltiao" valign="top" align="left" rowspan="3"><asp:Image ID="Image2" runat="server" BorderWidth="0" Height="4px" Width="5px" ImageUrl="../anniu/yuanjiao1.gif"></asp:Image></td><td id="idcardTd" runat="Server"></td><td colspan="4"><p><table class="toolbar_b1" id="ToolBarTable" cellspacing="0" cellpadding="0" border="0"><tr><td> <input type="button" runat="Server" name="btnIdentity" id="btnIdentity" value="读 卡"οnclick="StartRead()" class="identitySytle" /></td></tr> <tr><td>姓名:<asp:Label ID="Label1" runat="server" ForeColor="Red" /></td></tr><tr><td>性别:<asp:Label ID="Label2" runat="server" ForeColor="Red" /></td></tr><tr><td>民族:<asp:Label ID="Label3" runat="server" ForeColor="Red" /></td></tr> <tr><td>出生:<asp:Label ID="Label4" runat="server" ForeColor="Red" /></td></tr><tr><td>住址:<asp:Label ID="Label5" runat="server" ForeColor="Red" /></td></tr><tr><td>身份证号码:<asp:Label ID="Label6" runat="server" ForeColor="Red" /></td></tr> <tr><td>签发机关:<asp:Label ID="Label7" runat="server" ForeColor="Red" /></td></tr><tr><td>开始:<asp:Label ID="Label8" runat="server" ForeColor="Red" /></td></tr> <tr><td>结束:<asp:Label ID="Label9" runat="server" ForeColor="Red" /></td></tr> <tr><td>照片1:<asp:Label ID="Label10" runat="server" ForeColor="Red" /></td></tr> <tr><td>照片2:<asp:Label ID="Label11" runat="server" ForeColor="Red" /></td></tr> <tr><td>照片3:<asp:Label ID="Label12" runat="server" ForeColor="Red" /></td></tr> <tr><td>照片4:<asp:Label ID="Label13" runat="server" ForeColor="Red" /></td></tr> </table></p></td><td></td></tr><tr height="100%"><td class="kongxi" colspan="2"></td><td valign="top" width="100%"><div><p><p><font face="宋体"><table id="Table5" class="normalTableClass" cellspacing="0" cellpadding="0" width="100%"border="1" runat="server"><tr><td align="center" width="50%">照片:<asp:Image ID="imgPhoto" runat="server" Height="100px" Width="80px" CssClass="hand"></asp:Image><asp:Label ID="lblGT2ICROCX" runat="server"><img src="../anniu/arrow.png" style="border-width:0px;" title="保存后该证件照自动显示到“照片”处" /><OBJECT Name="GT2ICROCX" id="GT2ICROCX" width="102" height="126" CLASSID="CLSID:220C3AD1-5E9D-4B06-870F-E34662E2DFEA" CODEBASE="CAB/IdrOcx.cab#version=1,0,1,3"></OBJECT></asp:Label><%--<asp:HiddenField ID="identityPhotoJPGBuffer" Value="" runat="Server" /><asp:HiddenField ID="identityPhotoBMPBuffer" Value="" runat="Server" />--%><asp:HiddenField ID="identityPhotoJPGBuffer" Value="" runat="Server" /><asp:HiddenField ID="identityJPGBuffer" Value="" runat="Server" /><br /></td></tr></table></font></div></td><td class="youtooltiao"></td><td class="youtooltiao"></td></tr></table><p></p></form></body></html>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。