Exemplo n.º 1
0
        public string tree(object sender, EventArgs e)
        {
            //string url = @"'../A3.3FileArch";

            //string strPath = Server.MapPath(@"..\A3.3FileArch\");
            //DirectoryInfo d = new DirectoryInfo(strPath);
            //ArrayList Flst = new ArrayList();
            //Flst.Add(GetAll(d, url));
            File_Cat_Manager fcm = new File_Cat_Manager();
            var Flst             = fcm.BuildCatTree();

            string result = Newtonsoft.Json.JsonConvert.SerializeObject(Flst);

            return(result);
        }
Exemplo n.º 2
0
        public bool AddFileCatalog(int parentID, string newCataName)
        {
            File_Cat_Manager fcm = new File_Cat_Manager();

            return(fcm.AddNewCatalog(parentID, newCataName));
        }