2
schangxiang@126.com
2024-08-16 b47c50a2a514def7374b32d7194b2c599cba5625
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
using FineUIPro;
using iWareDataCore.Report.PlaceMaterial.Helper;
using iWareDataCore.Report.PlaceMaterial.Service;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace iWareWms.View.Echarts.PlaceMaterial.Detail
{
    public partial class Top : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string dateStart = Request.QueryString["dateStart"];
                string dateEnd = Request.QueryString["dateEnd"];
 
                var barOptions = String.Empty;
 
                if (string.IsNullOrEmpty(dateStart) && string.IsNullOrEmpty(dateEnd))
                {
                    dateStart = DateTime.Now.AddDays(-9).ToShortDateString();//默认加载十天数据
                    dateEnd = DateTime.Now.AddDays(1).ToShortDateString();
                }
                List<PlaceMaterialHelper> data = PlaceMaterialViewService.GetInstance().GetMaterialByType();
 
               
 
                var a = JsonConvert.SerializeObject(data);
                PageContext.RegisterStartupScript("dom1Load(" + a + ");");
 
            }
        }
    }
}