mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
采用ACE界面
This commit is contained in:
@@ -3,6 +3,7 @@ using OpenAuth.Domain.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenAuth.App.ViewModel;
|
||||
|
||||
namespace OpenAuth.App
|
||||
{
|
||||
@@ -37,11 +38,19 @@ namespace OpenAuth.App
|
||||
/// 得到部门的所有子部门
|
||||
/// <para>如果orgId为0,表示取得所有部门</para>
|
||||
/// </summary>
|
||||
public IList<Org> LoadAllChildren(Guid orgId)
|
||||
public GridData LoadAllChildren(Guid orgId)
|
||||
{
|
||||
return _repository.GetSubOrgs(orgId).ToList();
|
||||
var query = _repository.GetSubOrgs(orgId);
|
||||
return new GridData
|
||||
{
|
||||
page = 1,
|
||||
rows = query.ToList(),
|
||||
records = query.Count(),
|
||||
total = 1
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加部门
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user