示例#1
0
 public ExportManager(ICategoryService categoryService, IProductPriceService priceService, IInventoryService inventoryService, IWorkContext workContext)
 {
     this.categoryService     = categoryService;
     this.productPriceService = priceService;
     this.inventoryService    = inventoryService;
     this.workContext         = workContext;
 }
        public CashierDeskController(
            ILoggerFactory loggerFactory,
            IStoreCashRegisterService storeCashRegisterService,
            IStoreScalesService storeScaleService,
            IProductPriceService productPriceService,
            ICurrentPricesService currentPriceService,
            IStoreService storeService,
            IProductService productService,
            ICashierService cashierService,
            IProductCategoryService productCategoryService,
            ISubgroupService subgroupService
            )
        {
            _logger = loggerFactory.GetLogger(typeof(CashierDeskController));

            _storeCashRegisterService = storeCashRegisterService;
            _storeScaleService        = storeScaleService;
            _productPriceService      = productPriceService;
            _currentPriceService      = currentPriceService;
            _storeService             = storeService;
            _productService           = productService;
            _cashierService           = cashierService;
            _productCategoryService   = productCategoryService;
            _subgroupService          = subgroupService;
        }
        public AddressesController(
            IOrderService orderService,
            IPosServiceIntegration posServiceIntegration,
            IPaymentService paymentService,
            IShoppingCart shoppingCart,
            IOrchardServices orchardServices,
            ICurrencyProvider currencyProvider,
            INwazetCommunicationService nwazetCommunicationService,
            IWorkContextAccessor workContextAccessor,
            IShapeFactory shapeFactory,
            ITransactionManager transactionManager,
            IContentManager contentManager,
            INotifier notifier,
            IProductPriceService productPriceService)
        {
            _orderService               = orderService;
            _posServiceIntegration      = posServiceIntegration;
            _paymentService             = paymentService;
            _shoppingCart               = shoppingCart;
            _orchardServices            = orchardServices;
            _currencyProvider           = currencyProvider;
            _nwazetCommunicationService = nwazetCommunicationService;
            _workContextAccessor        = workContextAccessor;
            _shapeFactory               = shapeFactory;
            _transactionManager         = transactionManager;
            _contentManager             = contentManager;
            _notifier            = notifier;
            _productPriceService = productPriceService;

            T = NullLocalizer.Instance;
        }
 public ProductUnitsController()
 {
     var dbfactory = new DatabaseFactory();
     _ProductUnitService = new ProductUnitService(new ProductUnitRepository(dbfactory), new UnitOfWork(dbfactory));
     _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
     _ProductPriceService = new ProductPriceService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory));
 }
示例#5
0
 public CartService(ICartRepository cartRepository, IProductPriceService productPriceService,
                    IProductCartService productCartService)
 {
     _cartRepository      = cartRepository;
     _productPriceService = productPriceService;
     _productCartService  = productCartService;
 }
 public ApiAccountSyncController(ITerminalServices terminalServices, ITenantLocationServices tenantLocationServices, IOrderService orderService,
                                 IProductServices productServices, IUserService userService, IAccountServices accountServices, IProductPriceService productPriceService)
     : base(terminalServices, tenantLocationServices, orderService, productServices, userService)
 {
     _accountServices     = accountServices;
     _productPriceService = productPriceService;
 }
示例#7
0
        public AddressesController(
            IOrderService orderService,
            IPaymentService paymentService,
            IShoppingCart shoppingCart,
            IOrchardServices orchardServices,
            ICurrencyProvider currencyProvider,
            INwazetCommunicationService nwazetCommunicationService,
            IWorkContextAccessor workContextAccessor,
            IShapeFactory shapeFactory,
            ITransactionManager transactionManager,
            IContentManager contentManager,
            INotifier notifier,
            IProductPriceService productPriceService,
            IAddressConfigurationService addressConfigurationService,
            IEnumerable <IOrderAdditionalInformationProvider> orderAdditionalInformationProviders,
            IEnumerable <IValidationProvider> validationProvider)
        {
            _orderService               = orderService;
            _paymentService             = paymentService;
            _shoppingCart               = shoppingCart;
            _orchardServices            = orchardServices;
            _currencyProvider           = currencyProvider;
            _nwazetCommunicationService = nwazetCommunicationService;
            _workContextAccessor        = workContextAccessor;
            _shapeFactory               = shapeFactory;
            _transactionManager         = transactionManager;
            _contentManager             = contentManager;
            _notifier                            = notifier;
            _productPriceService                 = productPriceService;
            _addressConfigurationService         = addressConfigurationService;
            _orderAdditionalInformationProviders = orderAdditionalInformationProviders;
            _validationProvider                  = validationProvider;

            T = NullLocalizer.Instance;
        }
示例#8
0
 public ProductPriceController(IEmployeeService employeeService, IProductPriceService productPriceService
                               , IProductService productService)
     : base(employeeService)
 {
     this._productPriceService = productPriceService;
     this._productService      = productService;
     this._employeeService     = employeeService;
 }
示例#9
0
        public ProductPriceForm(PurchaseReceiveDetailModel purchaseReceiveDetail)
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _productPriceService   = kernel.GetService(typeof(ProductPriceService)) as ProductPriceService;
            _purchaseReceiveDetail = purchaseReceiveDetail;
        }
 public InvoiceController(IProductServices productServices, ISalesOrderService salesOrderService, ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices,
                          IAppointmentsService appointmentsService, IGaneConfigurationsHelper configurationsHelper, IEmailServices emailServices, ITenantLocationServices tenantLocationservices, ITenantsServices tenantsServices, IProductPriceService priceService, IGaneConfigurationsHelper helper, IInvoiceService invoiceService)
     : base(orderService, propertyService, accountServices, lookupServices, appointmentsService, configurationsHelper, emailServices, tenantLocationservices, tenantsServices)
 {
     _priceService    = priceService;
     _helper          = helper;
     _productServices = productServices;
     _invoiceService  = invoiceService;
 }
示例#11
0
 public ProductVatConfigurationPartDriver(
     IVatConfigurationService vatConfigurationService,
     IVatConfigurationProvider vatConfigurationProvider,
     IProductPriceService productPriceService)
 {
     _vatConfigurationService  = vatConfigurationService;
     _vatConfigurationProvider = vatConfigurationProvider;
     _productPriceService      = productPriceService;
 }
示例#12
0
 public PriceProcessWorker(
     ILoggerFactory loggerFactory,
     IDictionary <string, string> parameters, string name,
     IProductPriceService productPriceService,
     IStoreCashRegisterService cashRegisterService) : base(loggerFactory, parameters, name)
 {
     _productPriceService = productPriceService;
     _cashRegisterService = cashRegisterService;
 }
示例#13
0
        public ProductPricesController(
            IProductPriceService productPriceService,
            ILogger logger)
        {
            this.productPriceService = productPriceService;
            this.logger = logger;

            this.logger.Trace("Call ProductPricesController");
        }
示例#14
0
 public GTMProductService(
     IOrchardServices orchardServicies,
     ITokenizer tokenizer,
     IProductPriceService productPriceService)
 {
     _orchardServices     = orchardServicies;
     _tokenizer           = tokenizer;
     _productPriceService = productPriceService;
 }
示例#15
0
 public SearchController()
 {
     catalogService       = ServiceLocator.Current.GetInstance <ICatalogService>();
     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>();
 }
示例#16
0
 public OrderDetailController(ICoreOrderService orderService, IPropertyService propertyService, IAccountServices accountServices, ILookupServices lookupServices, IStockTakeApiService stockTakeApiService, ICommonDbServices commonDbServices, IProductServices productServices, ITenantLocationServices tenantLocationServices, IProductPriceService productPriceService)
     : base(orderService, propertyService, accountServices, lookupServices)
 {
     StockTakeApiService     = stockTakeApiService;
     _commonDbServices       = commonDbServices;
     _productServices        = productServices;
     _tenantLocationServices = tenantLocationServices;
     _productPriceService    = productPriceService;
     _orderService           = orderService;
 }
 public GetProductInfoHandler(
     IRepository <ProductEntity> productRepository,
     IRepository <CampaignEntity> campaignRepository,
     ITimeService timeService,
     IProductPriceService productPriceService)
 {
     _productRepository   = productRepository;
     _campaignRepository  = campaignRepository;
     _timeService         = timeService;
     _productPriceService = productPriceService;
 }
示例#18
0
        public ProductPriceServiceTest()
        {
            var dbContext = Db.GetContext();

            _repository          = new Repository(dbContext);
            _productPriceService = new ProductPriceService(_repository);

            CreateProduct();
            CreateProduct();
            CreateProduct();
        }
示例#19
0
 public SalesController(UserManager <User> userManager)
 {
     _userManager         = userManager;
     orderService         = ServiceLocator.Current.GetInstance <IOrderService>();
     orderDetailService   = ServiceLocator.Current.GetInstance <IOrderDetailService>();
     productService       = ServiceLocator.Current.GetInstance <IProductService>();
     productDetailService = ServiceLocator.Current.GetInstance <IProductDetailService>();
     productPriceService  = ServiceLocator.Current.GetInstance <IProductPriceService>();
     productTypeService   = ServiceLocator.Current.GetInstance <IProductTypeService>();
     imageService         = ServiceLocator.Current.GetInstance <IImageService>();
 }
 public GTMProductService(
     IOrchardServices orchardServicies,
     ITokenizer tokenizer,
     IProductPriceService productPriceService,
     IGDPRScript gdprScriptService,
     IWorkContextAccessor workContextAccessor)
 {
     _orchardServices     = orchardServicies;
     _tokenizer           = tokenizer;
     _productPriceService = productPriceService;
     _gdprScriptService   = gdprScriptService;
     _workContextAccessor = workContextAccessor;
 }
示例#21
0
        public ProductsController(
            IProductRepository productRepository,
            IProductPriceService productPriceService,
            IProductCategoryService productCategoryService
            , ILogger logger
            )
        {
            this.productRepository      = productRepository;
            this.productPriceService    = productPriceService;
            this.productCategoryService = productCategoryService;

            this.logger = logger;
            this.logger.Trace("Call ProductsController");
        }
示例#22
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;
 }
示例#23
0
        public HistoryController(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>();
        }
示例#24
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>();
        }
示例#25
0
        public OrderServiceTest()
        {
            IEsnecilGeneratorResource esnecilGeneratorFile = new EsnecilGeneratorFile();

            var dbContext = Db.GetContext();

            _repository       = new Repository(dbContext);
            _invoiceManager   = new InvoiceManager(_repository);
            _esnecilGenerator = new TrialEsnecilGenerator(esnecilGeneratorFile);

            _orderService        = new OrderService(_repository, _invoiceManager, _esnecilGenerator);
            _productPriceService = new ProductPriceService(_repository);

            //CreateOrder();
            CreateProducts();
            CreateProductPrices();
        }
示例#26
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;
 }
示例#27
0
        public OrderLinesController(
            IOrderRepository orderRepository,
            IOrderLineRepository orderLineRepository,
            IProductRepository productRepository,
            IUomRepository uomRepository,
            IProductPriceService productPriceRepository,
            ILogger logger)
        {
            this.orderRepository        = orderRepository;
            this.orderLineRepository    = orderLineRepository;
            this.productRepository      = productRepository;
            this.productPriceRepository = productPriceRepository;
            this.uomRepository          = uomRepository;
            this.logger = logger;

            this.logger.Trace("Call OrderLineController");
        }
示例#28
0
 public OrderController(
     IPermissionService permissionService,
     IStoreService storeService,
     IProductService productService,
     IOrderService orderService,
     IProductPriceService productPriceService,
     IInventoryService inventoryService,
     IWorkContext workContext
     )
 {
     this.permissionService   = permissionService;
     this.storeService        = storeService;
     this.productService      = productService;
     this.orderService        = orderService;
     this.productPriceService = productPriceService;
     this.inventoryService    = inventoryService;
     this.workContext         = workContext;
 }
示例#29
0
 public ProductController(
     IPermissionService permissionService,
     ICategoryService categoryService,
     IProductService productService,
     IStoreService storeService,
     IProductPriceService productPriceService,
     IInventoryService inventoryService,
     IDateTimeHelper dateTimeHelper,
     IExportManager exportManager)
 {
     this.permissionService   = permissionService;
     this.categoryService     = categoryService;
     this.productService      = productService;
     this.storeService        = storeService;
     this.productPriceService = productPriceService;
     this.inventoryService    = inventoryService;
     this.dateTimeHelper      = dateTimeHelper;
     this.exportManager       = exportManager;
 }
示例#30
0
 public CheckoutHelperService(
     IShoppingCart shoppingCart,
     IProductPriceService productPriceService,
     IContentManager contentManager,
     IOrderService orderService,
     IWorkContextAccessor workContextAccessor,
     ICurrencyProvider currencyProvider,
     IEnumerable <IOrderAdditionalInformationProvider> orderAdditionalInformationProviders,
     Lazy <IEnumerable <ICheckoutCondition> > checkoutConditions)
 {
     _shoppingCart        = shoppingCart;
     _productPriceService = productPriceService;
     _contentManager      = contentManager;
     _orderService        = orderService;
     _workContextAccessor = workContextAccessor;
     _currencyProvider    = currencyProvider;
     _orderAdditionalInformationProviders = orderAdditionalInformationProviders;
     _checkoutConditions = checkoutConditions;
 }
        public ProductsController(
            IProductRepository productRepository,
            IProductPriceService productPriceService,
            IProductCategoryService productCategoryService,
            ILinkRepository linkRepository,
            IProductSpecificationRepository productSpecificationRepository,
            IUomRepository uomRepository,
            ILogger logger
            )
        {
            this.productRepository              = productRepository;
            this.productPriceService            = productPriceService;
            this.productCategoryService         = productCategoryService;
            this.linkRepository                 = linkRepository;
            this.productSpecificationRepository = productSpecificationRepository;
            this.uomRepository = uomRepository;

            this.logger = logger;
            this.logger.Trace("Call ProductsController");
        }
 public ProductPriceController()
 {
     var dbfactory = new DatabaseFactory();
     _productPriceService = new ProductPriceService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory));
 }
 public ChartOfProductController()
 {
     var dbfactory = new DatabaseFactory();
     _ChartOfProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), new UnitOfWork(dbfactory));
     _ProductPriceService = new ProductPriceService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory));
 }