private void BindBundlingProducts() { BundlingInfoQuery query = new BundlingInfoQuery(); query.ProductName = this.productName; query.PageIndex = this.pager.PageIndex; query.PageSize = this.pager.PageSize; query.SortBy = "DisplaySequence"; query.SortOrder = SortAction.Desc; DbQueryResult bundlingProducts = PromoteHelper.GetBundlingProducts(query); this.grdBundlingList.DataSource = bundlingProducts.Data; this.grdBundlingList.DataBind(); this.pager.TotalRecords = bundlingProducts.TotalRecords; this.pager1.TotalRecords = bundlingProducts.TotalRecords; }
private void BindBundlingProducts() { DbQueryResult bundlingProducts = PromoteHelper.GetBundlingProducts(new BundlingInfoQuery { ProductName = this.productName, PageIndex = this.pager.PageIndex, PageSize = this.pager.PageSize, SortBy = "DisplaySequence", SortOrder = SortAction.Desc, SupplierId = UserHelper.GetAssociatedSupplierId(HiContext.Current.User.UserId) }); this.grdBundlingList.DataSource = bundlingProducts.Data; this.grdBundlingList.DataBind(); this.pager.TotalRecords = bundlingProducts.TotalRecords; this.pager1.TotalRecords = bundlingProducts.TotalRecords; }