Exemple #1
0
        private void InitC3List()
        {
            this.C3EngityList = new List <BaiduPlatformCategory3Entity>();
            category3List     = BaiduDA.GetCategory2or3List("L", AppConfig.CompanyCode);

            if (category3List != null)
            {
                foreach (var c3 in category3List)
                {
                    ProductNumberAndMinPriceEntity productCountEntity = BaiduDA.GetProductCountByFrontEndCategory3SysNo(c3.CategorySysNo, AppConfig.CompanyCode);

                    BaiduPlatformCategory3Entity c3Entity = new BaiduPlatformCategory3Entity(c3.CategorySysNo, c3.CategoryName, productCountEntity.ProductCount, productCountEntity.MinPrice);
                    this.C3EngityList.Add(c3Entity);
                }
            }
        }
Exemple #2
0
        private void InitC2List()
        {
            this.C2EngityList = new List <BaiduPlatformCategory2Entity>();
            List <Category2or3ConfigurationEntity> category2List = BaiduDA.GetCategory2or3List("M", AppConfig.CompanyCode);

            if (category2List != null)
            {
                foreach (var c2 in category2List)
                {
                    ProductNumberAndMinPriceEntity productCountEntity = BaiduDA.GetProductCountByFrontEndCategory2SysNo(c2.CategorySysNo, AppConfig.CompanyCode);

                    BaiduPlatformCategory2Entity c2Entity = new BaiduPlatformCategory2Entity(c2.CategorySysNo, c2.CategoryName, productCountEntity.ProductCount, productCountEntity.MinPrice);
                    this.C2EngityList.Add(c2Entity);
                }
            }
        }