コード例 #1
0
        protected override void PageLoad()
        {
            base.PageLoad();

            //每日快报
            ArticleSearchInfo articleSearch = new ArticleSearchInfo();

            articleSearch.ClassID = "|29|";
            this.newsList         = ArticleBLL.SearchArticleList(1, 12, articleSearch, ref base.Count);

            //证书
            certList = PostPassBLL.GetTheLatestPostCert(10);
        }
コード例 #2
0
ファイル: Bussiness.cs プロジェクト: xuefuruanjian/ems
        protected override void PageLoad()
        {
            if (StringHelper.CompareSingleString(base.ParentCompanyID, "667"))
            {
                Response.Redirect("/");
            }
            base.PageLoad();
            base.CheckUserPower("PostStudy", PowerCheckType.Single);
            //最新一条信息
            int[] classIDArray = new int[] { 33, 37, 38 };
            foreach (int item in classIDArray)
            {
                ArticleInfo article = ArticleBLL.ReadFirstAtricle(item);
                if (article.Date >= DateTime.Now.AddDays(-7))
                {
                    articleDc.Add(item, article);
                }
            }

            ProductSearchInfo productSearch = new ProductSearchInfo();

            productSearch.IsNew = 1;
            //productSearch.IsTop = 1;
            productSearch.IsSale = 1;
            int count = -2147483648;

            this.newProductList = ProductBLL.SearchProductList(1, 10, productSearch, ref count);

            //每日快报
            ArticleSearchInfo articleSearch = new ArticleSearchInfo();

            articleSearch.ClassID = "|29|";
            this.newsList         = ArticleBLL.SearchArticleList(1, 12, articleSearch, ref base.Count);

            //证书
            certList = PostPassBLL.GetTheLatestPostCert(10);


            attributeRecordList = AttributeRecordBLL.ReadList("1,2,3", ProductBLL.ReadProductIdStr(this.newProductList));
            int studyPostID = int.Parse(CookiesHelper.ReadCookieValue("UserStudyPostId"));
            //this.studyPost = PostBLL.ReadPost(studyPostID);
            string postCourseID = PostBLL.ReadPostCourseID(base.UserCompanyID, studyPostID);

            companyBrandID   = CookiesHelper.ReadCookieValue("UserCompanyBrandID");
            passPostCourseID = string.IsNullOrEmpty(postCourseID) ? "" : TestPaperBLL.ReadCourseIDStr(TestPaperBLL.ReadList(base.UserID, postCourseID, 1));
        }
コード例 #3
0
        protected override void PageLoad()
        {
            if (!StringHelper.CompareSingleString(base.ParentCompanyID, "667") && base.UserID > 0)
            {
                Response.Redirect("/Bussiness.aspx");//User/CourseCenter.aspx
            }
            base.PageLoad();
            //ArticleSearchInfo article = new ArticleSearchInfo();
            //article.ClassID = "|" + 1.ToString() + "|";
            int count = -2147483648;
            //this.newsList = ArticleBLL.SearchArticleList(1, 7, article, ref count);
            ProductSearchInfo product = new ProductSearchInfo();

            product.IsNew = 1;
            //product.IsTop = 1;
            product.IsSale      = 1;
            count               = -2147483648;
            this.newProductList = ProductBLL.SearchProductList(1, 15, product, ref count);
            //product.IsTop = 1;
            //product.IsSale = 1;
            //product.MarketPrice = 0;
            //count = -2147483648;
            //this.freeProductList = ProductBLL.SearchProductList(1, 6, product, ref count);
            //product = new ProductSearchInfo();
            //product.IsHot = 1;
            //product.IsTop = 1;
            //product.IsSale = 1;
            //count = -2147483648;
            //this.hotProductList = ProductBLL.SearchProductList(1, 10, product, ref count);
            //product = new ProductSearchInfo();
            //product.IsSpecial = 1;
            //product.IsTop = 1;
            //product.IsSale = 1;
            //count = -2147483648;
            //this.specialProductList = ProductBLL.SearchProductList(product); //ProductBLL.SearchProductList(1, 10, product, ref count);
            //List<ProductInfo> list = new List<ProductInfo>();
            //list.AddRange(this.newProductList);
            //list.AddRange(this.hotProductList);
            //list.AddRange(this.specialProductList);
            //string strProductID = string.Empty;
            //foreach (ProductInfo info3 in list)
            //{
            //    if (strProductID == string.Empty)
            //    {
            //        strProductID = info3.ID.ToString();
            //    }
            //    else
            //    {
            //        strProductID = strProductID + "," + info3.ID.ToString();
            //    }
            //}
            //if (strProductID != string.Empty)
            //{
            //    this.memberPriceList = MemberPriceBLL.ReadMemberPriceByProductGrade(strProductID, base.GradeID);
            //}
            //this.textLinkList = LinkBLL.ReadLinkCacheListByClass(1);
            //this.pictureLinkList = LinkBLL.ReadLinkCacheListByClass(2);

            attributeRecordList = AttributeRecordBLL.ReadList("1,2,3", ProductBLL.ReadProductIdStr(this.newProductList));

            //每日快报
            ArticleSearchInfo articleSearch = new ArticleSearchInfo();

            articleSearch.ClassID = "|29|";
            this.newsList         = ArticleBLL.SearchArticleList(1, 12, articleSearch, ref base.Count);

            //证书
            certList = PostPassBLL.GetTheLatestPostCert(10);
        }