RCLHelperGetDeptDropDownListDataSource Method
获取部门下列框数据源。
Namespace: QuickAdmin.RCLAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
public static CRUDProxyDropDownListDataSource GetDeptDropDownListDataSource(
string rootId = null,
int? maxLevel = null,
string deptIdTryToSelect = null
)
- rootId string (Optional)
- 根机构 Id,若不提供将获取全部组织机构。
- maxLevel int? (Optional)
-
指示最大返回从 rootId 开始的第几层数据。从 1 开始,即 rootId 为第一层,
传入小于 1 的数值与传入 null 的效果一样,不会限制返回层级。
- deptIdTryToSelect string (Optional)
-
要选中的机构 Id 值。
若提供了此参数且所获取的机构列表里包含该机构,将把返回对象的 InitValue 置为该机构 Id。
比较时没有区分大小写。
CRUDProxyDropDownListDataSource
下列框数据源对象,其
Data 为部门模拟树形列表,
TextPropertyName 为
"Name",
ValuePropertyName 为
"Id",
TreeLevelPropertyName 为
"NodeLevel"。