using System; using System.Collections.Generic; using System.Text; namespace Ant.Service.Common.ViewModel { /// /// 类描述:针对使用EasyUI中Tree的数据结构 /// 创建标识:add by 季健国 2013-7-25 15:42 /// 更新标识:liuj 2013-12-11 10:47 /// 更新内容:加入customValue1、customValue2、customValue3等三个自定义属性 /// public class EasyuiTree { /// /// 绑定到节点的标识值 /// public string id { get; set; } /// /// 显示的文字 /// public string text { get; set; } /// /// 编码字符 /// public string code { get; set; } /// /// 节点状态 'open' 或 'closed',默认是 'open'。当设为 'closed' 时,此节点有子节点,并且将从远程站点加载它们。 /// public string state { get; set; } /// /// 定义了一些子节点的节点数组 /// public IList children { get; set; } /// /// 节点图标样式 /// public string iconCls { get; set; } /// /// 给一个节点追加的自定义属性 /// edity by liuj 2013-9-17 15:27 将类型改为object /// /// attributes = new { key1 = value1,key2=value2,key3=value3} /// /// public object attributes { get; set; } /// /// 目标的 DOM 对象 /// public object target { get; set; } /// /// 目标的 DOM 对象 /// public bool @checked { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue1 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue2 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue3 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public int customValue4 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue5 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue6 { get; set; } /// /// 自定义扩展属性,以备不时之需 /// public string customValue7 { get; set; } } public class EasyuiTreeGrid { /// /// 绑定到节点的标识值 /// public string id { get; set; } /// /// 名称 /// public string NAME{get;set;} /// /// 节点状态 'open' 或 'closed',默认是 'open'。当设为 'closed' 时,此节点有子节点,并且将从远程站点加载它们。 /// public string state { get; set; } /// /// 定义了一些子节点的节点数组 /// public IList children { get; set; } /// /// 类别 /// public string CodeType { get; set; } /// /// 显示顺序 /// public int ShowOrder { get; set; } /// /// 假删除 /// public int IsDelete { get; set; } /// /// 创建时间 /// public DateTime createDate { get; set; } } }