Esempio n. 1
0
 public ProductTypeController(
         IProductTypeService productTypeService,
         ICustomFieldService customFieldService)
 {
     _productTypeService = productTypeService;
     _customFieldService = customFieldService;
 }
Esempio n. 2
0
 public ProductController(IProductService productService, IProductTypeService productTypeService,
     IProductHistoryService productHistoryService)
 {
     _productService = productService;
     _productTypeService = productTypeService;
     _productHistoryService = productHistoryService;
     _service = new Service(_productTypeService);
 }
Esempio n. 3
0
 public MarketplaceProductManager(ICredentialService credentialService,
                                  IProductTypeService productTypeService,
                                  IProductService productService,
                                  ILogService logger)
 {
     Core.Container.SatisfyImportsOnce(this);
     _credentialService  = credentialService;
     _productTypeService = productTypeService;
     _productService     = productService;
     _logger             = logger;
     _marketplaceMode    = ConfigurationManager.AppSettings["MarketplaceMode"];
 }
Esempio n. 4
0
        //TODO: Configure Mapper for EPVM, PsVM, PVM
        //TODO: Consider the responsibility of the class, this is doing a lot of leg work, maybe pass to to "Service" layer...
        //TODO: ...cont. And/Or a ValidationService/Helpers/Mappers
        public ProductWebService(IProductService productService, IBrandService brandService, ICategoryService categoryService,
                                 IProductTypeService productTypeService, IGenderService genderService, IFileValidationWebService fileValidationWebService)
        {
            _productService           = productService;
            _brandService             = brandService;
            _categoryService          = categoryService;
            _productTypeService       = productTypeService;
            _genderService            = genderService;
            _fileValidationWebService = fileValidationWebService;

            _config = new Mapping.AutoMapperWeb().Configuration;
            mapper  = _config.CreateMapper();
        }
 public DashboardController(
     IContractService contractService,
     IOrderService orderService,
     IProductService productService,
     IProductTypeService productTypeService,
     IUserService userService)
 {
     this.contractService    = contractService;
     this.orderService       = orderService;
     this.productService     = productService;
     this.productTypeService = productTypeService;
     this.userService        = userService;
 }
Esempio n. 6
0
 public ProductController(IProductService productService,
                          IDepartmentService departmentService,
                          ICategoryService categoryService,
                          IProductTypeService productTypeService,
                          IMapper mapper, ILogger <ProductController> logger)
 {
     _productService     = productService;
     _departmentService  = departmentService;
     _categoryService    = categoryService;
     _productTypeService = productTypeService;
     _mapper             = mapper;
     _logger             = logger;
 }
Esempio n. 7
0
        public MainMenuConsolePage(IBookingService bookingService, IStoreService storeService, IProductService productService, IProductTypeService productTypeService)
        {
            _bookingService     = bookingService;
            _storeService       = storeService;
            _productService     = productService;
            _productTypeService = productTypeService;

            _selectedItems = new SelectedItems();

            _storePage       = new StoreConsolePage(storeService, _selectedItems);
            _productTypePage = new ProductTypeConsolePage(productTypeService, _selectedItems);
            _productPage     = new ProductConsolePage(productService, bookingService, _selectedItems);
            _bookingPage     = new BookingConsolePage(bookingService, _selectedItems);
        }
Esempio n. 8
0
 public HomeController(UserManager <User> userManager)
 {
     productService       = ServiceLocator.Current.GetInstance <IProductService>();
     productDetailService = ServiceLocator.Current.GetInstance <IProductDetailService>();
     imageService         = ServiceLocator.Current.GetInstance <IImageService>();
     priceService         = ServiceLocator.Current.GetInstance <IProductPriceService>();
     productTypeService   = ServiceLocator.Current.GetInstance <IProductTypeService>();
     cartService          = ServiceLocator.Current.GetInstance <ICartService>();
     cartDetailService    = ServiceLocator.Current.GetInstance <ICartDetailService>();
     rateService          = ServiceLocator.Current.GetInstance <IRateService>();
     userService          = ServiceLocator.Current.GetInstance <IUserService>();
     commonService        = ServiceLocator.Current.GetInstance <ICommonService>();
     this.userManager     = userManager;
 }
Esempio n. 9
0
        public OrderController(UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
        {
            this.userManager = userManager;
            this.roleManager = roleManager;

            productService       = ServiceLocator.Current.GetInstance <IProductService>();
            productDetailService = ServiceLocator.Current.GetInstance <IProductDetailService>();
            priceService         = ServiceLocator.Current.GetInstance <IProductPriceService>();
            imageService         = ServiceLocator.Current.GetInstance <IImageService>();
            userService          = ServiceLocator.Current.GetInstance <IUserService>();
            historyService       = ServiceLocator.Current.GetInstance <IHistoryService>();
            productTypeService   = ServiceLocator.Current.GetInstance <IProductTypeService>();
            orderService         = ServiceLocator.Current.GetInstance <IOrderService>();
            orderDetailService   = ServiceLocator.Current.GetInstance <IOrderDetailService>();
        }
Esempio n. 10
0
        /// <summary>
        /// Function: Lấy ProductType
        /// </summary>
        /// <param name="TypeName"> Color || Size </param>
        /// <history>
        /// [Lương Mỹ] Create [20/04/2019]
        /// </history>
        public List <SelectListItem> GetProductType(string TypeName)
        {
            IProductTypeService productTypeService = ServiceLocator.Current.GetInstance <IProductTypeService>();
            var Types = productTypeService.GetProductType(TypeName, 1);
            //
            List <SelectListItem> items = new List <SelectListItem>();

            foreach (var type in Types)
            {
                items.Add(new SelectListItem {
                    Value = type.Id.ToString(), Text = type.Text
                });
            }

            return(items);
        }
Esempio n. 11
0
        public ProductController(IHostingEnvironment env, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
        {
            _env = env;

            this.userManager = userManager;
            this.roleManager = roleManager;

            catalogService     = ServiceLocator.Current.GetInstance <ICatalogService>();
            productService     = ServiceLocator.Current.GetInstance <IProductService>();
            detailService      = ServiceLocator.Current.GetInstance <IProductDetailService>();
            priceService       = ServiceLocator.Current.GetInstance <IProductPriceService>();
            imageService       = ServiceLocator.Current.GetInstance <IImageService>();
            userService        = ServiceLocator.Current.GetInstance <IUserService>();
            historyService     = ServiceLocator.Current.GetInstance <IHistoryService>();
            productTypeService = ServiceLocator.Current.GetInstance <IProductTypeService>();
        }
        public ProductMasterController(

            IBrandService BrandService,
            ICategoryService CategoryService,
            IMerchantService MerchantService,
            IProductStatusService ProductStatusService,
            IProductTypeService ProductTypeService,
            IProductService ProductService
            )
        {
            this.BrandService         = BrandService;
            this.CategoryService      = CategoryService;
            this.MerchantService      = MerchantService;
            this.ProductStatusService = ProductStatusService;
            this.ProductTypeService   = ProductTypeService;
            this.ProductService       = ProductService;
        }
Esempio n. 13
0
 public ProductController(
         ICommerceDatabase db,
         ISettingService settingService,
         IProductService productService,
         IProductTypeService productTypeService,
         IBrandService brandService,
         ICategoryService categoryService,
         IExtendedQueryManager extendedQueryManager)
 {
     _db = db;
     _settingService = settingService;
     _productService = productService;
     _productTypeService = productTypeService;
     _brandService = brandService;
     _categoryService = categoryService;
     _extendedQueryManager = extendedQueryManager;
 }
Esempio n. 14
0
 public ProductController(
     IProductTypeService productTypeService,
     IProductManufacturerService productManufacturerService,
     ITaxCategoryService taxCategoryService,
     IProductService productService,
     IUserService userService,
     IProductStatusService productStatusService,
     LogService logService)
 {
     _productTypeService         = productTypeService;
     _productManufacturerService = productManufacturerService;
     _taxCategoryService         = taxCategoryService;
     _productService             = productService;
     _userService          = userService;
     _logService           = logService;
     _productStatusService = productStatusService;
 }
Esempio n. 15
0
 public CheckOutController(UserManager <User> userManager, IHubContext <ChatHub> hubContext, IHostingEnvironment hostingEnvironment)
 {
     provinceService      = ServiceLocator.Current.GetInstance <IProvinceService>();
     districtService      = ServiceLocator.Current.GetInstance <IDistrictService>();
     wardService          = ServiceLocator.Current.GetInstance <IWardService>();
     orderService         = ServiceLocator.Current.GetInstance <IOrderService>();
     orderDetailService   = ServiceLocator.Current.GetInstance <IOrderDetailService>();
     productService       = ServiceLocator.Current.GetInstance <IProductService>();
     productDetailService = ServiceLocator.Current.GetInstance <IProductDetailService>();
     priceService         = ServiceLocator.Current.GetInstance <IProductPriceService>();
     productTypeService   = ServiceLocator.Current.GetInstance <IProductTypeService>();
     cartDetailService    = ServiceLocator.Current.GetInstance <ICartDetailService>();
     emailService         = ServiceLocator.Current.GetInstance <IEmailService>();
     this.userManager     = userManager;
     _hubContext          = hubContext;
     _hostingEnvironment  = hostingEnvironment;
 }
 public HomeAdminController(
     IProductService productService,
     IProductTypeService productTypeService,
     IProviderService providerService,
     ICategoryService categoryService,
     IUserClientService userClientService,
     IEmailSenderService emailSenderService,
     IStatisticsAdminService statisticsAdminService,
     ILogger <HomeAdminController> logger,
     ApplicationContext applicationContext)
 {
     _productService         = productService;
     _productTypeService     = productTypeService;
     _providerService        = providerService;
     _categoryService        = categoryService;
     _applicationContext     = applicationContext;
     _usersClientService     = userClientService;
     _emailSenderService     = emailSenderService;
     _statisticsAdminService = statisticsAdminService;
     _logger = logger;
 }
Esempio n. 17
0
 public DirectSalesOrderController(
     IOrganizationService OrganizationService,
     IEditedPriceStatusService EditedPriceStatusService,
     IStoreService StoreService,
     IAppUserService AppUserService,
     IUnitOfMeasureService UnitOfMeasureService,
     IUnitOfMeasureGroupingService UnitOfMeasureGroupingService,
     IDirectSalesOrderService DirectSalesOrderService,
     IProductGroupingService ProductGroupingService,
     IProductTypeService ProductTypeService,
     IProductService ProductService,
     IRequestStateService RequestStateService,
     ISupplierService SupplierService,
     IStoreGroupingService StoreGroupingService,
     IStoreStatusService StoreStatusService,
     IStoreTypeService StoreTypeService,
     ITaxTypeService TaxTypeService,
     ICurrentContext CurrentContext
     , IHttpContextAccessor httpContextAccessor, DataContext _DataContext
     ) : base(httpContextAccessor, _DataContext)
 {
     this.OrganizationService          = OrganizationService;
     this.EditedPriceStatusService     = EditedPriceStatusService;
     this.StoreService                 = StoreService;
     this.AppUserService               = AppUserService;
     this.UnitOfMeasureService         = UnitOfMeasureService;
     this.UnitOfMeasureGroupingService = UnitOfMeasureGroupingService;
     this.DirectSalesOrderService      = DirectSalesOrderService;
     this.ProductGroupingService       = ProductGroupingService;
     this.ProductTypeService           = ProductTypeService;
     this.ProductService               = ProductService;
     this.RequestStateService          = RequestStateService;
     this.SupplierService              = SupplierService;
     this.StoreGroupingService         = StoreGroupingService;
     this.StoreStatusService           = StoreStatusService;
     this.StoreTypeService             = StoreTypeService;
     this.TaxTypeService               = TaxTypeService;
     this.CurrentContext               = CurrentContext;
 }
Esempio n. 18
0
 public ProductController(IErrorService errorService, IProductService productService,
                          IProductMaterialService productMaterialService, IMaterialService materialService,
                          IProductColorService productColorService, IColorService colorService,
                          IProductSizeService productSizeService, ISizeService sizeService,
                          IProductHeightService productHeightService, IHeightService heightService,
                          IProductTypeService productTypeService, ITypeService typeService,
                          IProductHeelService productHeelService, IHeelService heelService)
     : base(errorService)
 {
     this._productHeelService     = productHeelService;
     this._heelService            = heelService;
     this._productTypeService     = productTypeService;
     this._typeService            = typeService;
     this._productHeightService   = productHeightService;
     this._heightService          = heightService;
     this._productSizeService     = productSizeService;
     this._sizeService            = sizeService;
     this._productService         = productService;
     this._materialService        = materialService;
     this._productColorService    = productColorService;
     this._colorService           = colorService;
     this._productMaterialService = productMaterialService;
 }
Esempio n. 19
0
 public AdminController(IProductService productService, IProductTypeService productTypeService)
 {
     this.productService     = productService;
     this.productTypeService = productTypeService;
 }
 public SurchargeRateService(ILogger logger, IProductTypeService productTypeService, ISurchargeRateManager surchargeRateManager)
 {
     _logger               = logger;
     _productTypeService   = productTypeService;
     _surchargeRateManager = surchargeRateManager;
 }
Esempio n. 21
0
 public ProductTypeController(IProductTypeService productTypeService)
 {
     _productTypeService = productTypeService;
 }
 public ProductTypesViewComponent(IProductTypeService productTypeService)
 {
     this.productTypeService = productTypeService;
 }
 public ProductTypeController(IProductTypeService service)
 {
     _service = service;
 }
Esempio n. 24
0
 public Service(IProductTypeService productTypeService)
 {
     _productTypeService = productTypeService;
 }
 public ProductTypeController(IProductTypeService service)
 {
     this.service = service ?? throw new ArgumentNullException(nameof(service));
 }
Esempio n. 26
0
 public ProductTypeController(IProductTypeService productTypeService)
 {
     _productTypeService = productTypeService;
 }
 public CreateProductTypeCommandHandler(IProductTypeService productTypeService)
 {
     _productTypeService = productTypeService;
 }
 public ProductTypeServiceFacade(IProductTypeService productTypeService, ICacheService cacheService)
 {
     _productTypeService = productTypeService;
     _cacheService       = cacheService;
 }
Esempio n. 29
0
 public ProductController(IBrandService brandService, IProductTypeService productTypeService, IProductService productService)
 {
     this.brandService       = brandService;
     this.productTypeService = productTypeService;
     this.productService     = productService;
 }
Esempio n. 30
0
 public frmProducts()
 {
     InitializeComponent();
     _productService     = InstanceFactory.GetInstance <IProductService>();
     _productTypeService = InstanceFactory.GetInstance <IProductTypeService>();
 }
Esempio n. 31
0
 public ProductTypeController(IProductTypeService productTypesService, IMapper mapper)
 {
     _productTypesService = productTypesService;
     _mapper = mapper;
 }
 public ProductController(IProductService prodServ, IProductTypeService prodTypeServ)
 {
     _productService     = prodServ;
     _productTypeService = prodTypeServ;
 }
Esempio n. 33
0
 public ProductTypeConsolePage(IProductTypeService productTypeService, SelectedItems selectedItems)
 {
     _productTypeService = productTypeService;
     _selectedItems      = selectedItems;
 }
Esempio n. 34
0
 public ProductsController(IProductsService ProductsService, IProductTypeService productTypeService)
 {
     _ProductsService    = ProductsService;
     _productTypeService = productTypeService;
 }
 public BaseProductTypeHandler(IProductTypeService productTypeService)
 {
     _productTypeService = productTypeService;
 }