Пример #1
0
        /// <summary>
        /// 获取功能按钮数据
        /// </summary>
        /// <returns></returns>
        private object GetALLModuleButtonData()
        {
            var data       = authorizeBLL.GetALLModuleButtonList();
            var dataModule = data.Distinct(new Comparint <ModuleButtonEntity>("F_ModuleId"));
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (ModuleButtonEntity item in dataModule)
            {
                var buttonList = data.Where(t => t.F_ModuleId.Equals(item.F_ModuleId));
                dictionary.Add(item.F_ModuleId, buttonList);
            }
            return(dictionary);
        }