IDeptService Interface

组织机构实体服务接口。

Definition

Namespace: QuickAdmin.Service.Admin
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.10
C#
public interface IDeptService : ISortableCRUDService<SysDept, long, SysDeptInput, DeptFilter>, 
	ICRUDService<SysDept, long, SysDeptInput, DeptFilter>, IPagingService<SysDept, long, DeptFilter>, 
	IOperationLogModule
Implements
ICRUDServiceSysDept, long, SysDeptInput, DeptFilter, IOperationLogModule, IPagingServiceSysDept, long, DeptFilter, ISortableCRUDServiceSysDept, long, SysDeptInput, DeptFilter

Properties

OPModule 获取操作模块的名称。
(Inherited from IOperationLogModule)
OPObject 获取操作对象的名称。
(Inherited from IOperationLogModule)

Methods

Add 添加实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
AddAsync 添加实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
AddDeptAsync 添加部门。
BulkAdd 批量添加实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
BulkAddAsync 批量添加实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
BulkDelete 批量删除实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
BulkDeleteAsync 批量删除实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
BulkUpdate 批量更新实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
BulkUpdateAsync 批量更新实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
CascadeDeleteAsync 级联删除指定部门。
ChildNodesToTextAsync 用指定父部门的各级子部门的部门名称,生成一个文本,该文本中每行一个部门,并使用空格缩进表示父子关系。
Delete(TKey) 删除指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
Delete(TKey) 删除实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
DeleteAsync(TKey, CancellationToken) 删除指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
DeleteAsync(TKey, CancellationToken) 删除实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
DeleteByFilter 删除指定过滤器代表的实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
DeleteByFilterAsync 删除指定过滤器代表的实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
DeleteDeptAsync 删除指定部门。
Exists 检测指定实体是否存在。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
ExistsAsync 检测指定实体是否存在。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
Get 获取指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
GetAsync 获取指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
GetAvailableDeptTypesAsync 获取部门类型列表。
GetDeptPath 获取指定部门的部门路径。
GetDeptPathAsync 获取指定部门的部门路径。
GetDirectChildren 获取指定父部门的直接子部门(不递归,不含父部门),且列表中的记录将按照 DisplayOrder 升序排序。
GetDirectChildrenAsync 获取指定父部门的直接子部门(不递归,不含父部门),且列表中的记录将按照 DisplayOrder 升序排序。
GetDirectChildrenIds 获取指定父部门的直接子部门的 Id(不递归,不含父部门 Id),且找到的 Id 将按照记录的 DisplayOrder 升序排序。
GetDirectChildrenIdsAsync 获取指定父部门的直接子部门的 Id(不递归,不含父部门 Id),且找到的 Id 将按照记录的 DisplayOrder 升序排序。
GetDtoPagingOutputTDto 执行查询,并返回指定页码的,把 TEntity 映射为 TDto 后的数据。
(Inherited from IPagingServiceTEntity, TKey, TFilter)
GetDtoPagingOutputAsyncTDto 执行查询,并返回指定页码的,把 TEntity 映射为 TDto 后的数据。
(Inherited from IPagingServiceTEntity, TKey, TFilter)
GetPagingOutput 执行查询,并返回指定页码的数据。
(Inherited from IPagingServiceTEntity, TKey, TFilter)
GetPagingOutputAsync 执行查询,并返回指定页码的数据。
(Inherited from IPagingServiceTEntity, TKey, TFilter)
GetParent 获取指定子部门的指定级别父部门。
GetParentAsync 获取指定子部门的指定级别父部门。
GetSelfAndChildrenIdsRecursive 获取指定父部门的所有子部门的 Id(递归查询,结果包含父部门 Id)。
GetSelfAndChildrenIdsRecursiveAsync 获取指定父部门的所有子部门的 Id(递归查询,结果包含父部门 Id)。
GetSelfAndChildrenRecursive 获取指定父部门的所有子部门(递归查询,结果包含父部门)。
GetSelfAndChildrenRecursiveAsync 获取指定父部门的所有子部门(递归查询,结果包含父记录)。
GetSelfAndParents 获取指定子部门及其所有父部门。
GetSelfAndParentsAsync 获取指定子部门及其所有父部门。
GetSelfAndParentsIds 获取指定子部门及其所有父部门 的 Id
GetSelfAndParentsIdsAsync 获取指定子部门及其所有父部门 的 Id
GetSelfAndParentsList 获取一个部门列表,包含指定子部门及其所有的父部门。
GetSelfAndParentsListAsync 获取一个部门列表,包含指定子部门及其所有的父部门。
GetSelfOrParent 获取指定子部门的指定级别父部门或其自己。
GetSelfOrParentAsync 获取指定子部门的指定级别父部门或其自己。
GetSimulateTreeList 获取指定父部门的所有子部门(递归查询,结果包含父部门),并加工为模拟树形列表,且列表中的记录将按照 DisplayOrder 升序排序。
GetSimulateTreeListAsync 获取指定父部门的所有子部门(递归查询,结果包含父部门),并加工为模拟树形列表,且列表中的记录将按照 DisplayOrder 升序排序。
GetSpecifiedLevelDept 在指定部门的树路径上,查找指定数据范围级别指向的部门。
GetSpecifiedLevelDeptAsync 在指定部门的树路径上,查找指定数据范围级别指向的部门。
GetTopMostDept(long) 从指定的 Id 数组对应的各个部门中,查找并返回层级最高的那个部门。
GetTopMostDept(SysDept, long) 从指定部门,以及传入的 Id 数组对应的各个部门中,查找并返回层级最高的那个部门。
GetTopMostDeptAsync(long, CancellationToken) 从指定的 Id 数组对应的各个部门中,查找并返回层级最高的那个部门。
GetTopMostDeptAsync(SysDept, long, CancellationToken) 从指定部门,以及传入的 Id 数组对应的各个部门中,查找并返回层级最高的那个部门。
GetTreeList 获取指定父部门的所有子部门(递归查询,结果包含父部门),并加工为树形列表,且列表中的记录将按照 DisplayOrder 升序排序。
GetTreeListAsync 获取指定父部门的所有子部门(递归查询,结果包含父部门),并加工为树形列表,且列表中的记录将按照 DisplayOrder 升序排序。
GetUserSpecifiedLevelDept 在指定用户所属部门的树路径上,查找指定数据范围级别指向的部门。
GetUserSpecifiedLevelDeptAsync 在指定用户所属部门的树路径上,查找指定数据范围级别指向的部门。
IsParentOf 检测两个部门是否具有父子关系。
IsParentOfAsync 检测两个部门是否具有父子关系。
IsSameOrParentOf 检测两个部门是否相同或者具有父子关系。
IsSameOrParentOfAsync 检测两个部门是否相同或者具有父子关系。
IsUserBelongsToDept 检查指定用户是否属于指定部门或其子部门。
IsUserBelongsToDeptAsync(long, long, CancellationToken) 检查指定用户是否属于指定部门或其子部门。
IsUserBelongsToDeptAsync(long, long, CancellationToken) 检查指定用户是否属于指定部门或其子部门。
MapFromInput 由实体输入构造实体对象。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
MapToInput 由实体对象构造实体输入。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
MoveEntityAndResetDisplayOrder 移动指定记录并重置所有受影响记录的显示顺序。
(Inherited from ISortableCRUDServiceTEntity, TKey, TInput, TFilter)
MoveEntityAndResetDisplayOrderAsync 移动指定记录并重置所有受影响记录的显示顺序。
(Inherited from ISortableCRUDServiceTEntity, TKey, TInput, TFilter)
QuickAddAsync 快速添加部门。
RawCount 按指定过滤条件查询记录数。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawCountAsync 按指定过滤条件查询记录数。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawExists 直接检测指定实体是否存在。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawExistsAsync 直接检测指定实体是否存在。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawGet 直接获取指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawGetAsync 直接获取指定实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawGetSpecificDataTReturn 查找指定实体,并返回指定类型的数据。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawGetSpecificDataAsyncTReturn 查找指定实体,并返回指定类型的数据。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQuery 直接按指定过滤器查询实体列表。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQueryAsync(TFilter, CancellationToken) 直接按指定过滤器查询实体列表。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQueryAsync(TFilter, string, string, CancellationToken) 直接按指定过滤器查询实体列表。可指定排序。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQueryDtoTDto 查询并返回将 TEntity 映射为 TDto 后的数据列表。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQueryDtoAsyncTDto(ExpressionFuncTEntity, TDto, TFilter, FuncISelectTEntity, ISelectTEntity, CancellationToken) 查询并返回将 TEntity 映射为 TDto 后的数据列表。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
RawQueryDtoAsyncTDto(ExpressionFuncTEntity, TDto, TFilter, string, string, FuncISelectTEntity, ISelectTEntity, CancellationToken) 查询并返回将 TEntity 映射为 TDto 后的数据列表。可指定排序。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
SetDeptPath 设置指定实体的部门路径属性。
SetDeptPathAsync 设置指定实体的部门路径属性。
SetDeptPaths 设置列表中各实体的部门路径属性。
SetDeptPathsAsync 设置列表中各实体的部门路径属性。
SetDeptTypeNameAsync 设置指定部门实体的 TypeName 属性。
SetDeptTypeNamesAsync 设置指定列表里各个部门实体的 TypeName 属性。
SetParents 递归设置指定子实体的各级父实体。
SetParentsAsync 递归设置指定子实体的各级父实体。
Update 更新实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)
UpdateAsync 更新实体。
(Inherited from ICRUDServiceTEntity, TKey, TInput, TFilter)

See Also