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
using iWareDataCore.BASE.EnumType;
using iWareDataCore.Report.PlaceMaterial.Service;
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
{
    public partial class PlaceMaterial : PageBase
    {
 
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              
                BindGrid();
 
            }
 
        }
 
        private void LoadData()
        {
        
            BindGrid();
        }
 
        private void BindGrid()
        {
            var data1 = PlaceMaterialViewService.GetInstance().GetMaterialByType();
 
            Grid1.DataSource = data1;
            Grid1.DataBind();
 
         
        }
 
 
        protected void btnFind_Click(object sender, EventArgs e)
        {
            BindGrid();
 
        }
 
    }
}