예제 #1
0
 public long DEV_PutUser(IntPtr hDev, long lIndex, USER_INFO userInfo, bool delete)
 {
     return EACM.FIRS_DEV_PutUser(hDev, lIndex, userInfo, delete);
 }
예제 #2
0
 public static extern long FIRS_DEV_PutUser(IntPtr hDev, long lIndex, USER_INFO userInfo, bool delete);
예제 #3
0
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="arg"></param>
        public void EnrollUser(EnrollUserEventArgs arg)
        {
            USER_INFO userIfo = new USER_INFO();
            userIfo.cardno = arg.CardNo;
            userIfo.deptname = arg.DeptId;
            userIfo.id = arg.UserId;
            userIfo.name = arg.UserName;
            userIfo.photo = arg.strBase64PhotoData;
            userIfo.photolen = arg.lPhotoLen;
            userIfo.phototype = (byte)arg.lPhotoType;
            userIfo.power = 0;
            userIfo.regstatus = 0;
            userIfo.status = 0;
            userIfo.type = (byte)arg.UserType;

            // 修改用户数据
            long ret = mDevObj.DEV_PutUser(mDevHandle, 105, userIfo, false);
            if (ret == 0)
            {
                FEATURE_INFO featuerInfo = new FEATURE_INFO();
                featuerInfo.feature = arg.strBase64FeatureData;
                featuerInfo.featurelen = arg.lFeatureLen;
                featuerInfo.method = 0;
                featuerInfo.version = 0;
                //修改特征数据
                long result = mDevObj.DEV_PutFeature(mDevHandle, 112, arg.UserId, featuerInfo);
            }
        }