using FineUIPro.iWareWms; using iWareCommon.Common.EnumType; using iWareWms.Code.Excel.Service; using System; using System.IO; namespace iWareWms.NonAuth { public partial class Loading : PageBase { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { timer1.Enabled = true; } } protected void LoadingTick(object sender, EventArgs e) { if (!timer1.Enabled) { return; } var path = Session["ExcelPath"] == null ? "" : Session["ExcelPath"].ToString(); if (string.IsNullOrEmpty(path)) { return; } timer1.Enabled = false; var fileInfo = new FileInfo(path); ExcelService.GetInstance().OutputClient(fileInfo); File.Delete(path); Session["ExcelPath"] = ""; Session["ExcelStop"] = (int)EYesOrNo.是; } } }