コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: VShopHelper.cs プロジェクト: ZhangVic/asp1110git
 public static DbQueryResult GetLotteryTicketList(LotteryActivityQuery page)
 {
     return new LotteryActivityDao().GetLotteryTicketList(page);
 }
コード例 #3
0
 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(), "*");
 }