Exemple #1
0
        public ActionResult FileManager()
        {
            string RootFolder = string.Empty;
            ELTFileSystemProvider provider = new ELTFileSystemProvider(RootFolder);

            return(PartialView("FileManager", provider));
        }
Exemple #2
0
        public ActionResult DocumentManager(string param)
        {
            string RootFolder = string.Empty;
            ELTFileSystemProvider provider = new ELTFileSystemProvider(RootFolder);
            FileSystemBL          bl       = new FileSystemBL();
            int id         = bl.GetRootFileItemID(User.Identity.Name);
            var rootfolder = bl.GetFileByID(id);

            ViewBag.InitialFolder = rootfolder.Name;
            if (Session["FileFolderToBeSet"] != null)
            {
                ViewBag.InitialFolder        = (string)Session["FileFolderToBeSet"];
                Session["FileFolderToBeSet"] = null;
            }

            if (param != null)
            {
                param = "?" + param;
            }
            ViewBag.Params = param;
            return(View(provider));
        }
Exemple #3
0
        public ActionResult FileAttacher()
        {
            string ItemID    = Request.QueryString["itemid"];
            string EmailType = Request.QueryString["EmailType"];

            ViewBag.ItemID    = ItemID;
            ViewBag.EmailType = EmailType;

            //these two will be viewbag item to the client !
            string RootFolder = string.Empty;
            ELTFileSystemProvider provider = new ELTFileSystemProvider(RootFolder);
            FileSystemBL          bl       = new FileSystemBL();
            int id         = bl.GetRootFileItemID(User.Identity.Name);
            var rootfolder = bl.GetFileByID(id);

            ViewBag.InitialFolder = rootfolder.Name;
            if (Session["FileFolderToBeSet"] != null)
            {
                ViewBag.InitialFolder        = (string)Session["FileFolderToBeSet"];
                Session["FileFolderToBeSet"] = null;
            }
            return(View("FileAttacher", provider));
        }