using System; using System.Collections.Generic; using System.Linq; using System.Text; using FangYar.Model.TBL; namespace FangYar.BLL.TBL { public class SysMenuBLL { private static readonly FangYar.IDAL.TBL.SysMenuIDAL dal = FangYar.DALFactory.Factory.GetSysMenuDAl(); /// /// 根据id获取model /// public TBL_SYS_MENU_Model GetModelByID(string ID) { return dal.GetModelByID(ID); } /// /// 根据menuCode获得实体类对象 /// public TBL_SYS_MENU_Model GetModelByAppCode(string AppId) { return dal.GetModelByAppId(AppId); } /// /// 添加一条记录 /// public bool Add(TBL_SYS_MENU_Model model) { return dal.Add(model); } /// /// 编辑 /// /// /// public bool Edit(TBL_SYS_MENU_Model model) { return dal.Edit(model); } /// /// 删除 /// /// /// public bool Delete(string strlist) { return dal.Delete(strlist); } /// /// 记录总数 /// /// /// public int Count(string where) { return dal.Count(where); } /// /// 分页 /// /// /// /// /// public void QueryProc(int PageIndex, int PageSize, string strwhere, string order) { dal.QueryProc(PageIndex, PageSize, strwhere, order); } /// /// 分页 /// /// /// /// /// /// public List QueryList(int PageIndex, int PageSize, string strwhere, string order) { return dal.QueryList(PageIndex, PageSize, strwhere, order); } public List QueryWhere(string strwhere) { return dal.QueryWhere(strwhere); } /// /// flow用的 /// 添加一条记录 /// public bool flowAdd(TBL_SYS_MENU_Model model) { return dal.flowAdd(model); } /// /// flow用的 /// 编辑 /// /// /// public bool flowEdit(TBL_SYS_MENU_Model model) { return dal.flowEdit(model); } /// /// flow用的 /// 根据type字段查询list集合 /// /// /// public List typegetmenu(string type) { return dal.typegetmenu(type); } /// /// flow用的 /// 根据CODE获取实体对象 /// public Model.TBL.TBL_SYS_MENU_Model GetModelByCODE(string code) { return dal.GetModelByCODE(code); } /// /// 删除 角色与菜单关联表 /// /// /// public bool DeleteRoleMenu(string strlist) { return dal.DeleteRoleMenu(strlist); } } }