Esempio n. 1
0
        private void AddChild(IList <FileNode> fnList, string ch, int deep, int pid)
        {
            string       chartStr = CloneStr(ch, deep);
            IList <File> fileList = _fileBLL.GetFilePersonlTree(pid, LoginUser.UserId);

            if (fileList.Count == 0)
            {
                return;
            }
            foreach (var file in fileList)
            {
                fnList.Add(new FileNode
                {
                    File     = file,
                    ChartStr = chartStr,
                });
                AddChild(fnList, ch, deep + 1, file.FileID);
            }
        }