Exemplo n.º 1
0
        private void InitCategoryManufacturerList()
        {
            this.CategoryManufacturerEntityList = new List <BaiduPlatformCategoryManufacturerEntity>();

            foreach (Category2or3ConfigurationEntity category in category3List)
            {
                foreach (BaiduManufacturerEntity manufacturerEntity in manufacturerList)
                {
                    CategoryManufacturerPathEntity path = BaiduDA.GetCategoryManufacturerPath(manufacturerEntity.ManufacturerSysNo, category.CategorySysNo);
                    ProductNumberAndMinPriceEntity productCountEntity = BaiduDA.GetProductCountByFrontEndCategory3SysNoAndManufacturerSysNo(category.CategorySysNo, manufacturerEntity.ManufacturerSysNo, AppConfig.CompanyCode);

                    if (path != null)
                    {
                        BaiduPlatformCategoryManufacturerEntity categoryBrandEntity = new BaiduPlatformCategoryManufacturerEntity(category.CategorySysNo, category.CategoryName,
                                                                                                                                  path.PathSegment, path.ManufacturerSegment, manufacturerEntity.ManufacturerName, productCountEntity.ProductCount, productCountEntity.MinPrice);

                        this.CategoryManufacturerEntityList.Add(categoryBrandEntity);
                    }
                }
            }
        }