private void BindGrid(IQueryable <TH_HAZALOCA> haza_loca)
        {
            var pagehelper = new PageSpreadHelper <TH_HAZALOCA>(haza_loca, this.HAZALOCAGrid.PageSize);

            // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount)
            this.HAZALOCAGrid.RecordCount = pagehelper.TotalCount;

            // 2.获取当前分页数据

            var paged_source = pagehelper.PagedDataSource(this.HAZALOCAGrid.PageIndex);

            // 3.绑定到Grid
            this.HAZALOCAGrid.DataSource = paged_source;
            this.HAZALOCAGrid.DataBind();
        }
        public void HAZAColomn(IQueryable<TH_THAZA01> hazalist)
        {
            var newhazalist = hazalist.OrderBy(x => x.ID);
            var pagehelper = new PageSpreadHelper<TH_THAZA01>(newhazalist, this.HAZAGrid.PageSize);

            // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount)
            this.HAZAGrid.RecordCount = pagehelper.TotalCount;

            // 2.获取当前分页数据

            var paged_source = pagehelper.PagedDataSource(this.HAZAGrid.PageIndex);
            // 3.绑定到Grid
            this.HAZAGrid.DataSource = paged_source;
            this.HAZAGrid.DataBind();

        }
        private void BindGrid(IQueryable <TH_TRISK01> risk_list)
        {
            var newList    = risk_list.OrderBy(x => x.RISK_ID);
            var pagehelper = new PageSpreadHelper <TH_TRISK01>(risk_list, this.HAZA_RISKGrid.PageSize);

            // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount)
            this.HAZA_RISKGrid.RecordCount = pagehelper.TotalCount;

            // 2.获取当前分页数据

            var paged_source = pagehelper.PagedDataSource(this.HAZA_RISKGrid.PageIndex);

            this.HAZA_RISKGrid.DataSource = paged_source;
            this.HAZA_RISKGrid.DataBind();
            // 3.绑定到Grid
        }