protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { base.CheckAdminPower("ReadVoteItem", PowerCheckType.Single); string queryString = RequestHelper.GetQueryString <string>("Action"); this.voteID = RequestHelper.GetQueryString <int>("VoteID"); int id = RequestHelper.GetQueryString <int>("ItemID"); if ((queryString != string.Empty) && (id != -2147483648)) { string str2 = queryString; if (str2 != null) { if (!(str2 == "Up")) { if (str2 == "Down") { VoteItemBLL.ChangeVoteItemOrder(ChangeAction.Down, id); } } else { VoteItemBLL.ChangeVoteItemOrder(ChangeAction.Up, id); } } } int num2 = RequestHelper.GetQueryString <int>("ID"); if (num2 != -2147483648) { VoteItemInfo info = VoteItemBLL.ReadVoteItem(num2); this.ItemName.Text = info.ItemName; } base.BindControl(VoteItemBLL.ReadVoteItemByVote(this.voteID), this.RecordList); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { base.CheckAdminPower("ReadVoteRecord", PowerCheckType.Single); int queryString = RequestHelper.GetQueryString <int>("VoteID"); this.voteItemList = VoteItemBLL.ReadVoteItemByVote(queryString); base.BindControl(VoteRecordBLL.ReadVoteRecordList(queryString, base.CurrentPage, base.PageSize, ref this.Count), this.RecordList, this.MyPager); } }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); int voteID = ShopConfig.ReadConfigInfo().VoteID; action = RequestHelper.GetQueryString <string>("Action"); switch (action) { case "Vote": Vote(voteID); break; case "View": break; case "Prepare": break; default: break; } vote = VoteBLL.ReadVote(voteID); voteItemList = VoteItemBLL.ReadVoteItemByVote(voteID); }
protected override void PageLoad() { base.PageLoad(); int voteID = ShopConfig.ReadConfigInfo().VoteID; this.action = RequestHelper.GetQueryString <string>("Action"); string action = this.action; if (action != null) { if (!(action == "Vote")) { if ((action == "View") || (action == "Prepare")) { } } else { this.Vote(voteID); } } this.vote = VoteBLL.ReadVote(voteID); this.voteItemList = VoteItemBLL.ReadVoteItemByVote(voteID); }