예제 #1
0
        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);
 }