/// <summary>
        /// 重置用户登录密码
        /// zhoub 20150714
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="passWord"></param>
        /// <returns></returns>
        public ResultModel UpdateYH_UserPassWord(YH_UserModel model)
        {
            var result = new ResultModel();

            using (var bt = _database.Db.BeginTransaction())
            {
                try
                {
                    result.Data = _database.Db.YH_User.UpdateByUserID(UserID: model.UserID, PassWord: model.PassWord, UpdateBy: model.UpdateBy, UpdateDT: model.UpdateDT);
                    //重置错误次数
                    _database.Db.YH_PasswordError.UpdateAll(VerifyTime: DateTime.Now, FailVerifyTimes: 0, Condition: (_database.Db.YH_PasswordError.UserID == model.UserID && _database.Db.YH_PasswordError.PassWordType == 1));
                    //重置帐号系统登录密码

                    int count = _database.Db.YH_UserUpdateInfo.GetCount(_database.Db.YH_UserUpdateInfo.UserID == model.UserID);
                    if (count == 0)
                    {
                        _database.Db.YH_UserUpdateInfo.Insert(UserID: model.UserID, TimeStamp: 1);
                    }
                    else
                    {
                        _database.Db.YH_UserUpdateInfo.UpdateByUserID(UserID: model.UserID, TimeStamp: 1);
                    }
                    bt.Commit();
                }
                catch (Exception e)
                {
                    result.Data = 0;
                    bt.Rollback();
                }
            }
            return(result);
        }
        /// <summary>
        /// 更新用户锁定状态
        /// zhoub 20150714
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        public ResultModel UpdateYH_UserIsLock(YH_UserModel model)
        {
            var result = new ResultModel();

            result.Data = _database.Db.YH_User.UpdateByUserID(UserID: model.UserID, IsLock: model.IsLock, UpdateBy: model.UpdateBy, UpdateDT: model.UpdateDT);
            return(result);
        }
        /// <summary>
        /// 重置用户交易密码
        /// zhoub 20150714
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ResultModel UpdateYH_UserPayPassWord(YH_UserModel model)
        {
            var result = new ResultModel();

            result.Data = _database.Db.YH_User.UpdateByUserID(UserID: model.UserID, PayPassWord: model.PayPassWord, UpdateBy: model.UpdateBy, UpdateDT: model.UpdateDT);
            //重置错误次数
            _database.Db.YH_PasswordError.UpdateAll(VerifyTime: DateTime.Now, FailVerifyTimes: 0, Condition: (_database.Db.YH_PasswordError.UserID == model.UserID && _database.Db.YH_PasswordError.PassWordType == 2));
            return(result);
        }