Ejemplo n.º 1
0
        public static string GetDefaultRoot(LoginUser loginUser, int filePathID)
        {
            FilePaths filePaths = new FilePaths(loginUser);

            filePaths.LoadByID(filePathID);
            string root = filePaths[0].Value;

            return(Path.Combine(root, "Default\\"));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the default path for attachments.
        /// </summary>
        /// <param name="loginUser"></param>
        /// <returns></returns>
        public static string GetDefaultRoot(LoginUser loginUser)
        {
            //string root = SystemSettings.ReadString(loginUser, "FilePath", "C:\\TSData");
            FilePaths filePaths = new FilePaths(loginUser);

            filePaths.LoadByID(1);
            string root = filePaths[0].Value;

            return(Path.Combine(root, "Default\\"));
        }
Ejemplo n.º 3
0
        public static string GetRoot(LoginUser loginUser, int organizationID, int filePathID)
        {
            FilePaths filePath = new FilePaths(loginUser);

            filePath.LoadByID(filePathID);
            string root = filePath[0].Value;
            string path = Path.Combine(Path.Combine(root, "Organizations"), organizationID.ToString());

            Directory.CreateDirectory(path);
            return(path);
        }
        public static FilePath GetFilePath(LoginUser loginUser, int iD)
        {
            FilePaths filePaths = new FilePaths(loginUser);

            filePaths.LoadByID(iD);
            if (filePaths.IsEmpty)
            {
                return(null);
            }
            else
            {
                return(filePaths[0]);
            }
        }
 public FilePath(DataRow row, FilePaths filePaths) : base(row, filePaths)
 {
     _filePaths = filePaths;
 }