Esempio n. 1
0
 public CatalogsController(ICatalogService catalogService, IModelMapper modelMapper, IStoreService storeService, ICatalogModelFactory catalogModelFactory)
 {
     _catalogService      = catalogService;
     _modelMapper         = modelMapper;
     _storeService        = storeService;
     _catalogModelFactory = catalogModelFactory;
 }
Esempio n. 2
0
        public async Task SetUp()
        {
            _settingsService = GetService <ISettingService>();

            var categoryService = GetService <ICategoryService>();

            _category = await categoryService.GetCategoryByIdAsync(1);

            _vendorSettings = GetService <VendorSettings>();
            _vendorSettings.VendorsBlockItemsToDisplay = 1;
            _vendorSettings.AllowSearchByVendor        = true;

            await _settingsService.SaveSettingAsync(_vendorSettings);

            _catalogSettings = GetService <CatalogSettings>();

            _catalogSettings.AllowProductViewModeChanging  = false;
            _catalogSettings.CategoryBreadcrumbEnabled     = false;
            _catalogSettings.ShowProductsFromSubcategories = true;
            _catalogSettings.ShowCategoryProductNumber     = true;
            _catalogSettings.ShowCategoryProductNumberIncludingSubcategories = true;
            _catalogSettings.NumberOfProductTags = 20;

            await _settingsService.SaveSettingAsync(_catalogSettings);

            _catalogModelFactory = GetService <ICatalogModelFactory>();
        }
Esempio n. 3
0
 public CatalogController(CatalogSettings catalogSettings,
                          IAclService aclService,
                          ICatalogModelFactory catalogModelFactory,
                          ICategoryService categoryService,
                          ICustomerActivityService customerActivityService,
                          IGenericAttributeService genericAttributeService,
                          ILocalizationService localizationService,
                          IManufacturerService manufacturerService,
                          IPermissionService permissionService,
                          IStoreContext storeContext,
                          IStoreMappingService storeMappingService,
                          IVendorService vendorService,
                          IWebHelper webHelper,
                          IWorkContext workContext,
                          MediaSettings mediaSettings,
                          VendorSettings vendorSettings)
 {
     this._catalogSettings         = catalogSettings;
     this._aclService              = aclService;
     this._catalogModelFactory     = catalogModelFactory;
     this._categoryService         = categoryService;
     this._customerActivityService = customerActivityService;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._manufacturerService     = manufacturerService;
     this._permissionService       = permissionService;
     this._storeContext            = storeContext;
     this._storeMappingService     = storeMappingService;
     this._vendorService           = vendorService;
     this._webHelper      = webHelper;
     this._workContext    = workContext;
     this._mediaSettings  = mediaSettings;
     this._vendorSettings = vendorSettings;
 }
 public MegaMenuController(ICatalogModelFactory catalogModelFactory,
                           ICategoryService categoryService,
                           IProductModelFactory productModelFactory,
                           IProductService productService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           IPictureService pictureService,
                           ISettingService settingService,
                           ICacheManager cacheManager,
                           ILocalizationService localizationService,
                           IManufacturerService manufacturerService,
                           IVendorService vendorService)
 {
     this._catalogModelFactory = catalogModelFactory;
     this._categoryService     = categoryService;
     this._productModelFactory = productModelFactory;
     this._productService      = productService;
     this._workContext         = workContext;
     this._storeContext        = storeContext;
     this._storeService        = storeService;
     this._pictureService      = pictureService;
     this._settingService      = settingService;
     this._cacheManager        = cacheManager;
     this._localizationService = localizationService;
     this._manufacturerService = manufacturerService;
     this._vendorService       = vendorService;
     _megaMenuServices         = new MegaMenuServices(catalogModelFactory, categoryService, settingService, pictureService);
 }
Esempio n. 5
0
 public CatalogController(ICatalogModelFactory catalogModelFactory,
                          IProductModelFactory productModelFactory,
                          ICategoryService categoryService,
                          IProductService productService,
                          IWorkContext workContext,
                          IStoreContext storeContext,
                          ILocalizationService localizationService,
                          IWebHelper webHelper,
                          IProductTagService productTagService,
                          IGenericAttributeService genericAttributeService,
                          IAclService aclService,
                          IStoreMappingService storeMappingService,
                          IPermissionService permissionService,
                          ICustomerActivityService customerActivityService,
                          MediaSettings mediaSettings,
                          CatalogSettings catalogSettings)
 {
     this._catalogModelFactory     = catalogModelFactory;
     this._productModelFactory     = productModelFactory;
     this._categoryService         = categoryService;
     this._productService          = productService;
     this._workContext             = workContext;
     this._storeContext            = storeContext;
     this._localizationService     = localizationService;
     this._webHelper               = webHelper;
     this._productTagService       = productTagService;
     this._genericAttributeService = genericAttributeService;
     this._aclService              = aclService;
     this._storeMappingService     = storeMappingService;
     this._permissionService       = permissionService;
     this._customerActivityService = customerActivityService;
     this._mediaSettings           = mediaSettings;
     this._catalogSettings         = catalogSettings;
 }
Esempio n. 6
0
 public CustomCatalogController(
     IAbcPromoService abcPromoService,
     ICategoryService categoryService,
     ILocalizationService localizationService,
     IManufacturerService manufacturerService,
     IUrlRecordService urlRecordService,
     IProductModelFactory productModelFactory,
     ICatalogModelFactory categoryModelFactory,
     ILogger logger,
     AbcPromosSettings settings,
     CatalogSettings catalogSettings,
     IHttpContextAccessor httpContextAccessor
     )
 {
     _abcPromoService     = abcPromoService;
     _categoryService     = categoryService;
     _localizationService = localizationService;
     _manufacturerService = manufacturerService;
     _urlRecordService    = urlRecordService;
     _productModelFactory = productModelFactory;
     _catalogModelFactory = categoryModelFactory;
     _logger          = logger;
     _settings        = settings;
     _catalogSettings = catalogSettings;
 }
Esempio n. 7
0
 public MainPageDownViewComponent(
     ICategoryService categoryService,
     ICatalogModelFactory catalogModelFactory)
 {
     _categoryService     = categoryService;
     _catalogModelFactory = catalogModelFactory;
 }
Esempio n. 8
0
        public Accessory(int accessoryId, bool lightVer = true)
        {
            ICategoryService categoryService = EngineContext.Current.Resolve <ICategoryService>();

            this.id = accessoryId;
            Category category = categoryService.GetCategoryById(accessoryId);

            this.Name             = category.Name;
            this.parentCategoryId = category.ParentCategoryId;
            ICatalogModelFactory        catalogModelFactory         = EngineContext.Current.Resolve <ICatalogModelFactory>();
            CatalogPagingFilteringModel catalogPagingFilteringModel = new CatalogPagingFilteringModel();

            catalogPagingFilteringModel.PageSize = 1;
            CategoryModel categoryModel = catalogModelFactory.PrepareCategoryModel(category, catalogPagingFilteringModel);

            this.SeName = categoryModel.SeName;
            IPictureService pictureService = EngineContext.Current.Resolve <IPictureService>();

            this.mainPicturePath = pictureService.GetPictureUrl(category.PictureId);

            if (lightVer == false)
            {
                this.PagingFilteringContext = catalogPagingFilteringModel;
                this.Name                      = categoryModel.Name;
                this.Description               = categoryModel.Description;
                this.MetaKeywords              = categoryModel.MetaKeywords;
                this.MetaDescription           = categoryModel.MetaDescription;
                this.MetaTitle                 = categoryModel.MetaTitle;
                this.PictureModel              = categoryModel.PictureModel;
                this.PagingFilteringContext    = categoryModel.PagingFilteringContext;
                this.DisplayCategoryBreadcrumb = categoryModel.DisplayCategoryBreadcrumb;
                this.CategoryBreadcrumb        = categoryModel.CategoryBreadcrumb;
                this.SubCategories             = categoryModel.SubCategories;
                this.FeaturedProducts          = categoryModel.FeaturedProducts;
                this.Products                  = categoryModel.Products;
            }

            ICacheManager cacheManager = EngineContext.Current.Resolve <ICacheManager>();

            DataView accessoryDataView = cacheManager.Get("categoryAccessory" + accessoryId, 60, () => {
                Dictionary <string, Object> accessoryDic = new Dictionary <string, Object>();
                accessoryDic.Add("@CategoryId", accessoryId);

                string accessoryDataQuery       = "EXEC usp_SelectGBSCrossSellAccessory @categoryId";
                DataView innerAccessoryDataView = manager.GetParameterizedDataView(accessoryDataQuery, accessoryDic);
                return(innerAccessoryDataView);
            });

            if (accessoryDataView.Count > 0)
            {
                this.parentCategoryId = category.ParentCategoryId;
                this.h1 = !string.IsNullOrEmpty(accessoryDataView[0]["H1"].ToString()) ? accessoryDataView[0]["H1"].ToString() : this.Name;
                this.mainPicturePath = !string.IsNullOrEmpty(this.mainPicturePath) ? this.mainPicturePath : _mainPicturePath;
                int featuredId;
                this.featuredProductId = Int32.TryParse(accessoryDataView[0]["FeaturedProductId"].ToString(), out featuredId) ? featuredId : _featuredProductId;
                this.isFeatured        = accessoryDataView[0]["IsFeatured"] != null && accessoryDataView[0]["IsFeatured"] != DBNull.Value ? (Convert.ToBoolean(accessoryDataView[0]["IsFeatured"]) == true ? true : false) : _isFeatured;
                int order;
                this.displayOrder = Int32.TryParse(accessoryDataView[0]["DisplayOrder"].ToString(), out order) ? order : _displayOrder;
            }
        }
        public VendorController(IVendorModelFactory vendorModelFactory, IWorkContext workContext, ILocalizationService localizationService,
                                ICustomerService customerService, IWorkflowMessageService workflowMessageService, IVendorService vendorService,
                                IUrlRecordService urlRecordService, IPictureService pictureService,
                                LocalizationSettings localizationSettings, VendorSettings vendorSettings, CaptchaSettings captchaSettings,
                                ICountryService countryService, ICategoryService categoryService, ICatalogModelFactory catalogModelFactory)
            : base(vendorModelFactory, workContext, localizationService, customerService, workflowMessageService, vendorService,
                   urlRecordService, pictureService,
                   localizationSettings, vendorSettings, captchaSettings)
        {
            _vendorModelFactory     = vendorModelFactory;
            _workContext            = workContext;
            _localizationService    = localizationService;
            _customerService        = customerService;
            _workflowMessageService = workflowMessageService;
            _vendorService          = vendorService;
            _urlRecordService       = urlRecordService;
            _pictureService         = pictureService;

            _localizationSettings = localizationSettings;
            _vendorSettings       = vendorSettings;
            _captchaSettings      = captchaSettings;

            _countryService      = countryService;
            _categoryService     = categoryService;
            _catalogModelFactory = catalogModelFactory;
        }
Esempio n. 10
0
 public CategoryNewsViewComponent(
     ICategoryService categoryService,
     ICatalogModelFactory catalogModelFactory, ApplicationDbContext context)
 {
     _categoryService     = categoryService;
     _catalogModelFactory = catalogModelFactory;
     _context             = context;
 }
Esempio n. 11
0
 public MegaMenuServices(ICatalogModelFactory catalogModelFactory,
                         ICategoryService categoryService,
                         ISettingService settingService,
                         IPictureService pictureService)
 {
     this._catalogModelFactory = catalogModelFactory;
     this._categoryService     = categoryService;
     this._settingService      = settingService;
     this._pictureService      = pictureService;
 }
Esempio n. 12
0
        public GBSProductCategory(int productCategoryId)
        {
            //nop category data
            ICategoryService categoryService = EngineContext.Current.Resolve <ICategoryService>();

            this.id = productCategoryId;
            Category                    category                    = categoryService.GetCategoryById(productCategoryId);
            ICatalogModelFactory        catalogModelFactory         = EngineContext.Current.Resolve <ICatalogModelFactory>();
            CatalogPagingFilteringModel catalogPagingFilteringModel = new CatalogPagingFilteringModel();

            catalogPagingFilteringModel.PageSize = 1;
            this.PagingFilteringContext          = catalogPagingFilteringModel;
            CategoryModel categoryModel = catalogModelFactory.PrepareCategoryModel(category, catalogPagingFilteringModel);

            this.Name                      = categoryModel.Name;
            this.Description               = categoryModel.Description;
            this.MetaKeywords              = categoryModel.MetaKeywords;
            this.MetaDescription           = categoryModel.MetaDescription;
            this.MetaTitle                 = categoryModel.MetaTitle;
            this.SeName                    = categoryModel.SeName;
            this.PictureModel              = categoryModel.PictureModel;
            this.PagingFilteringContext    = categoryModel.PagingFilteringContext;
            this.DisplayCategoryBreadcrumb = categoryModel.DisplayCategoryBreadcrumb;
            this.CategoryBreadcrumb        = categoryModel.CategoryBreadcrumb;
            this.SubCategories             = categoryModel.SubCategories;
            this.FeaturedProducts          = categoryModel.FeaturedProducts;
            this.Products                  = categoryModel.Products;

            //datalook up via category(product category) id from gbscategory table
            Dictionary <string, Object> productCategoryDic = new Dictionary <string, Object>();

            productCategoryDic.Add("@CategoryId", productCategoryId);

            string   productCategoryDataQuery = "EXEC usp_SelectGBSCustomCategoryData @CategoryId";
            DataView productCategoryDataView  = manager.GetParameterizedDataView(productCategoryDataQuery, productCategoryDic);

            if (productCategoryDataView.Count > 0)
            {
                //product category specific data
                this.parentCategoryId = category.ParentCategoryId;
                this.h1              = !string.IsNullOrEmpty(productCategoryDataView[0]["H1"].ToString()) ? productCategoryDataView[0]["H1"].ToString() : this.Name;
                this.h2              = !string.IsNullOrEmpty(productCategoryDataView[0]["H2"].ToString()) ? productCategoryDataView[0]["H2"].ToString() : _h2;
                this.topText         = !string.IsNullOrEmpty(productCategoryDataView[0]["UpperText"].ToString()) ? productCategoryDataView[0]["UpperText"].ToString() : _topText;
                this.bottomText      = !string.IsNullOrEmpty(productCategoryDataView[0]["LowerText"].ToString()) ? productCategoryDataView[0]["LowerText"].ToString() : _bottomText;
                this.backgroundImage = !string.IsNullOrEmpty(productCategoryDataView[0]["BackgroundPicturePath"].ToString()) ? productCategoryDataView[0]["BackgroundPicturePath"].ToString() : _backgroundImage;
                this.foregroundImage = !string.IsNullOrEmpty(productCategoryDataView[0]["ForegroundPicturePath"].ToString()) ? productCategoryDataView[0]["ForegroundPicturePath"].ToString() : _foregroundImage;
                this.backgroundColor = !string.IsNullOrEmpty(productCategoryDataView[0]["BackgroundColor"].ToString()) ? productCategoryDataView[0]["BackgroundColor"].ToString() : _backgroundColor;
                this.mainPicturePath = !string.IsNullOrEmpty(productCategoryDataView[0]["MainPicturePath"].ToString()) ? productCategoryDataView[0]["MainPicturePath"].ToString() : _mainPicturePath;
            }
        }
Esempio n. 13
0
 public SumiHomepageProductsViewComponent(IAclService aclService,
                                          IProductModelFactory productModelFactory,
                                          IProductService productService,
                                          IStoreMappingService storeMappingService,
                                          ICatalogModelFactory catalogModelFactory,
                                          ICategoryService categoryService)
 {
     _aclService          = aclService;
     _productModelFactory = productModelFactory;
     _productService      = productService;
     _storeMappingService = storeMappingService;
     _catalogModelFactory = catalogModelFactory;
     _categoryService     = categoryService;
 }
        public GBSCatalogController(
            ICategoryService categoryService,
            ICatalogModelFactory catalogModelFactory,
            IWorkContext workContext,
            IStoreService storeService,
            ISettingService settingService,
            ILocalizationService localizationService)
        {
            this._categoryService     = categoryService;
            this._catalogModelFactory = catalogModelFactory;

            this._workContext         = workContext;
            this._storeService        = storeService;
            this._settingService      = settingService;
            this._localizationService = localizationService;
        }
Esempio n. 15
0
 public CatalogController(CatalogSettings catalogSettings,
                          IAclService aclService,
                          ICatalogModelFactory catalogModelFactory,
                          ICategoryService categoryService,
                          ICustomerActivityService customerActivityService,
                          IGenericAttributeService genericAttributeService,
                          ILocalizationService localizationService,
                          IManufacturerService manufacturerService,
                          IPermissionService permissionService,
                          IProductModelFactory productModelFactory,
                          IProductService productService,
                          IProductTagService productTagService,
                          IStoreContext storeContext,
                          IStoreMappingService storeMappingService,
                          IVendorService vendorService,
                          IWebHelper webHelper,
                          IWorkContext workContext,
                          MediaSettings mediaSettings,
                          VendorSettings vendorSettings,
                          IDateTimeHelper dateTimeHelper,
                          IAppointmentModelFactory appointmentModelFactory,
                          IAppointmentService appointmentService)
 {
     _catalogSettings         = catalogSettings;
     _aclService              = aclService;
     _catalogModelFactory     = catalogModelFactory;
     _categoryService         = categoryService;
     _customerActivityService = customerActivityService;
     _genericAttributeService = genericAttributeService;
     _localizationService     = localizationService;
     _manufacturerService     = manufacturerService;
     _permissionService       = permissionService;
     _productModelFactory     = productModelFactory;
     _productService          = productService;
     _productTagService       = productTagService;
     _storeContext            = storeContext;
     _storeMappingService     = storeMappingService;
     _vendorService           = vendorService;
     _webHelper               = webHelper;
     _workContext             = workContext;
     _mediaSettings           = mediaSettings;
     _vendorSettings          = vendorSettings;
     _dateTimeHelper          = dateTimeHelper;
     _appointmentService      = appointmentService;
     _appointmentModelFactory = appointmentModelFactory;
 }
        public async Task SetUp()
        {
            _catalogSettings     = GetService <CatalogSettings>();
            _categoryService     = GetService <ICategoryService>();
            _catalogModelFactory = GetService <ICatalogModelFactory>();
            _category            = await _categoryService.GetCategoryByIdAsync(1);

            _product = await GetService <IProductService>().GetProductByIdAsync(1);

            _manufacturer = await GetService <IManufacturerService>().GetManufacturerByIdAsync(1);

            _vendor = await GetService <IVendorService>().GetVendorByIdAsync(1);

            _topicService        = GetService <ITopicService>();
            _httpContextAccessor = GetService <IHttpContextAccessor>();

            _productTag = await GetService <IProductTagService>().GetProductTagByIdAsync(1);
        }
        public WidgetsCategoryNavigationController(ICatalogModelFactoryCustom catalogModelFactoryCustom,
                                                   ICategoryService categoryService,
                                                   ICatalogModelFactory catalogModelFactory,
                                                   IWorkContext workContext,
                                                   IStoreService storeService,
                                                   ISettingService settingService,
                                                   ILocalizationService localizationService,
                                                   IStoreContext storeContext)
        {
            this._categoryService           = categoryService;
            this._catalogModelFactoryCustom = catalogModelFactoryCustom;
            this._catalogModelFactory       = catalogModelFactory;

            this._workContext         = workContext;
            this._storeService        = storeService;
            this._settingService      = settingService;
            this._localizationService = localizationService;
            this._storeContext        = storeContext;
        }
Esempio n. 18
0
 public WebPushController(IProgressiveWebPushService progressiveWebPushService,
                          IWorkContext workContext,
                          IEmailAccountService emailAccountService,
                          EmailAccountSettings emailAccountSettings,
                          IProductService productService,
                          IProductModelFactory productModelFactory,
                          ILogger logger,
                          ICategoryService categoryService,
                          ICatalogModelFactory catalogModelFactory, ProgressiveWebAppSettings progressiveWebAppSettings)
 {
     _progressiveWebPushService = progressiveWebPushService;
     _workContext          = workContext;
     _emailAccountService  = emailAccountService;
     _emailAccountSettings = emailAccountSettings;
     _productService       = productService;
     _productModelFactory  = productModelFactory;
     _logger                    = logger;
     _categoryService           = categoryService;
     _catalogModelFactory       = catalogModelFactory;
     _progressiveWebAppSettings = progressiveWebAppSettings;
 }
 public SearchBoxViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     _catalogModelFactory = catalogModelFactory;
 }
 public FreemiumMedia_SearchBoxViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     _catalogModelFactory = catalogModelFactory;
 }
Esempio n. 21
0
 public AuthorNavigationViewComponent(ICatalogModelFactory catalogModelFactory,
                                      CatalogSettings catalogSettings)
 {
     this._catalogModelFactory = catalogModelFactory;
     this._catalogSettings     = catalogSettings;
 }
 public SumiCategoryNavigationViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     _catalogModelFactory = catalogModelFactory;
 }
Esempio n. 23
0
 public HomepageCategoriesViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     this._catalogModelFactory = catalogModelFactory;
 }
Esempio n. 24
0
 public ManufacturerNavigationViewComponent(CatalogSettings catalogSettings, ICatalogModelFactory catalogModelFactory)
 {
     this._catalogSettings     = catalogSettings;
     this._catalogModelFactory = catalogModelFactory;
 }
Esempio n. 25
0
        public Company(int companyId)
        {
            //nop category data
            ICategoryService categoryService = EngineContext.Current.Resolve <ICategoryService>();

            this.id = companyId;
            Category                    category                    = categoryService.GetCategoryById(companyId);
            ICatalogModelFactory        catalogModelFactory         = EngineContext.Current.Resolve <ICatalogModelFactory>();
            CatalogPagingFilteringModel catalogPagingFilteringModel = new CatalogPagingFilteringModel();

            catalogPagingFilteringModel.PageSize = 1;
            this.PagingFilteringContext          = catalogPagingFilteringModel;
            CategoryModel categoryModel = catalogModelFactory.PrepareCategoryModel(category, catalogPagingFilteringModel);

            this.Name                      = categoryModel.Name;
            this.Description               = categoryModel.Description;
            this.MetaKeywords              = categoryModel.MetaKeywords;
            this.MetaDescription           = categoryModel.MetaDescription;
            this.MetaTitle                 = categoryModel.MetaTitle;
            this.SeName                    = categoryModel.SeName;
            this.PictureModel              = categoryModel.PictureModel;
            this.PagingFilteringContext    = categoryModel.PagingFilteringContext;
            this.DisplayCategoryBreadcrumb = categoryModel.DisplayCategoryBreadcrumb;
            this.CategoryBreadcrumb        = categoryModel.CategoryBreadcrumb;
            this.SubCategories             = categoryModel.SubCategories;
            this.FeaturedProducts          = categoryModel.FeaturedProducts;
            this.Products                  = categoryModel.Products;

            //datalook up via category(company) id from gbscategory table
            //Dictionary<string, Object> companyDic = new Dictionary<string, Object>();
            //companyDic.Add("@CategoryId", companyId);

            //string companyDataQuery = "EXEC usp_SelectCompanyExtendedData @CategoryId";
            //DataView companyDataView = manager.GetParameterizedDataView(companyDataQuery, companyDic);

            ICacheManager cacheManager = EngineContext.Current.Resolve <ICacheManager>();

            DataView companyDataView = cacheManager.Get("company" + companyId, 60, () => {
                Dictionary <string, Object> companyDic = new Dictionary <string, Object>();
                companyDic.Add("@CategoryId", companyId);

                string companyDataQuery       = "EXEC usp_SelectCompanyExtendedData @CategoryId";
                DataView innerCompanyDataView = manager.GetParameterizedDataView(companyDataQuery, companyDic);

                return(innerCompanyDataView);
            });

            DataView childCompanyDataView = cacheManager.Get("childCompanies" + companyId, 60, () => {
                Dictionary <string, Object> childCategoryDic = new Dictionary <string, Object>();
                childCategoryDic.Add("@CategoryId", companyId);

                string childCategoryDataQuery      = "EXEC usp_SelectGBSChildCategoryData @CategoryId";
                DataView innerChildCompanyDataView = manager.GetParameterizedDataView(childCategoryDataQuery, childCategoryDic);

                return(innerChildCompanyDataView);
            });

            if (companyDataView.Count > 0)
            {
                this.parentCategoryId = category.ParentCategoryId;
                this.h1                    = !string.IsNullOrEmpty(companyDataView[0]["H1"].ToString()) ? companyDataView[0]["H1"].ToString() : this.Name;
                this.h2                    = !string.IsNullOrEmpty(companyDataView[0]["H2"].ToString()) ? companyDataView[0]["H2"].ToString() : _h2;
                this.isVisible             = (bool)companyDataView[0]["IsVisible"];
                this.isDisplayLogo         = (bool)companyDataView[0]["IsDisplayLogo"];
                this.logoPicturePath       = !string.IsNullOrEmpty(companyDataView[0]["LogoPicturePath"].ToString()) ? companyDataView[0]["LogoPicturePath"].ToString() : _logoPicturePath;
                this.aboutYourMarketCenter = !string.IsNullOrEmpty(companyDataView[0]["aboutYourMarketCenter"].ToString()) ? companyDataView[0]["aboutYourMarketCenter"].ToString() : _aboutYourMarketCenter;
                this.foregroundColor       = !string.IsNullOrEmpty(companyDataView[0]["ForegroundColor"].ToString()) ? companyDataView[0]["ForegroundColor"].ToString() : _forgroundColor;
            }

            //list of all child company ids that match the company typeid 1
            if (childCompanyDataView.Count > 0)
            {
                for (int i = 0; i < childCompanyDataView.Count; i++)
                {
                    childCompanyIds.Add(Int32.Parse(childCompanyDataView[i]["categoryId"].ToString()));
                }
            }
        }
Esempio n. 26
0
 public SumiTopMenuViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     _catalogModelFactory = catalogModelFactory;
 }
Esempio n. 27
0
 public TopMenuViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     this._catalogModelFactory = catalogModelFactory;
 }
 public VendorNavigationViewComponent(ICatalogModelFactory catalogModelFactory,
                                      VendorSettings vendorSettings)
 {
     _catalogModelFactory = catalogModelFactory;
     _vendorSettings      = vendorSettings;
 }
Esempio n. 29
0
 public CategoryNavigationViewComponent(ICatalogModelFactory catalogModelFactory)
 {
     this._catalogModelFactory = catalogModelFactory;
 }
 public HomePageBottom(ICatalogModelFactory catalogModelFactory,
                       CatalogSettings catalogSettings)
 {
     this._catalogModelFactory = catalogModelFactory;
     this._catalogSettings     = catalogSettings;
 }