#region using System.Collections.Generic; using System.Data; using CSFrameworkV5.Interfaces.InterfaceModels; #endregion namespace CSFrameworkV5.Interfaces { /// /// 系统权限数据层桥接接口 /// public interface IBridge_Permission { /// /// 删除全部菜单 /// int DeleteAllMenu(); /// /// 取功能点资料表 /// /// DataTable GetActionData(); /// /// 获取子级用户 /// /// /// DataTable GetChildUser(string account); /// /// 获取当前用户的数据权限配置 /// /// /// List GetDataPermissionConfig(string account); /// /// 获取数据权限配置 /// /// /// DataTable GetDataPermissionConfigByGroup(string groupCode); /// /// 获取数据权限配置 /// /// /// DataTable GetDataPermissionConfigByUser(string account); /// /// 取功能的自定义名称 /// /// DataTable GetFormTagCustomName(); /// /// 取功能的自定义名称 /// /// DataTable GetFormTagName(); DataTable GetGridPermission(string userID); string GetGridPermissionById(string userID, string viewId); /// /// 获取菜单表,用于选择数据源 /// /// DataTable GetLookupMenu(); /// /// 获取用户的菜单数据 /// /// /// /// DataTable GetMenuByUser(string account, string dataSetID); /// /// 取菜单资料表 /// /// DataTable GetMenuData(); /// /// 取菜单表,用于选择数据源 /// /// DataTable GetMenuPicker(); /// /// 取系统模块表的数据 /// /// DataTable GetModuleData(); /// /// 返回指定菜单的使用者 /// /// 菜单编号 /// DataSet GetOwnersByMenu(string menuID); /// /// 获取指定角色的功能 /// /// 角色编号 /// DataTable GetRoleAction(string roleID); /// /// 取角色资料表 /// /// DataTable GetRoleData(); /// /// 获取指定角色的拥有者(用户表),该角色那些用户使用 /// /// 角色编号 /// DataSet GetRoleOwners(string roleID); /// /// 返回指定用户及菜单的功能权限值 /// /// 用户 /// 菜单名 /// 返回功能权限值 int GetUserActions(string account, string menuName); /// /// 获取用户所有权限 /// /// 用户 /// DataTable GetUserActionsList(string account); /// /// 初始化权限系统 /// /// bool Init(); /// /// 检测功能点编号是否存在 /// /// /// bool IsExistsAction(int actionValue); /// /// 检测模块编号是否存在 /// /// 模块编号 /// bool IsExistsModule(int moduleID); /// /// 检测角色编号是否存在 /// /// /// bool IsExistsRole(string roleID); /// /// 判断leader用户是否docUser(需要判断的用户,如制单人)的领导 /// /// 需要判断的用户,如制单人 /// 上级用户 /// bool IsOwner(string docUser, string leader); /// /// 判断某个用户属于指定角色 /// /// 用户 /// 角色 /// bool IsUserBelongRole(string user, string roleID); DataTable Query(string roleType, string content); /// /// 保存数据权限配置 /// /// /// bool SaveDataPermission(DataTable data); bool SaveGridPermission(DataTable data); } }