Exemple #1
0
 private List<string> PhotoPhysicalInfo(int ID)
 {
     List<Maticsoft.Model.SNS.Photos> list = new Maticsoft.BLL.SNS.Photos().UserUploadPhotoList(ID);
     if ((list != null) && (list.Count > 0))
     {
         List<string> list2 = new List<string>();
         foreach (Maticsoft.Model.SNS.Photos photos2 in list)
         {
             if (!string.IsNullOrWhiteSpace(photos2.PhotoUrl) && !photos2.PhotoUrl.StartsWith("http://"))
             {
                 list2.Add(base.Server.MapPath(photos2.PhotoUrl));
                 list2.Add(base.Server.MapPath(photos2.ThumbImageUrl));
                 list2.Add(base.Server.MapPath(photos2.NormalImageUrl));
             }
         }
         if (list2.Count > 0)
         {
             return list2;
         }
     }
     return null;
 }
Exemple #2
0
 private List<string> ProductsPhysicalInfo(int ID)
 {
     List<Maticsoft.Model.SNS.Products> list = new Maticsoft.BLL.SNS.Products().UserUploadPhotoList(ID);
     if ((list != null) && (list.Count > 0))
     {
         List<string> list2 = new List<string>();
         foreach (Maticsoft.Model.SNS.Products products2 in list)
         {
             if (this.RegURL(products2.ProductUrl))
             {
                 list2.Add(base.Server.MapPath(products2.ProductUrl));
             }
             if (this.RegURL(products2.ThumbImageUrl))
             {
                 list2.Add(base.Server.MapPath(products2.ThumbImageUrl));
             }
             if (this.RegURL(products2.NormalImageUrl))
             {
                 list2.Add(base.Server.MapPath(products2.NormalImageUrl));
             }
         }
         if (list2.Count > 0)
         {
             return list2;
         }
     }
     return null;
 }
Exemple #3
0
 private void DeletePhysicalFile(List<string> list)
 {
     foreach (string str in list)
     {
         FileManage.DeleteFile(str);
     }
 }