/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); int articleID = RequestHelper.GetQueryString <int>("ID"); article = ArticleBLL.Read(articleID); if (article.ClassId != string.Empty) { article.ClassId = article.ClassId.Substring(1); articleClassID = Convert.ToInt32(article.ClassId.Substring(0, article.ClassId.IndexOf('|'))); } newsClassList = ArticleClassBLL.ReadChilds(38); Title = article.Title; Keywords = (article.Keywords == string.Empty) ? article.Title : article.Keywords; Description = (article.Summary == string.Empty) ? StringHelper.Substring(StringHelper.KillHTML(article.Content), 200) : article.Summary; List <ArticleInfo> nextPreList = new List <ArticleInfo>(); ArticleInfo thisArtInfo = ArticleBLL.SearchListRowNumber(" Id =" + article.Id + "")[0]; nextPreList = ArticleBLL.SearchListRowNumber(" ClassId Like'%" + article.ClassId + "%' and RowNumber>" + thisArtInfo.RowNumber + " Order by RowNumber asc"); if (nextPreList.Count > 0) { NextNews = "<a href=\"/NewsDetail.html?ID=" + nextPreList[0].Id + "\" title=\"" + nextPreList[0].Title + "\">" + StringHelper.Substring(nextPreList[0].Title, 20) + "</a>"; } nextPreList = ArticleBLL.SearchListRowNumber(" ClassId Like'%" + article.ClassId + "%' and RowNumber<" + thisArtInfo.RowNumber + " Order by RowNumber desc"); if (nextPreList.Count > 0) { PreNews = "<a href=\"/NewsDetail.html?ID=" + nextPreList[0].Id + "\" title=\"" + nextPreList[0].Title + "\">" + StringHelper.Substring(nextPreList[0].Title, 20) + "</a>"; } }
protected override void PageLoad() { base.PageLoad(); id = RequestHelper.GetQueryString <int>("id"); if (id <= 0) { id = 63; //关于我们 } int count = 0; article = ArticleBLL.SearchList(1, 1, new ArticleSearchInfo { ClassId = "|" + id + "|" }, ref count).FirstOrDefault() ?? new ArticleInfo(); articleClassList = ArticleClassBLL.ReadChilds(63); if (id == 63) { id = int.Parse(article.ClassId.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries).Last()); } thisClass = ArticleClassBLL.Read(id); int topClassID = 0; ArticleClassBLL.GetTopClassID(id, ref topClassID); topClass = ArticleClassBLL.Read(topClassID); Title = article.Title; Keywords = string.IsNullOrEmpty(article.Keywords) ? article.Title : article.Keywords; Description = string.IsNullOrEmpty(article.Summary) ? StringHelper.Substring(StringHelper.KillHTML(article.Content), 200) : article.Summary; }
protected override void PageLoad() { base.PageLoad(); topNav = 8; helpClassList = ArticleClassBLL.ReadChilds(ArticleClass.Help); id = RequestHelper.GetQueryString <int>("id"); if (id == int.MinValue && helpClassList.Count > 0) { id = helpClassList[0].Id; } if (id > 0) { if (ArticleClassBLL.Read(id).ParentId == 2) { fatherID = id; artId = ArticleClassBLL.ReadChilds(id)[0].Id; } else { fatherID = ArticleClassBLL.Read(id).ParentId; artId = id; } ArticleSearchInfo articleSearch = new ArticleSearchInfo(); articleSearch.ClassId = "|" + artId.ToString() + "|"; articleList = ArticleBLL.SearchList(articleSearch); } Title = "帮助中心"; }
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(); topNavMenuList = NavMenuBLL.ReadList(true); }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); id = RequestHelper.GetQueryString <int>("ID"); if (id <= 0) { id = 38; } thisClass = ArticleClassBLL.Read(id); newsClassList = ArticleClassBLL.ReadChilds(id); Title = thisClass.Name; Keywords = thisClass.Name; Description = thisClass.Description; }
protected override void PageLoad() { base.PageLoad(); topNav = 8; id = RequestHelper.GetQueryString <int>("id"); if (id <= 0) { id = ArticleClass.Help; //默认帮助中心 } var chlidList = ArticleClassBLL.ReadChilds(ArticleClass.Help); if (id == ArticleClass.Help && chlidList.Count > 0) { id = chlidList[0].Id; } fullClassId = ArticleClassBLL.ReadArticleClassFullFatherID(id); int currentPage = RequestHelper.GetQueryString <int>("Page"); if (currentPage < 1) { currentPage = 1; } int pageSize = 10; int count = 0; articleList = ArticleBLL.SearchList(currentPage, pageSize, new ArticleSearchInfo { ClassId = "|" + id + "|" }, ref count); pagerclass.CurrentPage = currentPage; pagerclass.PageSize = pageSize; pagerclass.Count = count; pagerclass.FirstPage = "<<首页"; pagerclass.PreviewPage = "<<上一页"; pagerclass.NextPage = "下一页>>"; pagerclass.LastPage = "末页>>"; pagerclass.ListType = false; pagerclass.DisCount = false; pagerclass.PrenextType = true; pagerclass.URL = "/Help-C" + id + "-P$Page.html"; Title = ArticleClassBLL.Read(id).Name; //Keywords = string.IsNullOrEmpty(article.Keywords) ? article.Title : article.Keywords; //Description = string.IsNullOrEmpty(article.Summary) ? StringHelper.Substring(StringHelper.KillHTML(article.Content), 200) : article.Summary; }
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(); }