摘要: 1 /// 2 /// 将树形结构生成Json字符串 3 /// 4 /// 传入的树形结构DataTable 5 /// 子级ID列名 6 /// 父级ID列名 7 /// 内容列列名 8 ... 阅读全文
posted @ 2014-11-27 10:10 nicky0227 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 递归算法,将叶子节点存入一个空的stringbuilder变量 1 private void GetLeafIDSb(StringBuilder result, DataTable dt, string childColumnName, string parentColumnName, int Id... 阅读全文
posted @ 2014-11-27 10:00 nicky0227 阅读(452) 评论(0) 推荐(0) 编辑