谁有USB/btms joy周毅是谁 2 touch的下载地址啊

已有 75 人访问
上海隐志网络科技有限公司&&& 公安部已经大规模在全国范围内推广第二代居民身份证的换发工作,目前,许多地区二代证换发工作已经进行了很久。但是,相对应于二代证的推广,社会上许许多多的应用系统都还没有对二代证读卡开发相应的接口,为此,我写了一个通用的二代证机具读卡类,希望能对各位在各自的系统中开发这样的接口提供帮助。&&& 本类仅仅提供读卡的用法,写卡的方式我并没有写在里面,但是,相应的写调用我已经声明在里面,希望各位大侠能独自研究应用。&&& 该类接口具有如下特点:&&& 1、通用于目前市场上各个机具厂商的二代证读(写)机具。(想想,为不同厂商开发不同的接口确实令人头疼的,且由于接口不兼容,容易被客户骂死!)&&& 2、自动适应串口、USB口的各种机具&&& 3、能读文字信息,但是,要想正确读照片,必须需要机具厂商的授权文件Termb.Lic,且授权文件必须放在C盘根目录下。(我总不能不照顾机具厂商的利益吧)&&& 4、除了上面第三条之外,您甚至不用安装机具的驱动程序,接上二代证机具即可使用。&&&&&&& 废话少说,下面看实现方法:
using&Susing&System.Dusing&System.Cusing&System.ComponentMusing&System.Windows.Fusing&System.Runtime.InteropSusing&System.Reflection&;using&System.IO;namespace&ICCard{&&&&public&class&clsICCard&&&&{&&&&&&&&//首先,声明通用接口&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_OpenPort(int&iPortID);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ClosePort(int&iPortID);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_PowerManagerBegin(int&iPortID,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_AddSAMUser(int&iPortID,&string&pcUserName,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_SAMLogin(int&iPortID,&string&pcUserName,&string&pcPasswd,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_SAMLogout(int&iPortID,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_UserManagerOK(int&iPortID,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ChangeOwnPwd(int&iPortID,&string&pcOldPasswd,&string&pcNewPasswd,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ChangeOtherPwd(int&iPortID,&string&pcUserName,&string&pcNewPasswd,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_DeleteSAMUser(int&iPortID,&string&pcUserName,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_StartFindIDCard(int&iPortID,&ref&int&pucIIN,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_SelectIDCard(int&iPortID,&ref&int&pucSN,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ReadBaseMsg(int&iPortID,&string&pucCHMsg,&ref&int&puiCHMsgLen,&string&pucPHMsg,&ref&int&puiPHMsgLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ReadBaseMsgToFile(int&iPortID,&string&fileName1,&ref&int&puiCHMsgLen,&string&fileName2,&ref&int&puiPHMsgLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_WriteAppMsg(int&iPortID,&ref&byte&pucSendData,&int&uiSendLen,&ref&byte&pucRecvData,&ref&int&puiRecvLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_WriteAppMsgOK(int&iPortID,&ref&byte&pucData,&int&uiLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_CancelWriteAppMsg(int&iPortID,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ReadNewAppMsg(int&iPortID,&ref&byte&pucAppMsg,&ref&int&puiAppMsgLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ReadAllAppMsg(int&iPortID,&ref&byte&pucAppMsg,&ref&int&puiAppMsgLen,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_UsableAppMsg(int&iPortID,&ref&byte&ucByte,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_GetUnlockMsg(int&iPortID,&ref&byte&strMsg,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_GetSAMID(int&iPortID,&ref&byte&StrSAMID,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_SetMaxRFByte(int&iPortID,&byte&ucByte,&int&iIfOpen);&&&&&&&&[DllImport("sdtapi.dll")]&&&&&&&&public&static&extern&int&SDT_ResetSAM(int&iPortID,&int&iIfOpen);&&&&&&&&[DllImport("WltRS.dll")]&&&&&&&&public&static&extern&int&GetBmp(string&file_name,&int&intf);&&&&&&&&public&delegate&void&De_ReadICCardComplete(clsEDZ&objEDZ);&&&&&&&&public&event&De_ReadICCardComplete&ReadICCardC&&&&&&&&private&clsEDZ&objEDZ&=&new&clsEDZ();&&&&&&&&private&int&EdziIfOpen&=&<SPAN style="COLOR: #;&&&&&&&&&&&&&&&//自动开关串口&&&&&&&&int&EdziPortID;&&&&&&&&&&&&&&&&public&clsICCard()&&&&&&&&{&&&&&&&&}&&&&&&&&public&bool&ReadICCard()&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&bool&bUsbPort&=&false;&&&&&&&&&&&&int&intOpenPortRtn&=&<SPAN style="COLOR: #;&&&&&&&&&&&&int&rtnTemp&=&<SPAN style="COLOR: #;&&&&&&&&&&&&int&pucIIN&=&<SPAN style="COLOR: #;&&&&&&&&&&&&int&pucSN&=&<SPAN style="COLOR: #;&&&&&&&&&&&&int&puiCHMsgLen&=&<SPAN style="COLOR: #;&&&&&&&&&&&&int&puiPHMsgLen&=&<SPAN style="COLOR: #;&&&&&&&&&&&&objEDZ&=&new&clsEDZ();&&&&&&&&&&&&//检测usb口的机具连接,必须先检测usb&&&&&&&&&&&&for&(int&iPort&=&<SPAN style="COLOR: #01;&iPort&&=&<SPAN style="COLOR: #16;&iPort++)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&intOpenPortRtn&=&SDT_OpenPort(iPort);&&&&&&&&&&&&&&&&if&(intOpenPortRtn&==&<SPAN style="COLOR: #4)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&EdziPortID&=&iP&&&&&&&&&&&&&&&&&&&&bUsbPort&=&true;&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&&&&&//检测串口的机具连接&&&&&&&&&&&&if&(!bUsbPort)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&for&(int&iPort&=&<SPAN style="COLOR: #;&iPort&&=&<SPAN style="COLOR: #;&iPort++)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&intOpenPortRtn&=&SDT_OpenPort(iPort);&&&&&&&&&&&&&&&&&&&&if&(intOpenPortRtn&==&<SPAN style="COLOR: #4)&&&&&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&EdziPortID&=&iP&&&&&&&&&&&&&&&&&&&&&&&&bUsbPort&=&false;&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&&&&&}&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&&&&&if&(intOpenPortRtn&!=&<SPAN style="COLOR: #4)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&MessageBox.Show("端口打开失败,请检测相应的端口或者重新连接读卡器!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&return&false;&&&&&&&&&&&&}&&&&&&&&&&&&//在这里,如果您想下一次不用再耗费检查端口的检查的过程,您可以把&EdziPortID&保存下来,可以保存在注册表中,也可以保存在配置文件中,我就不多写了,但是,&&&&&&&&&&&&//您要考虑机具连接端口被用户改变的情况哦&&&&&&&&&&&&//下面找卡&&&&&&&&&&&&rtnTemp&=&SDT_StartFindIDCard(EdziPortID,&ref&pucIIN,&EdziIfOpen);&&&&&&&&&&&&if&(rtnTemp&!=&<SPAN style="COLOR: #9)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&rtnTemp&=&SDT_StartFindIDCard(EdziPortID,&ref&pucIIN,&EdziIfOpen);&&//再找卡&&&&&&&&&&&&&&&&if&(rtnTemp&!=&<SPAN style="COLOR: #9)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&rtnTemp&=&SDT_ClosePort(EdziPortID);&&&&&&&&&&&&&&&&&&&&MessageBox.Show("未放卡或者卡未放好,请重新放卡!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&return&false;&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&&&&&//选卡&&&&&&&&&&&&rtnTemp&=&SDT_SelectIDCard(EdziPortID,&ref&pucSN,&EdziIfOpen);&&&&&&&&&&&&if&(rtnTemp&!=&<SPAN style="COLOR: #4)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&rtnTemp&=&SDT_SelectIDCard(EdziPortID,&ref&pucSN,&EdziIfOpen);&&//再选卡&&&&&&&&&&&&&&&&if&(rtnTemp&!=&<SPAN style="COLOR: #4)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&rtnTemp&=&SDT_ClosePort(EdziPortID);&&&&&&&&&&&&&&&&&&&&MessageBox.Show("读卡失败!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&return&false;&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&&&&&//注意,在这里,用户必须有应用程序当前目录的读写权限&&&&&&&&&&&&FileInfo&objFile&=&new&FileInfo("wz.txt");&&&&&&&&&&&&if&(objFile.Exists)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&objFile.Attributes&=&FileAttributes.N&&&&&&&&&&&&&&&&objFile.Delete();&&&&&&&&&&&&}&&&&&&&&&&&&objFile&=&new&FileInfo("zp.bmp");&&&&&&&&&&&&if&(objFile.Exists)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&objFile.Attributes&=&FileAttributes.N&&&&&&&&&&&&&&&&objFile.Delete();&&&&&&&&&&&&}&&&&&&&&&&&&objFile&=&new&FileInfo("zp.wlt");&&&&&&&&&&&&if&(objFile.Exists)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&objFile.Attributes&=&FileAttributes.N&&&&&&&&&&&&&&&&objFile.Delete();&&&&&&&&&&&&}&&&&&&&&&&&&rtnTemp&=&SDT_ReadBaseMsgToFile(EdziPortID,&"wz.txt",&ref&puiCHMsgLen,&"zp.wlt",&ref&puiPHMsgLen,&EdziIfOpen);&&&&&&&&&&&&if&(rtnTemp&!=&<SPAN style="COLOR: #4)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&rtnTemp&=&SDT_ClosePort(EdziPortID);&&&&&&&&&&&&&&&&MessageBox.Show("读卡失败!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&return&false;&&&&&&&&&&&&}&&&&&&&&&&&&//下面解析照片,注意,如果在C盘根目录下没有机具厂商的授权文件Termb.Lic,照片解析将会失败&&&&&&&&&&&&if&(bUsbPort)&&&&&&&&&&&&&&&&rtnTemp&=&GetBmp("zp.wlt",&<SPAN style="COLOR: #);&&&&&&&&&&&&else&&&&&&&&&&&&&&&&rtnTemp&=&GetBmp("zp.wlt",&<SPAN style="COLOR: #);&&&&&&&&&&&&switch&(rtnTemp)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&case&<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("调用sdtapi.dll错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&<SPAN style="COLOR: #:&&&//正常&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("相片解码错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("wlt文件后缀错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("wlt文件打开错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("wlt文件格式错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("软件未授权!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&case&-<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&MessageBox.Show("设备连接错误!",&"提示",&MessageBoxButtons.OK,&MessageBoxIcon.Error);&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&}&&&&&&&&&&&&rtnTemp&=&SDT_ClosePort(EdziPortID);&&&&&&&&&&&&FileInfo&f&=&new&FileInfo("wz.txt");&&&&&&&&&&&&FileStream&fs&=&f.OpenRead();&&&&&&&&&&&&byte[]&bt&=&new&byte[fs.Length];&&&&&&&&&&&&fs.Read(bt,&<SPAN style="COLOR: #,&(int)fs.Length);&&&&&&&&&&&&fs.Close();&&&&&&&&&&&&string&str&=&System.Text.UnicodeEncoding.Unicode.GetString(bt);&&&&&&&&&&&&objEDZ.Name&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&objEDZ.Sex_Code&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&objEDZ.NATION_Code&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&string&strBird&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&objEDZ.BIRTH&=&Convert.ToDateTime(strBird.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"年"&+&strBird.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"月"&+&strBird.Substring(<SPAN style="COLOR: #)&+&"日");&&&&&&&&&&&&objEDZ.ADDRESS&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&objEDZ.IDC&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #2,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&objEDZ.REGORG&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #8,&<SPAN style="COLOR: #).Trim();&&&&&&&&&&&&string&strTem&=&System.Text.UnicodeEncoding.Unicode.GetString(bt,&<SPAN style="COLOR: #8,&bt.GetLength(<SPAN style="COLOR: #)&-&<SPAN style="COLOR: #8).Trim();&&&&&&&&&&&&objEDZ.STARTDATE&=&Convert.ToDateTime(strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"年"&+&strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"月"&+&strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"日");&&&&&&&&&&&&strTem&=&strTem.Substring(<SPAN style="COLOR: #);&&&&&&&&&&&&if&(strTem.Trim()&!=&"长期")&&&&&&&&&&&&{&&&&&&&&&&&&&&&&objEDZ.ENDDATE&=&Convert.ToDateTime(strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"年"&+&strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"月"&+&strTem.Substring(<SPAN style="COLOR: #,&<SPAN style="COLOR: #)&+&"日");&&&&&&&&&&&&}&&&&&&&&&&&&else&&&&&&&&&&&&{&&&&&&&&&&&&&&&&objEDZ.ENDDATE&=&DateTime.MaxV&&&&&&&&&&&&}&&&&&&&&&&&&objFile&=&new&FileInfo("zp.bmp");&&&&&&&&&&&&if&(objFile.Exists)&&&&&&&&&&&&{&&&&&&&&&&&&&&&&Image&img&=&Image.FromFile("zp.bmp");&&&&&&&&&&&&&&&&objEDZ.PIC_Image=(Image)img.Clone();&&&&&&&&&&&&&&&&System.IO.MemoryStream&m&=&new&MemoryStream();&&&&&&&&&&&&&&&&img.Save(m,&System.Drawing.Imaging.ImageFormat.Jpeg);&&&&&&&&&&&&&&&&objEDZ.PIC_Byte&=&m.ToArray();&&&&&&&&&&&&&&&&img.Dispose();&&&&&&&&&&&&&&&&img&=&null;&&&&&&&&&&&&}&&&&&&&&&&&&ReadICCardComplete(objEDZ);&&&&&&&&&&&&&&&&&&&&&&&return&true;&&&&&&&&}&&&&}&&&&public&class&clsEDZ&&&&{&&&&&&&&private&System.Collections.SortedList&lstMZ&=&new&SortedList();&&&&&&&&private&string&_N&&&//姓名&&&&&&&&private&string&_Sex_C&&&//性别代码&&&&&&&&private&string&_Sex_CN&&&//性别&&&&&&&&private&string&_IDC;&&&&&&//身份证号码&&&&&&&&private&string&_NATION_C&&&//民族代码&&&&&&&&private&string&_NATION_CN&&&//民族&&&&&&&&private&DateTime&_BIRTH;&&&&&//出生日期&&&&&&&&private&string&_ADDRESS;&&&&//住址&&&&&&&&private&string&_REGORG;&&&&&//签发机关&&&&&&&&private&DateTime&_STARTDATE;&&&&//身份证有效起始日期&&&&&&&&private&DateTime&_ENDDATE;&&&&//身份证有效截至日期&&&&&&&&private&string&_Period_Of_Validity_C&&&//有效期限代码,许多原来系统上面为了一代证考虑,常常存在这样的字段,二代证中已经没有了&&&&&&&&private&string&_Period_Of_Validity_CN&&&//有效期限&&&&&&&&private&byte[]&_PIC_B&&&&//照片二进制&&&&&&&&private&Image&_PIC_I&&&//照片&&&&&&&&public&clsEDZ()&&&&&&&&{&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"汉族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"蒙古族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"回族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"藏族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"维吾尔族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"苗族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"彝族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"壮族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"布依族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"朝鲜族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"满族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"侗族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"瑶族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"白族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"土家族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"哈尼族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"哈萨克族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"傣族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"黎族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"傈僳族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"佤族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"畲族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"高山族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"拉祜族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"水族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"东乡族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"纳西族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"景颇族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"柯尔克孜族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"土族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"达翰尔族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"仫佬族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"羌族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"布朗族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"撒拉族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"毛南族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"仡佬族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"锡伯族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"阿昌族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"普米族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"塔吉克族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"怒族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"乌孜别克族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"俄罗斯族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"鄂温克族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"德昂族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"保安族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"裕固族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"京族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"塔塔尔族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"独龙族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"鄂伦春族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"赫哲族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"门巴族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"珞巴族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"基诺族");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"其它");&&&&&&&&&&&&lstMZ.Add("<SPAN style="COLOR: #",&"外国人入籍");&&&&&&&&}&&&&&&&&public&string&Name&&&&&&&&{&&&&&&&&&&&&get&{&return&_N&}&&&&&&&&&&&&set&{&_Name&=&&}&&&&&&&&}&&&&&&&&public&string&Sex_Code&&&&&&&&{&&&&&&&&&&&&get&{&return&_Sex_C&}&&&&&&&&&&&&set&&&&&&&&&&&&{&&&&&&&&&&&&&&&&_Sex_Code&=&&&&&&&&&&&&&&&&&switch&(value)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&case&"<SPAN style="COLOR: #":&&&&&&&&&&&&&&&&&&&&&&&&Sex_CName&=&"男";&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&&&&&case&"<SPAN style="COLOR: #":&&&&&&&&&&&&&&&&&&&&&&&&Sex_CName&=&"女";&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&}&&&&&&&&public&string&Sex_CName&&&&&&&&{&&&&&&&&&&&&get&{&return&_Sex_CN&}&&&&&&&&&&&&set&{&_Sex_CName&=&&}&&&&&&&&}&&&&&&&&public&string&IDC&&&&&&&&{&&&&&&&&&&&&get&{&return&_IDC;&}&&&&&&&&&&&&set&{&_IDC&=&&}&&&&&&&&}&&&&&&&&public&string&NATION_Code&&&&&&&&{&&&&&&&&&&&&get&{&return&_NATION_C&}&&&&&&&&&&&&set&&&&&&&&&&&&{&&&&&&&&&&&&&&&&_NATION_Code&=&&&&&&&&&&&&&&&&&if&(lstMZ.Contains(value))&&&&&&&&&&&&&&&&&&&&NATION_CName&=&lstMZ[value].ToString();&&&&&&&&&&&&}&&&&&&&&}&&&&&&&&public&string&NATION_CName&&&&&&&&{&&&&&&&&&&&&get&{&return&_NATION_CN&}&&&&&&&&&&&&set&{&_NATION_CName&=&&}&&&&&&&&}&&&&&&&&public&DateTime&BIRTH&&&&&&&&{&&&&&&&&&&&&get&{&return&_BIRTH;&}&&&&&&&&&&&&set&{&_BIRTH&=&&}&&&&&&&&}&&&&&&&&public&string&ADDRESS&&&&&&&&{&&&&&&&&&&&&get&{&return&_ADDRESS;&}&&&&&&&&&&&&set&{&_ADDRESS&=&&}&&&&&&&&}&&&&&&&&public&string&REGORG&&&&&&&&{&&&&&&&&&&&&get&{&return&_REGORG;&}&&&&&&&&&&&&set&{&_REGORG&=&&}&&&&&&&&}&&&&&&&&public&DateTime&STARTDATE&&&&&&&&{&&&&&&&&&&&&get&{&return&_STARTDATE;&}&&&&&&&&&&&&set&{&_STARTDATE&=&&}&&&&&&&&}&&&&&&&&public&DateTime&ENDDATE&&&&&&&&{&&&&&&&&&&&&get&{&return&_ENDDATE;&}&&&&&&&&&&&&set&&&&&&&&&&&&{&&&&&&&&&&&&&&&&_ENDDATE&=&&&&&&&&&&&&&&&&&if&(_ENDDATE&==&DateTime.MaxValue)&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_Code&=&"<SPAN style="COLOR: #";&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_CName&=&"长期";&&&&&&&&&&&&&&&&}&&&&&&&&&&&&&&&&else&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&if&(_STARTDATE&!=&DateTime.MinValue)&&&&&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&switch&(value.AddDays(<SPAN style="COLOR: #).Year&-&_STARTDATE.Year)&&&&&&&&&&&&&&&&&&&&&&&&{&&&&&&&&&&&&&&&&&&&&&&&&&&&&case&<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_Code&=&"<SPAN style="COLOR: #";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_CName&=&"<SPAN style="COLOR: #年";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&&&&&&&&&&&&&case&<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_Code&=&"<SPAN style="COLOR: #";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_CName&=&"<SPAN style="COLOR: #年";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&&&&&&&&&&&&&case&<SPAN style="COLOR: #:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_Code&=&"<SPAN style="COLOR: #";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&_Period_Of_Validity_CName&=&"<SPAN style="COLOR: #年";&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&break;&&&&&&&&&&&&&&&&&&&&&&&&}&&&&&&&&&&&&&&&&&&&&}&&&&&&&&&&&&&&&&}&&&&&&&&&&&&}&&&&&&&&}&&&&&&&&public&string&Period_Of_Validity_Code&&&&&&&&{&&&&&&&&&&&&get&{&return&_Period_Of_Validity_C&}&&&&&&&&&&&&set&{&_Period_Of_Validity_Code&=&&}&&&&&&&&}&&&&&&&&public&string&Period_Of_Validity_CName&&&&&&&&{&&&&&&&&&&&&get&{&return&_Period_Of_Validity_CN&}&&&&&&&&&&&&set&{&_Period_Of_Validity_CName&=&&}&&&&&&&&}&&&&&&&&public&byte[]&PIC_Byte&&&&&&&&{&&&&&&&&&&&&get&{&return&_PIC_B&}&&&&&&&&&&&&set&{&_PIC_Byte&=&&}&&&&&&&&}&&&&&&&&public&Image&PIC_Image&&&&&&&&{&&&&&&&&&&&&get&{&return&_PIC_I&}&&&&&&&&&&&&set&{&_PIC_Image&=&&}&&&&&&&&}&&&&}}
&& 类中使用到了两个dll文件(sdtapi.dll和WltRS.dll),点击下载!
阅读(...) 评论()

我要回帖

更多关于 usbbtjoycenter 的文章

 

随机推荐