/// <summary> /// 获取某类别的所有权限 /// </summary> public static DataSet GetPermissionsByCategory(int categoryID) { IData.IPermissionCategory dataPermission = PubConstant.IsSQLServer ? (IPermissionCategory) new Data.PermissionCategory() : new MySqlData.PermissionCategory(); return(dataPermission.GetPermissionsInCategory(categoryID)); }
/// <summary> /// 获取所有权限类别 /// </summary> public static DataSet GetAllCategories() { IData.IPermissionCategory dataPermissionCategory = PubConstant.IsSQLServer ? (IPermissionCategory) new Data.PermissionCategory() : new MySqlData.PermissionCategory(); return(dataPermissionCategory.GetCategoryList()); }