Ejemplo n.º 1
0
        /// <summary>
        /// 根据用户编号获取对应查询数据权限对象
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public List <string> GetUserAuthorizeListStr(string userid)
        {
            List <string> newlist = null;
            var           list    = InstanceDAL.GetUserAuthorizeList(userid);

            if (list != null)
            {
                newlist = new List <string>();
                foreach (var item in list)
                {
                    newlist.Add(item.ObjectId);
                }
            }
            return(newlist);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="userid"></param>
 /// <returns></returns>
 public IEnumerable <UserAuthorizeEntity> GetUserAuthorizeList(string userid)
 {
     return(InstanceDAL.GetUserAuthorizeList(userid));
 }