protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { base.CheckAdminPower("ReadLink", PowerCheckType.Single); string queryString = RequestHelper.GetQueryString <string>("Action"); int id = RequestHelper.GetQueryString <int>("ID"); if ((queryString != string.Empty) && (id != -2147483648)) { base.CheckAdminPower("UpdateLink", PowerCheckType.Single); string str2 = queryString; if (str2 != null) { if (!(str2 == "Up")) { if (str2 == "Down") { LinkBLL.ChangeLinkOrder(ChangeAction.Down, id); } } else { LinkBLL.ChangeLinkOrder(ChangeAction.Up, id); } } AdminLogBLL.AddAdminLog(ShopLanguage.ReadLanguage("MoveRecord"), ShopLanguage.ReadLanguage("Link"), id); } this.classID = RequestHelper.GetQueryString <int>("ClassID"); if (this.classID == -2147483648) { this.classID = 1; } base.BindControl(LinkBLL.ReadLinkCacheListByClass(this.classID), this.RecordList); } }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack) { return; } CheckAdminPower("ReadLink", PowerCheckType.Single); string action = RequestHelper.GetQueryString <string>("Action"); if (action == "Delete") { CheckAdminPower("DeleteLink", PowerCheckType.Single); string deleteID = RequestHelper.GetQueryString <string>("ID"); if (deleteID != string.Empty) { LinkBLL.DeleteLink(deleteID); AdminLogBLL.Add(ShopLanguage.ReadLanguage("DeleteRecord"), ShopLanguage.ReadLanguage("Link"), deleteID); ScriptHelper.Alert(ShopLanguage.ReadLanguage("DeleteOK"), "Link.aspx"); } } int linkID = RequestHelper.GetQueryString <int>("ID"); if (action != string.Empty && linkID != int.MinValue) { CheckAdminPower("UpdateLink", PowerCheckType.Single); switch (action) { case "Up": LinkBLL.ChangeLinkOrder(ChangeAction.Up, linkID); break; case "Down": LinkBLL.ChangeLinkOrder(ChangeAction.Down, linkID); break; default: break; } AdminLogBLL.Add(ShopLanguage.ReadLanguage("MoveRecord"), ShopLanguage.ReadLanguage("Link"), linkID); } classID = RequestHelper.GetQueryString <int>("ClassID"); if (classID == int.MinValue) { classID = 1; } BindControl(LinkBLL.ReadLinkCacheListByClass(classID), RecordList); }
protected override void PageLoad() { ProductClassList = ProductClassBLL.ReadList(); TopBanner = AdImageBLL.ReadList((int)AdImageType.TopBanner).FirstOrDefault() ?? new AdImageInfo(); hotKeyword = ShopConfig.ReadConfigInfo().HotKeyword; productClassList = ProductClassBLL.ReadRootList(); helpClassList = ArticleClassBLL.ReadChilds(ArticleClass.Help); bottomList = ArticleBLL.ReadBottomList(); strHistorySearch = Server.UrlDecode(CookiesHelper.ReadCookieValue("HistorySearch")); textLinkList = LinkBLL.ReadLinkCacheListByClass((int)LinkType.Text); topNavMenuList = NavMenuBLL.ReadList(true); ReadCart(); }
protected override void PageLoad() { base.PageLoad(); topNav = 1; imageList = AdImageBLL.ReadList(); int count = 0; likeProductList = ProductBLL.SearchList(1, 5, new ProductSearchInfo { ProductOrderType = "LikeNum", IsSale = (int)BoolType.True }, ref count); newsList = ArticleBLL.SearchList(1, 7, new ArticleSearchInfo { ClassId = "|1|", IsTop = (int)BoolType.True }, ref count); newProductList = ProductBLL.SearchList(1, 5, new ProductSearchInfo { IsNew = (int)BoolType.True, IsTop = (int)BoolType.True, IsSale = (int)BoolType.True }, ref count); hotProductList = ProductBLL.SearchList(1, 10, new ProductSearchInfo { IsHot = (int)BoolType.True, IsTop = (int)BoolType.True, IsSale = (int)BoolType.True }, ref count); specialProductList = ProductBLL.SearchList(1, 10, new ProductSearchInfo { IsSpecial = (int)BoolType.True, IsTop = (int)BoolType.True, IsSale = (int)BoolType.True }, ref count); textLinkList = LinkBLL.ReadLinkCacheListByClass((int)LinkType.Text); pictureLinkList = LinkBLL.ReadLinkCacheListByClass((int)LinkType.Picture); }