using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CB.Framework; using CB.Entity; using CB.Common; namespace CB.Wap.notice { public partial class index : WebPage { protected string helps = ""; private int pageSize = 12, pageIndex = 1; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } protected override void InitData() { pageIndex = WRequest.GetQueryInt("page"); if (1 > pageIndex) pageIndex = 1; pageSize = pageSize * pageIndex; int number = 0; var count = CB.Data.TopicService.ToList().Count; var list = CB.Data.TopicService.ToPaging(new TopicInfo() { ParentId = 200 }, pageSize, 1, out number); if (list!=null&&list.Count > 0) { foreach (var item in list) { helps += "