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.
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 组织机构树
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class OrgTreeNode : ITreeNode
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 父Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long ParentId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 值
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序,越小优先级越高
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Weight { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 子节点
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<OrgTreeNode> Children { get; set; } = new List<OrgTreeNode>();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 上一级Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long Pid { get; set; }
|
|
|
|
|
|
|
|
|
|
public long GetId()
|
|
|
|
|
{
|
|
|
|
|
return Id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long GetPid()
|
|
|
|
|
{
|
|
|
|
|
return ParentId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetChildren(IList children)
|
|
|
|
|
{
|
|
|
|
|
Children = (List<OrgTreeNode>)children;
|
|
|
|
|
}
|
|
|
|
|
}
|