Example #1
0
        /// <summary>
        /// 获取用户所具有模块列表
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public DataTable GetModuleTableByUserid(string userid, string Platformid)
        {
            /*  周杨
             * string cacheStrphold = string.Format("CommonSearch_GetModuleTableByUserid_{0}_{1}", userid, Platformid);
             * if ((WebCache.GetCache(cacheStrphold) == null))
             * {
             *  lock (lockHelp)
             *  {
             *      if ((WebCache.GetCache(cacheStrphold) == null))
             *      {
             *          DataTable dt = commonSearch.GetModuleTableByUserid(userid, Platformid);
             *
             *          WebCache.SetCache(cacheStrphold, dt, 60);
             *      }
             *  }
             * }
             * return (DataTable)WebCache.GetCache(cacheStrphold);
             */
            DataTable dt = commonSearch.GetModuleTableByUserid(userid, Platformid); //周杨新增

            return(dt);
        }