示例#1
0
        /// <summary>
        /// 生成文件并递归
        /// </summary>
        /// <param name="CreateParentID">是否生成子节点静态</param>
        /// <param name="NodeID">节点ID</param>
        /// <param name="NodeLinkUrl">节点物理链接地址</param>
        private void GetReCreate(bool CreateParentID, int NodeID, string NodeLinkUrl)
        {
            if (FileList.IndexOf(NodeLinkUrl) == -1 && NodeLinkUrl.IndexOf("http:") == 0)
            {
                FileList.Add(NodeLinkUrl);
                CreateFile(NodeLinkUrl, NodeID);//生成节点静态文件

                if (CreateParentID)
                {
                    DataTable NodePlist = nll.SelByPid(NodeID);
                    for (int p = 0; p < NodePlist.Rows.Count; p++)
                    {
                        CreateListFile(NodePlist.Rows[p]["NodeID"].ToString(), CreateParentID);//递归生成,节点递归
                    }
                }
            }
        }