protected void BindMaterial() { LotteryActivityQuery page = new LotteryActivityQuery { ActivityType = (LotteryActivityType) this.type, PageIndex = this.pager.PageIndex, PageSize = this.pager.PageSize, SortBy = "ActivityId", SortOrder = SortAction.Desc }; DbQueryResult lotteryActivityList = VShopHelper.GetLotteryActivityList(page); this.rpMaterial.DataSource = lotteryActivityList.Data; this.rpMaterial.DataBind(); this.pager.TotalRecords = lotteryActivityList.TotalRecords; }
public static DbQueryResult GetLotteryTicketList(LotteryActivityQuery page) { return new LotteryActivityDao().GetLotteryTicketList(page); }
public DbQueryResult GetLotteryTicketList(LotteryActivityQuery page) { StringBuilder builder = new StringBuilder(); if (page.ActivityType != ((LotteryActivityType) 0)) { builder.AppendFormat("ActivityType={0}", (int) page.ActivityType); } return DataHelper.PagingByRownumber(page.PageIndex, page.PageSize, page.SortBy, page.SortOrder, page.IsCount, "Vshop_LotteryActivity", "ActivityId", builder.ToString(), "*"); }