using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZXDT.Common
{
    public class TreeModel
    {
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 编号
        /// </summary>
        private string _code;
        public string code {
            set { _code = value; }
            get { return _code; }
        }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int parentid { get; set; } = 0;

        private string _iconcls;
        /// <summary>
        /// 图标
        /// </summary>
        public string iconcls
        {
            set { _iconcls = value; }
            get { return _iconcls; }
        }
        private string _text;
        /// <summary>
        /// 树节点显示文本
        /// </summary>
        public string text
        {
            set { _text = value; }
            get { return _text; }
        }
        private List<TreeModel> _children=null;
        public List<TreeModel> children
        {
            set { _children = value; }
            get { return _children; }
        }
    }
}
