コード例 #1
0
        private void BindData()
        {
            ActivitiesQuery entity = new ActivitiesQuery {
                ActivitiesName = this.ActivitiesName,
                PageIndex      = this.pager.PageIndex,
                PageSize       = this.pager.PageSize,
                SortOrder      = SortAction.Desc,
                SortBy         = "ActivitiesId",
                State          = this.activities
            };

            this.lblStatus.Text = this.activities;
            Globals.EntityCoding(entity, true);
            DbQueryResult activitiesList = VShopHelper.GetActivitiesList(entity);

            this.reActivities.DataSource = activitiesList.Data;
            this.reActivities.DataBind();
            this.pager.TotalRecords = activitiesList.TotalRecords;
        }