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 data = PlaceMaterialViewService.GetInstance().GetMaterialByType(); var a = JsonConvert.SerializeObject(data); PageContext.RegisterStartupScript("dom1Load(" + a + ");"); } } } }