Code:Tree

ylbtech-Code:Tree
1.返回顶部
1、
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.WebHelper
{
    public class Tree
    {
        public List<TreeNode> TreeNodes { get; set; }

        public string SelectPath { get; set; }//选中路径

        bool _ShowLine = true;
        public bool ShowLine
        {
            get { return _ShowLine; }
            set { _ShowLine = value; }
        }

        ShowCheckBoxs _ShowCheckBox = ShowCheckBoxs.None;
        public ShowCheckBoxs ShowCheckBox
        {
            get { return _ShowCheckBox; }
            set { _ShowCheckBox = value; }
        }

        int _ExpentDepth=0;
        public int ExpentDepth
        {
            get{ return _ExpentDepth; }
            set{_ExpentDepth = value; }
        }
    }

    public class TreeNode
    {
        public string   TreeNodeID{get;set;}
        public string   Text { get; set; }
        public string   Value { get; set; }
        NodeDispType _NodeDispType = NodeDispType.Span;//0:不是超链接 1:超链接
        public NodeDispType NodeDispType
        {
            get { return _NodeDispType; }
            set { _NodeDispType = value; }
        }
        public bool?    ShowCheckBox { get; set; }
        public bool     Checked {get;set;}
        public string   Tag { get; set; }
        //public bool?    Expanded { get; set; }
        public string   htmlAttr { get; set; }
        public string   ParentTreeNodeID { get; set; }

    }

    public enum ShowCheckBoxs
    { 
        None,
        Root,
        Parent,
        Leaf,
        All
    }

    public enum NodeDispType
    { 
        Alink,
        Button,
        Span
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

猜你喜欢

转载自www.cnblogs.com/storebook/p/12676201.html
今日推荐