Esempio n. 1
0
        /// <summary>
        /// 初始化端口 自动查找
        /// </summary>
        /// <returns></returns>
        internal static IDCardActionResult <int> InitCommExt()
        {
            var retPort = StandardIDCardInterop.InitCommExt();
            var retCode = retPort > 0 ? SuccessRetCode : -99;

            return(IsRetSuccess(retCode) ? IDCardActionResultHelper.FormatSuccess <StandardIDCardActionResult <int>, int>(retCode, retPort)
                : IDCardActionResultHelper.FormatFail <StandardIDCardActionResult <int> >(retCode, "自动寻找阅读器失败"));
        }
Esempio n. 2
0
 /// <summary>
 /// 获取BMP照片
 /// </summary>
 /// <param name="wlt_File">wlt文件名(含路径)</param>
 /// <returns></returns>
 internal static IDCardActionResult GetPhoto(string wlt_File)
 {
     return(ExecInteropFunction(() => StandardIDCardInterop.GetPhoto(wlt_File),
                                GetRetCodeMsgFunction("获取BMP照片")));
 }
Esempio n. 3
0
 /// <summary>
 /// 初始化端口
 /// </summary>
 /// <param name="port">端口</param>
 /// <returns></returns>
 internal static IDCardActionResult InitComm(int port)
 {
     return(ExecInteropFunction(() => StandardIDCardInterop.InitComm(port),
                                GetRetCodeMsgFunction("初始化端口")));
 }
Esempio n. 4
0
 /// <summary>
 /// 读卡操作 指定目录
 /// </summary>
 /// <param name="cPath">目录</param>
 /// <param name="active">读取信息类型</param>
 /// <returns></returns>
 internal static IDCardActionResult ReadContentPath(string cPath, int active)
 {
     return(ExecInteropFunction(() => StandardIDCardInterop.ReadContentPath(cPath, active),
                                StandardIDCardReadRetCode.GetCodeMsg));
 }