RCLHelperGetDeptDropDownListDataSource Method

获取部门下列框数据源。

Definition

Namespace: QuickAdmin.RCL
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
C#
public static CRUDProxyDropDownListDataSource GetDeptDropDownListDataSource(
	string rootId = null,
	int? maxLevel = null,
	string deptIdTryToSelect = null
)

Parameters

rootId  string  (Optional)
根机构 Id,若不提供将获取全部组织机构。
maxLevel  int?  (Optional)
指示最大返回从 rootId 开始的第几层数据。从 1 开始,即 rootId 为第一层, 传入小于 1 的数值与传入 null 的效果一样,不会限制返回层级。
deptIdTryToSelect  string  (Optional)
要选中的机构 Id 值。
若提供了此参数且所获取的机构列表里包含该机构,将把返回对象的 InitValue 置为该机构 Id。 比较时没有区分大小写。

Return Value

CRUDProxyDropDownListDataSource
下列框数据源对象,其 Data 为部门模拟树形列表,TextPropertyName"Name"ValuePropertyName"Id"TreeLevelPropertyName"NodeLevel"

See Also