You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
7 months ago
|
namespace DS.WMS.Core.Sys.Dtos;
|
||
10 months ago
|
|
||
|
/// <summary>
|
||
|
/// 机构树信息
|
||
|
/// </summary>
|
||
|
public class OrgTree
|
||
|
{
|
||
|
public string Title { get; set; }
|
||
|
|
||
|
public long? Value { get; set; }
|
||
|
|
||
|
public long? ParentId { get; set; }
|
||
|
|
||
|
public List<OrgTree> Children { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 无参构造函数
|
||
|
/// </summary>
|
||
|
public OrgTree()
|
||
|
{
|
||
|
Children = new List<OrgTree>();
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 有参构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="id">子id</param>
|
||
|
/// <param name="name">名称</param>
|
||
|
/// <param name="parentId">父id</param>
|
||
|
public OrgTree(long id, string name, long parentId)
|
||
|
{
|
||
|
this.Value = id;
|
||
|
this.Title = name;
|
||
|
this.ParentId = parentId;
|
||
|
Children = new List<OrgTree>();
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 有参构造函数
|
||
|
/// </summary>
|
||
|
/// <param name="id">子id</param>
|
||
|
/// <param name="name">名称</param>
|
||
|
/// <param name="parent">父节点</param>
|
||
|
public OrgTree(long id, string name, OrgTree parent)
|
||
|
{
|
||
|
this.Value = id;
|
||
|
this.Title = name;
|
||
|
this.ParentId = parent.Value;
|
||
|
Children = new List<OrgTree>();
|
||
|
}
|
||
|
}
|