前端转vue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IdCheckViewer.xaml.cs 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Media;
  4. using System.Windows.Media.Imaging;
  5. using System.IO;
  6. using System.Text.RegularExpressions;
  7. using Platform.Controls.ControlsHelper;
  8. using Platform.Library;
  9. using TellerSystem.Communication;
  10. using TellerSystem.Library.Ext.Function;
  11. using Platform.Common.RunningParameters;
  12. using TellerSystem.ServiceProxy.Ext.ServiceEntitys;
  13. using TellerSystem.Devices.Interface;
  14. using TellerSystem.Library.Ext.Variables;
  15. using TellerSystem.Controls.Ext.PrintsHelper;
  16. using TellerSystem.Library.Ext.TradeExtension;
  17. using TellerSystem.PrintTemplate.Extension;
  18. using System.Windows.Controls;
  19. using System.Printing;
  20. using Platform.Print;
  21. using TellerSystem.ServiceProxy.Ext.ServiceHelper;
  22. using System.Collections.Generic;
  23. using System.Drawing;
  24. using System.ComponentModel;
  25. using TellerSystem.ServiceProxy.Ext;
  26. using TellerSystem.Controls.Ext.ControlsHelper;
  27. using System.Diagnostics;
  28. using System.Text;
  29. using TellerSystem.ServiceProxy.Ext.WebAPI.Auth.Entity;
  30. using System.Net;
  31. using System.Net.Cache;
  32. using Newtonsoft.Json;
  33. using Newtonsoft.Json.Linq;
  34. using TellerSystem.Contract.Function;
  35. /******************************平台Dll*****************************/
  36. namespace TellerSystem.Controls.Ext.Controls
  37. {
  38. /// <summary>
  39. /// IdCheckViewer.xaml 的交互逻辑
  40. /// </summary>
  41. public partial class IdCheckViewer
  42. {
  43. #region Ctor
  44. /// <summary>
  45. /// 核查完毕后是否联动人脸识别
  46. /// </summary>
  47. public bool Link2RLSB { get; private set; }
  48. public IdCheckViewer(IdentityCardEntity info, bool RLSB = true)
  49. {
  50. InitializeComponent();
  51. Link2RLSB = RLSB;
  52. Info = info;
  53. Record = new IdCheckerResult();
  54. Record.DeviceInfo = info;
  55. Record.IsOnline = SystemSettingsHelper.Instance.IsIdCheck;
  56. }
  57. string FLAG = TradeManagerHandle.TT_SYSCONFIG_GetConfigValueByConfigID("2ea3a7e6cfa04f89a335bf1e363295de");
  58. private void TradePage_Loaded(object sender, RoutedEventArgs e)
  59. {
  60. /* 初始化界面逻辑,页面加载后执行*/
  61. if (this.Info != null)
  62. {
  63. tb_txtID.Text = Info.IdNumber.Trim();
  64. tb_txtID.IsReadOnly = true;
  65. if (!string.IsNullOrEmpty(Info.Name))
  66. {
  67. tb_txtName.Text = Info.Name.Trim();
  68. tb_txtName.IsReadOnly = true;
  69. }
  70. if (Info.MyProperty != null) imgPhoto_device.Source = Info.MyProperty;
  71. }
  72. this.TradeAPIs.SetItems(cb_busType, UserVariable.GetIdCheckReasonType());
  73. cbb_Result.SetItems(new Dictionary<string, string> { { "公民身份证号码与姓名一致,且存在照片", "00" }, { "公民身份证号码与姓名一致,但不存在照片", "01" }, { "公民身份证号码存在,但与姓名不一致", "02" }, { "公民身份证号码不存在", "03" }, { "其他错误", "04" }, { "输入的参数有误", "05" }, { "认证码错误", "06" } });
  74. if (FLAG == "V0" || FLAG == "V2" || FLAG == "V3" || FLAG == "V4" || FLAG == "V23" || FLAG == "V24") //郑银接入联网核查
  75. {
  76. cbb_Result.SetItems(new Dictionary<string, string> {
  77. { "公民身份号码与姓名一致,且存在照片", "00" },
  78. { "公民身份号码与姓名一致,但不存在照片", "01" },
  79. { "公民身份证号码存在,但与姓名不匹配", "02" },
  80. { "公民身份证号码不存在", "03" },
  81. { "其他错误", "04" },
  82. { "输入的参数有误", "05" },
  83. { "上传机构代码错误", "06" },
  84. { "身份证信息一致,照片相符(文字+相片)", "07" },
  85. { "公民姓名与身份证号码一致,相片不一致(文字+相片)", "08" },
  86. { "公民姓名与身份证号码一致(文字)", "09" },
  87. { "非最新证件", "10" } });
  88. }
  89. if (AICapacity.GetInstence().IsOpen && string.Compare(this.TradeAPIs.GetTradeMetadata("isRlsb"), "true", true) == 0)
  90. {
  91. tl_grade.Visibility = grade.Visibility = Visibility.Visible;
  92. }
  93. if (AICapacity.GetInstence().IsOpen && FLAG != "V5" && string.Compare(this.TradeAPIs.GetTradeMetadata("isRlsb"), "true", true) == 0)
  94. {
  95. cb_rlbd.Visibility = tbrlbd.Visibility = Visibility.Visible;
  96. cb_rlbd.SetItems(new Dictionary<string, string> { { "是", "1" }, { "否", "0" } });
  97. sfhcxx.Height = 230;
  98. grade.Width = 400;
  99. }
  100. }
  101. #endregion
  102. #region Property
  103. /// <summary>
  104. /// 核查的主体信息
  105. /// </summary>
  106. public IdentityCardEntity Info { get; private set; }
  107. /// <summary>
  108. /// 核查结果
  109. /// </summary>
  110. public IdCheckerResult Record { get; private set; }
  111. #endregion
  112. #region Internal
  113. /// <summary>
  114. /// 15位身份证转换成18位
  115. /// </summary>
  116. /// <param name="StrCard15">15位身份证</param>
  117. /// <param name="StrYear">出生年份</param>
  118. /// <returns></returns>
  119. private string Convert15to18(string StrCard15, string StrYear)
  120. {
  121. if (StrCard15 == null || StrCard15.Length != 15)
  122. {
  123. return StrCard15;
  124. }
  125. string year = "19";
  126. if (!string.IsNullOrEmpty(StrYear) && StrYear.Length == 2)
  127. {
  128. year = StrYear;
  129. }
  130. //生成17位号
  131. String StrCard17 = StrCard15.Substring(0, 6) + year + StrCard15.Substring(6);
  132. //计算校验位,返回18位号
  133. return StrCard17 + GetLastNumber(StrCard17);
  134. }
  135. /// <summary>
  136. /// 根据17位号生成校验位
  137. /// </summary>
  138. /// <param name="StrCard17"></param>
  139. /// <returns></returns>
  140. private string GetLastNumber(string StrCard17)
  141. {
  142. //权重值
  143. int[] WI = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 };
  144. string Str18 = "10X98765432";
  145. int num = 0;
  146. for (int i = 0; i < 17; i++)
  147. {
  148. num += int.Parse(StrCard17[i].ToString()) * WI[i];
  149. }
  150. num = num % 11;
  151. return Str18[num].ToString();
  152. }
  153. /// <summary>
  154. /// 解析图像数据
  155. /// </summary>
  156. /// <param name="imageStream"></param>
  157. private ImageSource CreateImage(String imageStream)
  158. {
  159. ImageSource ret = null;
  160. try
  161. {
  162. if (!string.IsNullOrEmpty(imageStream))
  163. {
  164. //把BASE64转码字符串,转成byte数组
  165. byte[] arr = Convert.FromBase64String(imageStream);
  166. //定义流
  167. MemoryStream ms = new MemoryStream(arr);
  168. var bitImg = new BitmapImage();
  169. bitImg.BeginInit();
  170. //ms.Seek(0, SeekOrigin.Begin);
  171. bitImg.StreamSource = ms;
  172. bitImg.EndInit();
  173. ret = bitImg;
  174. }
  175. }
  176. catch (Exception e)
  177. {
  178. this.ShowWarnMessageBox("加载身份照片数据出错!");//.ShowMessageBox("转换照片出错");
  179. }
  180. return ret;
  181. }
  182. #endregion
  183. #region Event
  184. private void txtID_LostFocus(object sender, RoutedEventArgs e)
  185. {
  186. if (tb_txtID.Text.Trim().Length == 15)
  187. {
  188. tb_txtID.Text = Convert15to18(tb_txtID.Text.Trim(), "19");
  189. }
  190. }
  191. private void InputName_LostFocus(object sender, RoutedEventArgs e)
  192. {
  193. Regex rx = new Regex("^.+$");
  194. if (!rx.IsMatch(tb_txtName.Text))
  195. {
  196. this.ShowMessageBox("请输入合法的姓名!");
  197. this.SetFocus();
  198. }
  199. }
  200. /// <summary>
  201. /// 联网核查
  202. /// </summary>
  203. private void btnCheck_Click(object sender, RoutedEventArgs e)
  204. {
  205. #region 注释调以前默认核查成功代码
  206. ///add by likai 20141020 start
  207. ///衡水演示隐掉喝茶通讯,默认成功
  208. //cbb_Result.SetSelectedValue("0");
  209. //tb_IssuingAuthority.Text = Info.IssuingAuthority;
  210. //tb_NameResult.Text = tb_txtName.Text;
  211. //tb_IdNumber.Text = tb_txtID.Text;
  212. ////填充返回数据和打印数据
  213. //Record.IsComplated = cbb_Result.GetSelectedValue() == "0" || cbb_Result.GetSelectedValue() == "1";
  214. //Record.Result = cbb_Result.GetSelectedValue();
  215. //_print.Result = cbb_Result.GetSelectedKey();
  216. //Record.Type = cb_busType.GetSelectedValue();
  217. //_print.Type = cb_busType.GetSelectedKey();
  218. //Record.IdNumber = _print.Number = tb_IdNumber.Text.Trim();
  219. //Record.Name = _print.Name = tb_NameResult.Text.Trim();
  220. //Record.IssuingAuthority = _print.Branch = tb_IssuingAuthority.Text.Trim();
  221. //_print.Reason = tb_reason.Text.Trim();
  222. //if (Record.IsComplated)
  223. //{
  224. // btnPrint.IsEnabled = true;
  225. // this.SetFocus(btnBack);
  226. //}
  227. ///add by likai 20141020 end
  228. /******************
  229. //核查交易
  230. var msg = new Message(Message.BitMap.Agn);
  231. this.CommSend(msg);
  232. msg.Fd16 = "0001";
  233. msg.Fd60 = "IDC";
  234. msg.Fd89 = cb_busType.SelectedValue.ToString();
  235. msg.Fd27 = LoginUserInfo.TellerNo;
  236. msg.Fd62 = tb_txtID.Text;
  237. msg.Fd25 = tb_txtName.Text;
  238. //渠道无法连接,用于考试系统
  239. if (!ExamSystem.Instance.InExamMode)
  240. {
  241. this.CallAgnIDC(msg);
  242. }
  243. else
  244. {
  245. msg.Fd12 = "0000";
  246. msg.Fd90 = "00";
  247. msg.Fd82 = "河北市承德";
  248. msg.Fd25 = tb_txtName.Text;
  249. msg.Fd62 = tb_txtID.Text;
  250. msg.FileData = string.Empty;
  251. }
  252. if (msg.Fd12 != "0000")
  253. {
  254. this.ShowErrorMessageBox(this.GetError(msg));
  255. this.SetFocus();
  256. return;
  257. }
  258. //解析结果 注意 核心改成了1位标识
  259. cbb_Result.SetSelectedValue(msg.Fd90.Trim()[1]);
  260. tb_IssuingAuthority.Text = msg.Fd82;
  261. tb_NameResult.Text = msg.Fd25;
  262. tb_IdNumber.Text = msg.Fd62;
  263. if (cbb_Result.GetSelectedValue() == "0")
  264. {
  265. imgPhoto.Source = CreateImage(msg.FileData);
  266. _print.Photo = msg.FileData;
  267. }
  268. //填充返回数据和打印数据
  269. Record.IsComplated = cbb_Result.GetSelectedValue() == "0" || cbb_Result.GetSelectedValue() == "1";
  270. Record.Result = cbb_Result.GetSelectedValue();
  271. _print.Result = cbb_Result.GetSelectedKey();
  272. Record.Type = cb_busType.GetSelectedValue();
  273. _print.Type = cb_busType.GetSelectedKey();
  274. Record.IdNumber = _print.Number = tb_IdNumber.Text.Trim();
  275. Record.Name = _print.Name = tb_NameResult.Text.Trim();
  276. Record.IssuingAuthority = _print.Branch = tb_IssuingAuthority.Text.Trim();
  277. _print.Reason = tb_reason.Text.Trim();
  278. if (Record.IsComplated)
  279. {
  280. btnPrint.IsEnabled = true;
  281. this.SetFocus(btnPrint);
  282. }
  283. * ******************/
  284. #endregion
  285. Message message = new Message(Message.BitMap.Agn);
  286. this.InitFd(message);
  287. this.CommSend(message);
  288. if (FLAG == "V9")
  289. {//辰州汇通
  290. message.Fd16 = "1011";//交易代码
  291. message.Fd18 = "IDCK";
  292. message.Fd25 = tb_txtName.Text.Trim();//户名
  293. message.Fd62 = tb_txtID.Text.Trim();//身份证号
  294. message.Fd24 = cb_busType.GetSelectedValue();//业务类型
  295. this.TradeAPIs.CallAgnSHCZ(message);
  296. if (message.Fd12 != "0000")
  297. {
  298. this.TradeAPIs.ShowInfoMessageBox("身份核查不通过!");
  299. this.SetFocus();
  300. return;
  301. }
  302. tb_NameResult.Text = message.Fd25;
  303. tb_IssuingAuthority.Text = message.Fd82;
  304. cbb_Result.SetSelectedValue(message.Fd28.Trim());
  305. tb_IdNumber.Text = message.Fd62;
  306. }
  307. else
  308. {
  309. //message.Fd16 = "7077";
  310. //message.Fd25 = tb_txtName.Text;
  311. //message.Fd62 = tb_txtID.Text;
  312. //this.CallAgn(message);
  313. #region 调用平台核查
  314. //var msg = new Message(Message.BitMap.Agn);
  315. //this.TradeAPIs.InitFd(msg);
  316. //this.TradeAPIs.CommSend(msg);
  317. //msg.Fd4 = this.CreateSerialNumber();
  318. message.Fd16 = "2001";
  319. message.Fd18 = "C101";
  320. message.Fd24 = string.IsNullOrEmpty(Info.Name) ? "0" : "1";//证件号录入方式 手工 0 、设备 1
  321. message.Fd23 = this.TradeAPIs.GetSelectedValue(cb_busType);
  322. message.Fd26 = LoginUserInfo.TellerNo;
  323. message.Fd62 = tb_txtID.Text;
  324. message.Fd25 = tb_txtName.Text;
  325. this.TradeAPIs.CallAgnIDC(message);
  326. if (message.Fd12 != "0000")
  327. {
  328. this.TradeAPIs.ShowInfoMessageBox(string.IsNullOrWhiteSpace(message.Fd13) ? this.TradeAPIs.GetError(message) : message.Fd13);
  329. this.TradeAPIs.SetFocus();
  330. return;
  331. }
  332. cbb_Result.SetSelectedValue(message.Fd89.Trim());
  333. tb_IssuingAuthority.Text = message.Fd83;//签发机关
  334. tb_NameResult.Text = message.Fd25;
  335. tb_IdNumber.Text = message.Fd62;
  336. //if (message.Fd89.Trim() != "00" || string.IsNullOrWhiteSpace(message.FileData)) return;
  337. //try
  338. //{
  339. // //把BASE64转码字符串,转成byte数组
  340. // photo = message.FileData;
  341. // var arr = Convert.FromBase64String(message.FileData);
  342. // //定义流
  343. // var ms = new MemoryStream(arr);
  344. // var bitImg = new BitmapImage();
  345. // bitImg.BeginInit();
  346. // ms.Seek(0, SeekOrigin.Begin);
  347. // bitImg.StreamSource = ms;
  348. // bitImg.EndInit();
  349. // imgPhoto.Source = bitImg;
  350. //}
  351. //catch
  352. //{
  353. // this.TradeAPIs.ShowInfoMessageBox("转换照片出错!");
  354. //}
  355. #endregion
  356. }
  357. btnPrint.IsEnabled = true;
  358. this.SetFocus(btnPrint);
  359. if (cbb_Result.GetSelectedValue() == "00")
  360. {
  361. imgPhoto.Source = CreateImage(message.FileData);
  362. _print.Photo = message.FileData;
  363. }
  364. //填充返回数据和打印数据
  365. Record.IsComplated = cbb_Result.GetSelectedValue() == "00" || cbb_Result.GetSelectedValue() == "01";
  366. Record.Result = cbb_Result.GetSelectedValue();
  367. Record.ResultKey = cbb_Result.GetSelectedKey();
  368. _print.Result = cbb_Result.GetSelectedKey();
  369. Record.Type = cb_busType.GetSelectedValue();
  370. _print.Type = cb_busType.GetSelectedKey();
  371. Record.IdNumber = _print.Number = tb_IdNumber.Text.Trim();
  372. Record.Name = _print.Name = tb_NameResult.Text.Trim();
  373. Record.IssuingAuthority = _print.Branch = tb_IssuingAuthority.Text.Trim();
  374. _print.Reason = tb_reason.Text.Trim();
  375. _print.frontPhoto = Info.FrontImg == null ? "" : Info.FrontImg;
  376. _print.BackPhoto = Info.BackImg == null ? "" : Info.BackImg;
  377. //人脸比对
  378. if (Link2RLSB && AICapacity.GetInstence().IsOpen && string.Compare(this.TradeAPIs.GetTradeMetadata("isRlsb"), "true", true) == 0 && (FLAG == "V5" || (FLAG != "V5" && cb_rlbd.GetSelectedValue() == "1")))
  379. {
  380. //身份核查返回的客户照片
  381. img_SFHC = message.FileData;
  382. result = "";
  383. ret = false;
  384. var ext = new AICapacity.ExtData(this.CreateSerialNumber(), new Dictionary<string, string> { { "idno", Record.IdNumber }, { "name", Record.Name }, { "trade", this.TradeInfo.TradeCode } });
  385. this.OwnerContainer.ModalInvoke(new Action(() =>
  386. {
  387. ret = AICapacity.GetInstence().GetResultFromRLBD(img_SFHC, out result, ext);
  388. }), "正在人脸比对中...");
  389. grade.Text = result;
  390. _print.Grade = grade.Text;
  391. if (ret != true)
  392. {
  393. Record.Reject2RLSB = true;
  394. if (FLAG == "V8")
  395. {
  396. if (this.TradeAPIs.ShowQuestionMessageBox("人脸比对不通过是否进行授权操作?") == MessageBoxResult.Yes)
  397. {
  398. if (AuthAction(new Message() { Fd96_W = "airlsb" }))
  399. Record.Reject2RLSB = false;
  400. }
  401. }
  402. else
  403. {
  404. if (this.TradeAPIs.ShowQuestionMessageBox("人脸比对不通过是否进行授权操作?") == MessageBoxResult.Yes)
  405. {
  406. if (AuthAction(new Message() { Fd96_W = "fd96w" }))
  407. Record.Reject2RLSB = false;
  408. }
  409. }
  410. }
  411. }
  412. }
  413. /// <summary>
  414. /// 授权方法
  415. /// </summary>
  416. /// <param name="msg"></param>
  417. /// <returns></returns>
  418. private bool AuthAction(Message msg)
  419. {
  420. // 组织授权检查要素
  421. TellerSystem.ServiceProxy.Ext.ServiceEntitys.PageData[] page = new TellerSystem.ServiceProxy.Ext.ServiceEntitys.PageData[1];
  422. page[0] = new TellerSystem.ServiceProxy.Ext.ServiceEntitys.PageData() { index = 1, datas = this.SaveTradePage((FrameworkElement)this.Content) };
  423. AuthConditionElement element = new AuthConditionElement();
  424. AuthManager c = new AuthManager();
  425. c.AsksuperResultMessage += new AuthManager.AsksuperResultHandle(AsksuperResultMessage);
  426. return c.DoAuth(this, element, msg, page, "0", "", "", "", "", "人脸比对", "");
  427. }
  428. private void AsksuperResultMessage(AsksuperResultType result, TradeBusData busData)
  429. {
  430. switch (result)
  431. {
  432. case AsksuperResultType.Success:
  433. this.ShowMessageBox("授权已经通过。");
  434. break;
  435. case AsksuperResultType.Failed:
  436. this.ShowMessageBox("授权没有通过。");
  437. break;
  438. case AsksuperResultType.Undo:
  439. this.ShowMessageBox("授权已撤销。");
  440. break;
  441. default:
  442. break;
  443. }
  444. }
  445. private Print_IdChecker.Print_IdCheckerEntry _print = new Print_IdChecker.Print_IdCheckerEntry();
  446. private string img_SFHC;
  447. private string result;
  448. private bool? ret;
  449. private void btnPrint_Click(object sender, RoutedEventArgs e)
  450. {
  451. try
  452. {
  453. var p = new Print_IdChecker(_print);
  454. p.PrintData.LoadData(this, new Message());
  455. PrintContainerExt.SetPrintElement(p, this.GetPrintAttributes());
  456. p.LoadPrintData();
  457. var xpsFile = p.PrintToXps();
  458. this.IsHitTestVisible = false;
  459. var dialog = new PrintDialog();
  460. var flag = dialog.ShowDialog();
  461. this.IsHitTestVisible = true;
  462. if (flag == true)
  463. {
  464. PrintManager.SendToPrinter(xpsFile, p.ActualWidth, p.ActualHeight, "联网核查打印", dialog.PrintQueue.FullName);
  465. //dialog.PrintQueue.AddJob("联网核查打印", xpsFile.FullName, false);
  466. //var xpsWriter = PrintQueue.CreateXpsDocumentWriter(dialog.PrintQueue);
  467. //xpsWriter.Write(xpsFile.FullName);
  468. this.SetFocus(btnBack);
  469. }
  470. }
  471. catch
  472. {
  473. this.ShowErrorMessageBox("打印发生异常!");
  474. }
  475. //this.PrintCertificate(new Platform.Print.PrintContainer[] { p });
  476. }
  477. private void btnBack_Click(object sender, RoutedEventArgs e)
  478. {
  479. this.Close();
  480. }
  481. #endregion
  482. private void cb_rlbd_LostFocus(object sender, RoutedEventArgs e)
  483. {
  484. if (cb_rlbd.GetSelectedValue() == "1")
  485. grade.Visibility = tl_grade.Visibility = Visibility.Visible;
  486. else
  487. {
  488. grade.Visibility = tl_grade.Visibility = Visibility.Collapsed;
  489. grade.Text = string.Empty;
  490. }
  491. }
  492. }
  493. /// <summary>
  494. /// 核查记录
  495. /// </summary>
  496. public class IdCheckerResult
  497. {
  498. /// <summary>
  499. /// 是否联网核查
  500. /// </summary>
  501. public bool IsOnline { get; internal set; }
  502. /// <summary>
  503. /// 是否完成核查 - 注意当IsOnline为false时,该值必定为true
  504. /// </summary>
  505. public bool IsComplated { get; internal set; }
  506. /// <summary>
  507. /// 人脸比对拒绝标志
  508. /// </summary>
  509. public bool Reject2RLSB { get; internal set; }
  510. /// <summary>
  511. /// 核查结果 - 结果参考 UserVariable.GetIdCheckResultType()
  512. /// </summary>
  513. public string Result { get; internal set; }
  514. /// <summary>
  515. /// 核查结果值
  516. /// </summary>
  517. public string ResultKey { get; internal set; }
  518. /// <summary>
  519. /// 核查原因
  520. /// </summary>
  521. public string Reason { get; internal set; }
  522. /// <summary>
  523. /// 核查种类 - 结果参考 UserVariable.GetIdCheckReasonType()
  524. /// </summary>
  525. public string Type { get; internal set; }
  526. /// <summary>
  527. /// 身份证号码
  528. /// </summary>
  529. public string IdNumber { get; internal set; }
  530. /// <summary>
  531. /// 姓名
  532. /// </summary>
  533. public string Name { get; internal set; }
  534. /// <summary>
  535. /// 签发机构
  536. /// </summary>
  537. public string IssuingAuthority { get; internal set; }
  538. /// <summary>
  539. /// 从身份证读卡器设备上拿取的信息集合
  540. /// </summary>
  541. public IdentityCardEntity DeviceInfo { get; internal set; }
  542. }
  543. }