private void GetTreeNodeList(List<BaseDeptLayer> _layerlist, BaseDeptLayer _layer, treeNode _node)
 {
     List<BaseDeptLayer> list = _layerlist.FindAll(x => x.PId == _layer.LayerId);
     if (list.Count > 0)
     {
         _node.children = new List<treeNode>();
         for (int i = 0; i < list.Count; i++)
         {
             treeNode node = new treeNode(list[i].LayerId, list[i].Name);
             GetTreeNodeList(_layerlist, list[i], node);
             _node.children.Add(node);
         }
     }
 }
Exemplo n.º 2
0
 public void SaveDeptLayer(BaseDeptLayer layer)
 {
     layer.save();
 }