예제 #1
0
 internal static UserBindEntity ToUserBindEntity(BzjUserBindEntity entity)
 {
     UserBindEntity uEntity = new UserBindEntity();
     uEntity.CreateDate = entity.CreateDate;
     uEntity.UserId = entity.UserId;
     uEntity.IsEnable = entity.IsEnable;
     uEntity.JUserId = entity.JUserId;
     uEntity.UserBindId = entity.UserBindId;
     return uEntity;
 }
예제 #2
0
        internal static UserBindEntity ToUserBindEntity(BzjUserBindEntity entity)
        {
            UserBindEntity uEntity = new UserBindEntity();

            uEntity.CreateDate = entity.CreateDate;
            uEntity.UserId     = entity.UserId;
            uEntity.IsEnable   = entity.IsEnable;
            uEntity.JUserId    = entity.JUserId;
            uEntity.UserBindId = entity.UserBindId;
            return(uEntity);
        }
 /// <summary>
 /// 金生金用户绑定
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public ErrType CreateAdminGssUser(BzjUserBindEntity bzjentity, string loginID, string userID, int roleType)
 {
     try
     {
         UserBindEntity entity = MyConverter.ToUserBindEntity(bzjentity);
         ResultDesc     result = _IManagerBzj.CreateAdminGssUser(entity, loginID, roleType);
         return(result.Result ? GeneralErr.Success : new ErrType(ERR.SERVICE, result.Desc));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message + ex.StackTrace);
         return(null);
     }
 }