Ejemplo n.º 1
0
        public static string GetCacheFileName2(int organizationID, int userID, int size)
        {
            string cachePath = Path.Combine(AttachmentPath.GetImageCachePath(LoginUser.Anonymous), "HubLogo\\" + organizationID.ToString());

            if (!Directory.Exists(cachePath))
            {
                Directory.CreateDirectory(cachePath);
            }
            string cacheFileName = Path.Combine(cachePath, userID.ToString() + "-" + size.ToString() + ".jpg");

            return(cacheFileName);
        }
Ejemplo n.º 2
0
        public static string GetCacheFileName1(string initial, int size)
        {
            string cachePath = Path.Combine(AttachmentPath.GetImageCachePath(LoginUser.Anonymous), "Initials");

            if (!Directory.Exists(cachePath))
            {
                Directory.CreateDirectory(cachePath);
            }
            string cacheFileName = Path.Combine(cachePath, initial + "-" + size.ToString() + ".jpg");

            return(cacheFileName);
        }
Ejemplo n.º 3
0
        public static string GetCacheFileName4(int organizationParentId, int userId, int size, string type, out bool isIndexPage)
        {
            string cachePath = Path.Combine(AttachmentPath.GetImageCachePath(LoginUser.Anonymous), "Avatars\\" + organizationParentId.ToString() + "\\Contacts\\");

            isIndexPage = !string.IsNullOrEmpty(type) && type.ToLower() == "index";

            if (!Directory.Exists(cachePath))
            {
                Directory.CreateDirectory(cachePath);
            }

            string cacheFileName = Path.Combine(cachePath, string.Format("{0}-{1}{2}.jpg", userId.ToString(), size.ToString(), string.IsNullOrEmpty(type) ? "" : "-" + type));

            return(cacheFileName);
        }
Ejemplo n.º 4
0
        public static string GetChacheFileName3(int organizationID, int logoOrganizationId, int size, string type, out bool isIndexPage)
        {
            string cachePath = Path.Combine(AttachmentPath.GetImageCachePath(LoginUser.Anonymous), "CompanyLogo\\" + organizationID.ToString());

            isIndexPage = !string.IsNullOrEmpty(type) && type.ToLower() == "index";

            if (!Directory.Exists(cachePath))
            {
                Directory.CreateDirectory(cachePath);
            }

            string cacheFileName = Path.Combine(cachePath, string.Format("{0}-{1}{2}.jpg", logoOrganizationId.ToString(), size.ToString(), string.IsNullOrEmpty(type) ? "" : "-" + type));

            return(cacheFileName);
        }
Ejemplo n.º 5
0
 public static string GetAttachmentPath13(LoginUser loginUser, int organizationParentId)
 {
     return(System.IO.Path.Combine(AttachmentPath.GetImageCachePath(loginUser), "Avatars\\" + organizationParentId.ToString() + "\\Contacts\\"));
 }
Ejemplo n.º 6
0
 public static string GetAttachmentPath11(LoginUser loginUser, string parentID)
 {
     return(System.IO.Path.Combine(AttachmentPath.GetImageCachePath(loginUser), "CompanyLogo\\" + parentID));
 }
Ejemplo n.º 7
0
 public static string GetImageCachePath1(int organizationID)
 {
     return(Path.Combine(AttachmentPath.GetImageCachePath(LoginUser.Anonymous), "Avatars\\" + organizationID.ToString()));
 }