/// <summary> /// 查询他的子节点 /// </summary> /// <param name="en"></param> /// <returns></returns> public int RetrieveHisChinren(EntitySimpleTree en) { int i = this.Retrieve(EntitySimpleTreeAttr.ParentNo, en.No); this.AddEntity(en); return(i + 1); }
/// <summary> /// 获取它的子节点 /// </summary> /// <param name="en"></param> /// <returns></returns> public EntitiesTree GenerHisChinren(EntitySimpleTree en) { EntitiesTree ens = this.CreateInstance() as EntitiesTree; foreach (EntitySimpleTree item in ens) { if (en.ParentNo == en.No) { ens.AddEntity(item); } } return(ens); }