namespace YLErp.Web.Models
{
///
/// 用于ztree控件的数据模型
///
public class ZTreeModel
{
public string name { get; set; }
public bool open { get; set; }
public List children { get; set; }
public void AppenChild(ZTreeModel model)
{
if (model == null)
{
throw new System.ArgumentNullException(nameof(model));
}
if (children == null)
{
children = new List();
}
children.Add(model);
}
}
}