コード例 #1
0
ファイル: ChangedList.aspx.cs プロジェクト: eavia/tts
        private void BindChangedList(int GoodsId)
        {
            StoreEntities db =(StoreEntities)ValueOfPage["DataSource"];
            Logic = new GoodsLogic(db, this.ContextUserKey);
            Goods goods = Logic.GetGoodsByID(GoodsId);
            if (!goods.ChangedSet.IsLoaded)
            {
                goods.ChangedSet.Load();
            }

            this.ChangedPager.RecordCount = goods.ChangedSet.Count;
            var rs = goods.ChangedSet.OrderByDescending(x => x.ID).Skip((this.ChangedPager.StartRecordIndex > 0 ? this.ChangedPager.StartRecordIndex - 1 : 0)).Take(ChangedPager.PageSize);
            this.dlChangedList.DataSource = rs;
            this.dlChangedList.DataBind();
            this.ChangedPager.CustomInfoHTML = string.Format("当前第{0}/{1}页 共{2}条记录 每页{3}条", new object[] { this.ChangedPager.CurrentPageIndex, this.ChangedPager.PageCount, this.ChangedPager.RecordCount, this.ChangedPager.PageSize });
        }
コード例 #2
0
ファイル: BrandList.aspx.cs プロジェクト: eavia/tts
 public BrandList()
 {
     logic = new BrandLogic(dbContext, this.ContextUserKey);
     glogic = new GoodsLogic(dbContext, this.ContextUserKey);
 }
コード例 #3
0
ファイル: GoodsList.aspx.cs プロジェクト: eavia/tts
 public GoodsList()
 {
     logic = new GoodsLogic(dbContext, this.ContextUserKey);
     blogic = new BrandLogic(dbContext, this.ContextUserKey);
     ulogic = new UnitLogic(dbContext, this.ContextUserKey);
 }