Ejemplo n.º 1
0
 public Table()
 {
     FileHelper helper = new FileHelper();
     this.table.AppendLine(helper.ReadFileContent(ServerInfo.GetServerPath() + @"admin\include\table.htm"));
     helper = null;
 }
Ejemplo n.º 2
0
 public static string VersionInformation()
 {
     FileHelper helper = new FileHelper();
     return helper.ReadFileContent(HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"] + "admin/vesion.ini").Trim();
 }
Ejemplo n.º 3
0
 private void DelAlbum(string Alubmid)
 {
     ShowShop.BLL.Product.ProductAlbum pabll = new ShowShop.BLL.Product.ProductAlbum();
     ShowShop.Model.Product.ProductAlbum pamodel = pabll.GetModelID(Convert.ToInt32(Alubmid));
     if (pamodel != null)
     {
         ChangeHope.Common.FileHelper fh = new ChangeHope.Common.FileHelper();
         if (!string.IsNullOrEmpty(pamodel.OriginalAddress))
         {
             fh.DeleteFile(Server.MapPath("~//" + pamodel.OriginalAddress));
         }
         if (!string.IsNullOrEmpty(pamodel.ThumbnailAddress))
         {
             fh.DeleteFile(Server.MapPath("~//" + pamodel.ThumbnailAddress));
         }
         Response.Write(this.bindAlbum(pamodel.Productid));
     }
     pabll.Delete(Convert.ToInt32(Alubmid));
 }