schangxiang@126.com
3 天以前 3091217d4f4ccecde578ef1abddd810094bfc6bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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.是;
 
            
 
        }
 
 
    }
        
}