using System; using System.Collections.Generic; using System.Linq; using System.Text; using YX.DAL; using System.Data; using YX.Entity; using System.Data.Entity; using System.Linq.Expressions; namespace YX.BLL { public class SystemMenu_Bll { SystemMenu_Dal menu_dal = new SystemMenu_Dal(); public List GetMenusByCondition(Expression>lambda) { try { return menu_dal.GetMenusByCondition(lambda); } catch (Exception ex) { throw ex; } } /// /// 用户权限查询 /// /// /// public List GetUserRightByCondition(Expression>lambda) { try { return menu_dal.GetUserRightByCondition(lambda); } catch (Exception EX) { throw EX; } } /// /// 角色权限查询 /// /// /// public List GetRoleRightByCondition(Expression> lambda) { try { return menu_dal.GetRoleRightByCondition(lambda); } catch (Exception EX) { throw EX; } } /// /// 获取全部菜单 /// /// public List GetSysMenus() { try { return menu_dal.GetSysMenus(); } catch (Exception ex) { throw ex; } } /// /// 获取菜单根节点 /// /// public List GetSysMenusParent(string UserID) { try { return menu_dal.GetSysMenusParent(UserID); } catch (Exception ex) { throw ex; } } /// /// 获取菜单子节点 /// /// /// public List GetSysMenuChilds(string ParentId,string UserID) { try { return menu_dal.GetSysMenuChilds(ParentId,UserID); } catch (Exception ex) { throw ex; } } /// /// 获取菜单子节点 /// /// /// public List GetSysMenuChilds(string ParentId) { try { return menu_dal.GetSysMenuChilds(ParentId); } catch (Exception ex) { throw ex; } } /// /// 添加菜单 /// /// public int AddSysMenu(Base_SysMenu info) { try { return menu_dal.AddSysMenu(info); } catch (Exception) { throw; } } /// /// 修改菜单 /// /// /// public int UpdateSysMenu(Base_SysMenu info) { try { return menu_dal.UpdateSysMenu(info); } catch (Exception) { throw; } } /// /// 删除菜单 /// /// /// public int DeleteSysMenu(string key) { try { return menu_dal.DeleteSysMenu(key); } catch (Exception) { throw; } } //获取按钮 public ListGetButtonList(string ParentId, string UserID) { try { return menu_dal.GetButtonList(ParentId, UserID); } catch (Exception) { throw; } } } }