Esempio n. 1
0
        /// <summary>
        /// 父级菜单选项
        /// </summary>
        /// <returns></returns>
        public List <object> GetParents()
        {
            List <object> list = new List <object>();

            foreach (var item in handle.GetList(null))
            {
                list.Add(new
                {
                    value = item.MenuID,
                    label = item.MenuName
                });
            }

            return(list);
        }
Esempio n. 2
0
 /// <summary>
 /// 获得数据列表
 /// </summary>
 public List <SysMenu> GetList(string strWhere, int pageIndex = 0, int pageSize = 0)
 {
     return(dal.GetList(strWhere, pageIndex, pageSize));
 }