using System; using System.Collections.Generic; using System.Linq; using System.Text; using FangYar.Model.TBL; using System.Data; namespace FangYar.BLL.TBL { public class SysRoleBLL { private static readonly FangYar.IDAL.TBL.SysRoleIDAL dal = FangYar.DALFactory.Factory.GetSysRoleDAL(); /// /// 根据id获取model /// public TBL_SYS_ROLE_Model GetModelByID(string ID) { return dal.GetModelByID(ID); } /// /// 根据menuCode获得实体类对象 /// public TBL_SYS_ROLE_Model GetModelByAppCode(string AppId) { return dal.GetModelByAppId(AppId); } /// /// 添加一条记录 /// public bool Add(TBL_SYS_ROLE_Model model) { return dal.Add(model); } /// /// 编辑 /// /// /// public bool Edit(TBL_SYS_ROLE_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 DataTable RolegetMenu(string appid, string roleId) { return dal.RolegetMenu(appid, roleId); } /// /// 分页无排序 /// /// 页面索引 /// 页面大小 /// 查询条件 /// public DataTable QueryDataTable(int PageIndex, int PageSize, string strwhere, string order) { return dal.QueryDataTable(PageIndex, PageSize, strwhere, order); } } }