コード例 #1
0
        //------------------------------------------
        #endregion

        #region --------------GetItemsPhotoThumbnail--------------
        public static string GetPhotoThumbnail(object photoID, object photoExtension, int width, int height, object ownerName, object ModuleTypeID, object CategoryID, object ItemID)
        {
            if (photoExtension.ToString().Length > 0)
            {
                string photoName = Photos.GetPhotoName((string)photoExtension, PhotoTypes.Big, ItemsFilesEntity.FileIdentifre, (int)photoID);
                string path      = DCSiteUrls.GetPath_ItemsFiles((string)ownerName, (int)ModuleTypeID, (int)CategoryID, (int)ItemID) + photoName;

                //return DCSiteUrls.GetPath_ItemsPhotoNormalThumbs ((string)ownerName) + CreateItemsPhotoName((int)itemID) + MoversFW.Thumbs.thumbnailExetnsion;
                return("/Thumbnails/Maker1.aspx?file=" + path + "&W=" + width + "&H=" + height);
            }
            else
            {
                return(SiteDesign.NoPhotoPath);
            }
        }
コード例 #2
0
        public static string GetPhotoPath(PhotoTypes photo, object _PhotoID, object _photoExtension, object ownerName, object ModuleTypeID, object CategoryID, object ItemID)
        {
            if (((string)_photoExtension).Length > 0)
            {
                string photoName = Photos.GetPhotoName((string)_photoExtension, photo, FileIdentifre, (int)_PhotoID);

                string path     = DCSiteUrls.GetPath_ItemsFiles((string)ownerName, (int)ModuleTypeID, (int)CategoryID, (int)ItemID) + photoName;
                string realPath = string.Format(path, _PhotoID.ToString());
                return(realPath);
            }
            else
            {
                return(SiteDesign.NoPhotoPath);
            }
        }
コード例 #3
0
 public string GetPhotoName(PhotoTypes photo)
 {
     return(Photos.GetPhotoName(_FileExtension, photo, FileIdentifre, _FileID));
 }
コード例 #4
0
 //------------------------------------------
 #endregion
 public string GetOldOriginalPhotoName(string photoExtension)
 {
     return(Photos.GetPhotoName(photoExtension, PhotoTypes.Original, FileIdentifre, _FileID));
 }