Esempio n. 1
0
 public PromotionController(ILogger <PromotionController> logger, IPromotionService promotionService, IPlaceService placeService, IFeedbackService feedbackService)
 {
     _promotionService = promotionService;
     _placeService     = placeService;
     _feedbackService  = feedbackService;
     _logger           = logger;
 }
Esempio n. 2
0
 public PromotionController(ISettingService settingService,
                            ILocalizationService localizationService,
                            IPermissionService permissionService,
                            ILocalizedEntityService localizedEntityService,
                            ILanguageService languageService,
                            IPictureService pictureService,
                            ContentSliderSettings contentSliderSettings,
                            IStoreService storeService,
                            IWorkContext workContext,
                            ICategoryService categoryService,
                            IProductService productService,
                            AdminAreaSettings adminAreaSettings,
                            CustomerSettings customerSettings,
                            IPromotionService promotionService,
                            IPromotionProductsService promotionProductService)
 {
     this._settingService           = settingService;
     this._localizationService      = localizationService;
     this._permissionService        = permissionService;
     this._localizedEntityService   = localizedEntityService;
     this._languageService          = languageService;
     this._pictureService           = pictureService;
     this._contentSliderSettings    = contentSliderSettings;
     this._storeService             = storeService;
     this._workContext              = workContext;
     this._adminAreaSettings        = adminAreaSettings;
     this._customerSettings         = customerSettings;
     this._categoryService          = categoryService;
     this._productService           = productService;
     this._promotionService         = promotionService;
     this._promotionProductsService = promotionProductService;
 }
Esempio n. 3
0
 public AccountController(ILogger <AccountController> logger, IUserService userService, IFeedbackService feedbackService, IPromotionService promotionService)
 {
     _logger           = logger;
     _userService      = userService;
     _feedbackService  = feedbackService;
     _promotionService = promotionService;
 }
 public GradePromoter(
     IFileService fileService,
     IPromotionService promotionService)
 {
     this.fileService      = fileService;
     this.promotionService = promotionService;
 }
Esempio n. 5
0
 public PromotionController(IEventService _EventService, ITheatreService _TheatreService, IPromotionService _PromotionService, IPromocodeRepository _PromocodeRepository)
 {
     EventService        = _EventService;
     TheatreService      = _TheatreService;
     PromotionService    = _PromotionService;
     PromocodeRepository = _PromocodeRepository;
 }
 public PromotionCineController(IPromotionCineService promotionCineService, IStatusService statusService, ICinemaService cinemaService, IPromotionService promotionService)
 {
     _promotionCineService = promotionCineService;
     _statusService        = statusService;
     _cinemaService        = cinemaService;
     _promotionService     = promotionService;
 }
Esempio n. 7
0
 public PromotionCommand(PromotionModel model, PromotionAction action)
 {
     this.PromotionModel   = model;
     this.promotionAction  = action;
     this.promotionService = new PromotionService();
     this.productService   = new ProductService();
 }
Esempio n. 8
0
 public OrdersController(
     IQuartetClientFactory                       clientFactory,
     IMappingService<Order,    OrderViewModel>   orderMapping,
     IMappingService<Customer, HCardViewModel>   hcardMapping,
     IMappingService<Address,  AddressViewModel> addressMapping,
     IMailingService                             mailingService,
     IInvoicingService                           invoicingService,
     IFeaturesConfigService                      featuresConfigService,
     IAppSettings                                appSettings,
     IConsultantContext                          consultantContext,
     IConsultantDataServiceClientFactory         consultantDataServiceClientFactory,
     IPromotionService                           promotionService,
     IProductCatalogClientFactory                productCatalogClientFactory,
     IInventoryService                           inventoryService,
     ISubsidiaryAccessor                         subsidiaryAccessor
 )
 {
     _clientFactory                      = clientFactory;
     _orderMapping                       = orderMapping;
     _hcardMapping                       = hcardMapping;
     _addressMapping                     = addressMapping;
     _mailingService                     = mailingService;
     _invoicingService                   = invoicingService;
     _featuresConfigService              = featuresConfigService;
     _appSettings                        = appSettings;
     _consultantContext                  = consultantContext;
     _consultantDataServiceClientFactory = consultantDataServiceClientFactory;
     _promotionService                   = promotionService;
     _productCatalogClientFactory        = productCatalogClientFactory;
     _inventoryService                   = inventoryService;
     _subsidiaryAccessor                 = subsidiaryAccessor;
 }
Esempio n. 9
0
 public ProductController(
     IPromotionService promotionService,
     IContentLoader contentLoader,
     IPriceService priceService,
     ICurrentMarket currentMarket,
     CurrencyService currencyservice,
     IRelationRepository relationRepository,
     AppContextFacade appContext,
     UrlResolver urlResolver,
     FilterPublished filterPublished,
     LanguageResolver languageResolver,
     IsInEditModeAccessor isInEditModeAccessor)
 {
     _promotionService   = promotionService;
     _contentLoader      = contentLoader;
     _priceService       = priceService;
     _currentMarket      = currentMarket;
     _currencyservice    = currencyservice;
     _relationRepository = relationRepository;
     _appContext         = appContext;
     _urlResolver        = urlResolver;
     _languageResolver   = languageResolver;
     _isInEditMode       = isInEditModeAccessor();
     _filterPublished    = filterPublished;
 }
 public ProductController(
     IPromotionService promotionService,
     IContentLoader contentLoader,
     IPriceService priceService,
     ICurrentMarket currentMarket,
     CurrencyService currencyservice,
     IRelationRepository relationRepository,
     AppContextFacade appContext,
     UrlResolver urlResolver,
     FilterPublished filterPublished,
     Func <CultureInfo> preferredCulture,
     Func <bool> isInEditMode)
 {
     _promotionService   = promotionService;
     _contentLoader      = contentLoader;
     _priceService       = priceService;
     _currentMarket      = currentMarket;
     _currencyservice    = currencyservice;
     _relationRepository = relationRepository;
     _appContext         = appContext;
     _urlResolver        = urlResolver;
     _preferredCulture   = preferredCulture();
     _isInEditMode       = isInEditMode();
     _filterPublished    = filterPublished;
 }
Esempio n. 11
0
 public ProductService(IContentLoader contentLoader,
                       IPromotionService promotionService,
                       IPricingService pricingService,
                       UrlResolver urlResolver,
                       LinksRepository linksRepository,
                       IRelationRepository relationRepository,
                       ICurrentMarket currentMarketService,
                       ICurrencyService currencyService,
                       AppContextFacade appContext,
                       ReferenceConverter referenceConverter,
                       LanguageService languageService,
                       FilterPublished filterPublished)
 {
     _contentLoader        = contentLoader;
     _promotionService     = promotionService;
     _pricingService       = pricingService;
     _urlResolver          = urlResolver;
     _linksRepository      = linksRepository;
     _relationRepository   = relationRepository;
     _preferredCulture     = ContentLanguage.PreferredCulture;
     _currentMarketService = currentMarketService;
     _currencyService      = currencyService;
     _appContext           = appContext;
     _referenceConverter   = referenceConverter;
     _languageService      = languageService;
     _filterPublished      = filterPublished;
 }
 public PromotionController(IUserService userService, IAuthentication authentication, IListingService listingService, IPromotionService promotionService)
 {
     _userService = userService;
     _authentication = authentication;
     _listingService = listingService;
     _promotionService = promotionService;
 }
Esempio n. 13
0
 public MarketingModulePromotionController(
     IPromotionService promotionService,
     ICouponService couponService,
     IMarketingPromoEvaluator promoEvaluator,
     IPromotionSearchService promoSearchService,
     IUserNameResolver userNameResolver,
     IPushNotificationManager notifier,
     IBlobStorageProvider blobStorageProvider,
     CsvCouponImporter csvCouponImporter,
     ISecurityService securityService,
     IPermissionScopeService permissionScopeService,
     Func <IMarketingRepository> repositoryFactory
     )
 {
     _securityService        = securityService;
     _promotionService       = promotionService;
     _couponService          = couponService;
     _promoEvaluator         = promoEvaluator;
     _promoSearchService     = promoSearchService;
     _userNameResolver       = userNameResolver;
     _notifier               = notifier;
     _blobStorageProvider    = blobStorageProvider;
     _csvCouponImporter      = csvCouponImporter;
     _permissionScopeService = permissionScopeService;
     _repositoryFactory      = repositoryFactory;
 }
Esempio n. 14
0
 public CheckoutCommand(CheckoutModel checkout, CheckoutAction action)
 {
     checkoutAction   = action;
     Checkout         = checkout;
     productService   = new ProductService();
     promotionService = new PromotionService();
 }
 public CartService(
     IProductService productService,
     IPricingService pricingService,
     IOrderGroupFactory orderGroupFactory,
     CustomerContextFacade customerContext,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     IAddressBookService addressBookService,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     IPromotionService promotionService,
     ILineItemCalculator lineItemCalculator,
     IMarketService marketService)
 {
     _productService       = productService;
     _pricingService       = pricingService;
     _orderGroupFactory    = orderGroupFactory;
     _customerContext      = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _promotionEngine      = promotionEngine;
     _orderRepository      = orderRepository;
     _addressBookService   = addressBookService;
     _currentMarket        = currentMarket;
     _currencyService      = currencyService;
     _promotionService     = promotionService;
     _lineItemCalculator   = lineItemCalculator;
     _marketService        = marketService;
 }
Esempio n. 16
0
 public CommerceSearchService(ICurrentMarket currentMarket,
                              ICurrencyService currencyService,
                              LanguageResolver languageResolver,
                              IClient findClient,
                              IFacetRegistry facetRegistry,
                              IFindUIConfiguration findUIConfiguration,
                              ReferenceConverter referenceConverter,
                              IContentRepository contentRepository,
                              IPriceService priceService,
                              IPromotionService promotionService,
                              ICurrencyService currencyservice,
                              IContentLoader contentLoader
                              )
 {
     _currentMarket       = currentMarket;
     _currencyService     = currencyService;
     _languageResolver    = languageResolver;
     _findClient          = findClient;
     _facetRegistry       = facetRegistry;
     _findUIConfiguration = findUIConfiguration;
     //_findClient.Personalization().Refresh();
     _referenceConverter = referenceConverter;
     _contentRepository  = contentRepository;
     _priceService       = priceService;
     _promotionService   = promotionService;
     _currencyservice    = currencyservice;
     _contentLoader      = contentLoader;
 }
 public PromotionController(IPromotionService promotionService,
                            ILanguageService languageService,
                            ICategoryService categoryService,
                            IConfiguration configuration) : base(languageService, categoryService, configuration)
 {
     _promotionServive = promotionService;
 }
Esempio n. 18
0
 public CatalogEntryViewModelFactory(
     IPromotionService promotionService,
     IContentLoader contentLoader,
     IPriceService priceService,
     ICurrentMarket currentMarket,
     CurrencyService currencyservice,
     IRelationRepository relationRepository,
     UrlResolver urlResolver,
     FilterPublished filterPublished,
     LanguageResolver languageResolver,
     IStoreService storeService,
     IProductService productService,
     IQuickOrderService quickOrderService,
     IInventoryService inventoryService,
     IWarehouseRepository warehouseRepository,
     IDatabaseMode databaseMode)
 {
     _promotionService    = promotionService;
     _contentLoader       = contentLoader;
     _priceService        = priceService;
     _currentMarket       = currentMarket;
     _currencyservice     = currencyservice;
     _relationRepository  = relationRepository;
     _urlResolver         = urlResolver;
     _filterPublished     = filterPublished;
     _languageResolver    = languageResolver;
     _storeService        = storeService;
     _productService      = productService;
     _quickOrderService   = quickOrderService;
     _inventoryService    = inventoryService;
     _warehouseRepository = warehouseRepository;
     _databaseMode        = databaseMode;
 }
Esempio n. 19
0
 public override void OnActionExecuting(ActionExecutingContext context)
 {
     //IL_00ce: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
     //IL_00da: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
     //IL_010d: Expected O, but got Unknown
     if (CurrentUser != null)
     {
         HttpContext httpContext = context.HttpContext;
         string      text        = httpContext.Request.Cookies["pc"];
         if (text != null)
         {
             ((dynamic)this.ViewBag).UserPromotionCount = text;
         }
         else
         {
             IPromotionService service = ServiceProviderServiceExtensions.GetService <IPromotionService>(httpContext.RequestServices);
             Result <int>      result  = service.GetUserActivePromotionCount(CurrentUser.UserId).Result;
             int data = result.Data;
             IResponseCookies cookies = httpContext.Response.Cookies;
             string           text2   = data.ToString();
             CookieOptions    val     = new CookieOptions();
             val.HttpOnly = (true);
             val.Secure   = (true);
             val.Expires  = ((DateTimeOffset?)DateTime.Now.AddMinutes(1.0));
             cookies.Append("pc", text2, val);
             ((dynamic)this.ViewBag).UserPromotionCount = data.ToString();
         }
     }
     base.OnActionExecuting(context);
 }
 public CartItemViewModelFactory(
     IContentLoader contentLoader,
     IPricingService pricingService,
     UrlResolver urlResolver,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     IPromotionService promotionService,
     AppContextFacade appContext,
     ILineItemCalculator lineItemCalculator,
     IProductService productService, 
     IRelationRepository relationRepository, 
     ICartService cartService)
 {
     _contentLoader = contentLoader;
     _pricingService = pricingService;
     _urlResolver = urlResolver;
     _currentMarket = currentMarket;
     _currencyService = currencyService;
     _promotionService = promotionService;
     _appContext = appContext;
     _lineItemCalculator = lineItemCalculator;
     _productService = productService;
     _relationRepository = relationRepository;
     _cartService = cartService;
 }
Esempio n. 21
0
 public CouponUsageRecordHandler(IPromotionUsageService usageService, IPromotionUsageSearchService promotionUsageSearchService, IPromotionService promotionService)
 {
     _usageService = usageService;
     _promotionUsageSearchService = promotionUsageSearchService;
     EqualityComparer             = AnonymousComparer.Create((PromotionUsage x) => string.Join(":", x.PromotionId, x.CouponCode, x.ObjectId));
     _promotionService            = promotionService;
 }
 public ProductController(
     IPromotionService promotionService,
     IContentLoader contentLoader,
     IPriceService priceService,
     ICurrentMarket currentMarket,
     CurrencyService currencyservice,
     IRelationRepository relationRepository,
     AppContextFacade appContext,
     UrlResolver urlResolver,
     FilterPublished filterPublished,
     PreferredCultureAccessor preferredCultureAccessor,
     IsInEditModeAccessor isInEditModeAccessor,
     IQuickOrderService quickOrderService)
 {
     _promotionService   = promotionService;
     _contentLoader      = contentLoader;
     _priceService       = priceService;
     _currentMarket      = currentMarket;
     _currencyservice    = currencyservice;
     _relationRepository = relationRepository;
     _appContext         = appContext;
     _urlResolver        = urlResolver;
     _preferredCulture   = preferredCultureAccessor();
     _isInEditMode       = isInEditModeAccessor();
     _filterPublished    = filterPublished;
     _quickOrderService  = quickOrderService;
 }
Esempio n. 23
0
        public DashboardController(IRepository <CampaignCategoriesRecord> campaignCategoryRepository,
                                   IRepository <LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository,
                                   ICampaignService campaignService,
                                   IMailChimpSettingsService settingsService,
                                   IOrderService orderService,
                                   IWorkContextAccessor wca,
                                   IStoreService storeService,
                                   IimageHelper imageHelper,
                                   IMembershipService membershipService,
                                   IPayoutService payoutService,
                                   IOrchardServices services,
                                   IContentManager contentManager,
                                   IPromotionService promotionService,
                                   IPaymentInformationService paymentInfService,
                                   ICampaignCategoriesService campaignCategoryService,
                                   IRepository <CurrencyRecord> currencyRepository,
                                   IMessageService messageService,
                                   ITShirtCostService tshirtService,
                                   IProductService productService,
                                   INotifier notifier,
                                   ICookieCultureService cookieCultureService,
                                   ITeeyootMessagingService teeyootMessagingService,
                                   IWorkContextAccessor workContextAccessor,
                                   ITShirtCostService costService,
                                   IPriceConversionService priceConversionService,
                                   IRepository <TeeyootUserPart> users
                                   )
        {
            _campaignCategoryRepository        = campaignCategoryRepository;
            _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository;
            _cookieCultureService = cookieCultureService;
            _campaignService      = campaignService;
            _currencyRepository   = currencyRepository;
            _orderService         = orderService;
            _wca = wca;
            this._settingsService    = settingsService;
            this._orderService       = orderService;
            _storeService            = storeService;
            _imageHelper             = imageHelper;
            _membershipService       = membershipService;
            _contentManager          = contentManager;
            _payoutService           = payoutService;
            _promotionService        = promotionService;
            _campaignCategoryService = campaignCategoryService;
            _paymentInfService       = paymentInfService;
            _messageService          = messageService;
            _tshirtService           = tshirtService;
            _productService          = productService;
            _notifier = notifier;
            _teeyootMessagingService = teeyootMessagingService;
            Services                = services;
            _costService            = costService;
            Logger                  = NullLogger.Instance;
            _priceConversionService = priceConversionService;
            _users                  = users;

            _workContextAccessor = workContextAccessor;
            culture     = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
Esempio n. 24
0
        public int CashBackPromotion(Membership mbs, double totalAmount)
        {
            IPromotionService promotionService = DependencyUtils.Resolve <IPromotionService>();
            var promotionDetailService         = DependencyUtils.Resolve <IPromotionDetailService>();
            int point = 0;
            // get membershipType
            var mbsType = mbs.MembershipType;
            // code check promotion CashBack
            var code = mbsType.AppendCode + "_" + mbs.MembershipCode;
            // get promotionCashBack
            var promotion = promotionService.GetByPromoCode(ConstantManager.PROMOTION_CASH_BACK);

            if (promotion == null)
            {
                return(point);
            }
            // get list promotionDetail CashBack
            var promotionDetail = promotionDetailService.GetDetailByCode(promotion.PromotionCode).ToList();

            foreach (var item in promotionDetail)
            {
                var check = Regex.IsMatch(code, item.RegExCode);
                if (check)
                {
                    point = (int)(totalAmount / 10000 * item.PointTrade);

                    return(point);
                }
            }
            return(point);
        }
Esempio n. 25
0
 public CheckoutModel(
     IProductService productSer,
     IMapper mapper,
     IPromotionService promotionSer,
     IFeeService feeSer) : base(productSer, mapper, promotionSer)
 {
 }
Esempio n. 26
0
 public ProductService(IContentLoader contentLoader,
                       IPromotionService promotionService,
                       UrlResolver urlResolver,
                       IRelationRepository relationRepository,
                       ICurrentMarket currentMarketService,
                       ICurrencyService currencyService,
                       ReferenceConverter referenceConverter,
                       LanguageService languageService,
                       FilterPublished filterPublished,
                       IStoreService storeService,
                       ICurrentMarket currentMarket)
 {
     _contentLoader        = contentLoader;
     _promotionService     = promotionService;
     _urlResolver          = urlResolver;
     _relationRepository   = relationRepository;
     _preferredCulture     = ContentLanguage.PreferredCulture;
     _currentMarketService = currentMarketService;
     _currencyService      = currencyService;
     _referenceConverter   = referenceConverter;
     _languageService      = languageService;
     _filterPublished      = filterPublished;
     _storeService         = storeService;
     _currentMarket        = currentMarket;
 }
 public QueryController(IAdaptationService adaptationService, IGraduationService graduationService,
                        IIdentityService ıdentityService, IAwardService awardService, IBirthCertificateService birthCertificateService,
                        ICourseService courseService, ICriminalService criminalService, IDesignationService designationService,
                        IPermissionService permissionService, IPromotionService promotionService, ITemporaryDutyService temporaryDutyService,
                        IForeignLanguageService foreignLanguageService, IWorkingPriceService workingPriceService, ITradeUnionInfoService tradeUnionInfoService,
                        IMilitaryService militaryService, IWorkplaceService workplaceService, IPriceTypeService priceTypeService, ITisJobCodeService tisJobCodeService,
                        IAdminStatusService adminStatusService, IDailyWorkingTimeService dailyWorkingTimeService, IPrivateStatusService privateStatusService, IMaritalStatusService maritalStatusService, IGenderService genderService, IWorkingStatusService workingStatusService, IWorkplaceHeadquartersService workplaceHeadquartersService)
 {
     _adaptationService            = adaptationService;
     _graduationService            = graduationService;
     _ıdentityService              = ıdentityService;
     _awardService                 = awardService;
     _birthCertificateService      = birthCertificateService;
     _courseService                = courseService;
     _criminalService              = criminalService;
     _designationService           = designationService;
     _permissionService            = permissionService;
     _promotionService             = promotionService;
     _temporaryDutyService         = temporaryDutyService;
     _foreignLanguageService       = foreignLanguageService;
     _workingPriceService          = workingPriceService;
     _tradeUnionInfoService        = tradeUnionInfoService;
     _militaryService              = militaryService;
     _workplaceService             = workplaceService;
     _priceTypeService             = priceTypeService;
     _tisJobCodeService            = tisJobCodeService;
     _adminStatusService           = adminStatusService;
     _dailyWorkingTimeService      = dailyWorkingTimeService;
     _privateStatusService         = privateStatusService;
     _maritalStatusService         = maritalStatusService;
     _genderService                = genderService;
     _workingStatusService         = workingStatusService;
     _workplaceHeadquartersService = workplaceHeadquartersService;
 }
Esempio n. 28
0
        public CampaignController(
            ICampaignService campaignService,
            ITShirtCostService tshirtService,
            IProductService productService,
            IPromotionService promotionService,
            IRepository<CurrencyRecord> currencyRepository,
            IWorkContextAccessor wca,
            INotifier notifier,
            IOrchardServices services,
            ICookieCultureService cookieCultureService,
            ICountryService countryService)
        {
            _currencyRepository = currencyRepository;
            Services = services;
            _tshirtService = tshirtService;
            _productService = productService;
            _campaignService = campaignService;
            _promotionService = promotionService;
            _wca = wca;
            _notifier = notifier;
            Logger = NullLogger.Instance;

            _cookieCultureService = cookieCultureService;
            //var culture = _wca.GetContext().CurrentCulture.Trim();
            _cultureUsed = _wca.GetContext().CurrentCulture.Trim();
            //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _countryService = countryService;
        }
 public CartItemViewModelFactory(
     IContentLoader contentLoader,
     IPricingService pricingService,
     UrlResolver urlResolver,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     IPromotionService promotionService,
     AppContextFacade appContext,
     ILineItemCalculator lineItemCalculator,
     IProductService productService,
     IRelationRepository relationRepository,
     ICartService cartService)
 {
     _contentLoader      = contentLoader;
     _pricingService     = pricingService;
     _urlResolver        = urlResolver;
     _currentMarket      = currentMarket;
     _currencyService    = currencyService;
     _promotionService   = promotionService;
     _appContext         = appContext;
     _lineItemCalculator = lineItemCalculator;
     _productService     = productService;
     _relationRepository = relationRepository;
     _cartService        = cartService;
 }
 public RecommendationViewController(ILogger <RecommendationViewController> logger, IRecommendationService recommendationService, ICustomerProfileService customerProfileService, IPromotionService promotionService)
 {
     _logger = logger;
     _recommendationService  = recommendationService;
     _customerProfileService = customerProfileService;
     _promotionService       = promotionService;
 }
Esempio n. 31
0
 public MarketingModulePromotionController(
     IPromotionService promotionService,
     ICouponService couponService,
     IMarketingPromoEvaluator promoEvaluator,
     IPromotionSearchService promoSearchService,
     IUserNameResolver userNameResolver,
     IPushNotificationManager notifier,
     IBlobStorageProvider blobStorageProvider,
     CsvCouponImporter csvCouponImporter,
     Func <IMarketingRepository> repositoryFactory,
     ICouponSearchService couponSearchService,
     IAuthorizationService authorizationService)
 {
     _promotionService     = promotionService;
     _couponService        = couponService;
     _promoEvaluator       = promoEvaluator;
     _promoSearchService   = promoSearchService;
     _userNameResolver     = userNameResolver;
     _notifier             = notifier;
     _blobStorageProvider  = blobStorageProvider;
     _csvCouponImporter    = csvCouponImporter;
     _repositoryFactory    = repositoryFactory;
     _couponSearchService  = couponSearchService;
     _authorizationService = authorizationService;
 }
 public MarketingModulePromotionController(
     IPromotionService promotionService,
     ICouponService couponService,
     IMarketingExtensionManager promotionManager,
     IMarketingPromoEvaluator promoEvaluator,
     IExpressionSerializer expressionSerializer,
     IPromotionSearchService promoSearchService,
     IUserNameResolver userNameResolver,
     IPushNotificationManager notifier,
     IBlobStorageProvider blobStorageProvider,
     CsvCouponImporter csvCouponImporter,
     ISecurityService securityService,
     IPermissionScopeService permissionScopeService)
 {
     _securityService           = securityService;
     _marketingExtensionManager = promotionManager;
     _promotionService          = promotionService;
     _couponService             = couponService;
     _promoEvaluator            = promoEvaluator;
     _expressionSerializer      = expressionSerializer;
     _promoSearchService        = promoSearchService;
     _userNameResolver          = userNameResolver;
     _notifier               = notifier;
     _blobStorageProvider    = blobStorageProvider;
     _csvCouponImporter      = csvCouponImporter;
     _permissionScopeService = permissionScopeService;
 }
Esempio n. 33
0
 public MarketingSearchServiceImpl(Func <IMarketingRepository> repositoryFactory, IDynamicContentService dynamicContentService, IPromotionService promotionService
                                   , IPlatformMemoryCache platformMemoryCache)
 {
     _repositoryFactory     = repositoryFactory;
     _dynamicContentService = dynamicContentService;
     _promotionService      = promotionService;
     _platformMemoryCache   = platformMemoryCache;
 }
Esempio n. 34
0
        public PromotionsController(IPromotionService promotionService, IMappingService mappingService)
        {
            Validator.ValidateNullArgument(promotionService, "promotionService");
            Validator.ValidateNullArgument(mappingService, "mappingService");

            this.promotionService = promotionService;
            this.mappingService   = mappingService;
        }
Esempio n. 35
0
 public ShopController(ICategoryService categoryService, IMerchantService merchantServie, IProductServices productServices,
     IPromotionService promotionService)
 {
     _categoryService = categoryService;
     _merchantServie = merchantServie;
     _productServices = productServices;
     _promotionService = promotionService;
 }
Esempio n. 36
0
        public DashboardController(IRepository<CampaignCategoriesRecord> campaignCategoryRepository,
                                   IRepository<LinkCampaignAndCategoriesRecord> linkCampaignAndCategoryRepository,
                                   ICampaignService campaignService,
                                   IMailChimpSettingsService settingsService,
                                   IOrderService orderService,
                                   IWorkContextAccessor wca,
                                   IStoreService storeService,
                                   IimageHelper imageHelper,
                                   IMembershipService membershipService,
                                   IPayoutService payoutService,
                                   IOrchardServices services,
                                   IContentManager contentManager,
                                   IPromotionService promotionService,
                                   IPaymentInformationService paymentInfService,
                                   ICampaignCategoriesService campaignCategoryService,
                                   IRepository<CurrencyRecord> currencyRepository,
                                   IMessageService messageService,
                                   ITShirtCostService tshirtService,
                                   IProductService productService,
                                   INotifier notifier,
                                   ICookieCultureService cookieCultureService,
                                   ITeeyootMessagingService teeyootMessagingService,
                                   IWorkContextAccessor workContextAccessor
                                    )
        {
            _campaignCategoryRepository = campaignCategoryRepository;
            _linkCampaignAndCategoryRepository = linkCampaignAndCategoryRepository;
            _cookieCultureService = cookieCultureService;
            _campaignService = campaignService;
            _currencyRepository = currencyRepository;
            _orderService = orderService;
            _wca = wca;
            this._settingsService = settingsService;
            this._orderService = orderService;
            _storeService = storeService;
            _imageHelper = imageHelper;
            _membershipService = membershipService;
            _contentManager = contentManager;
            _payoutService = payoutService;
            _promotionService = promotionService;
            _campaignCategoryService = campaignCategoryService;
            _paymentInfService = paymentInfService;
            _messageService = messageService;
            _tshirtService = tshirtService;
            _productService = productService;
            _notifier = notifier;
            _teeyootMessagingService = teeyootMessagingService;
            Services = services;

            Logger = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
            culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }
Esempio n. 37
0
 public CatalogIndexer()
 {
     _priceService = ServiceLocator.Current.GetInstance<IPriceService>();
     _contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>(); 
     _promotionService = ServiceLocator.Current.GetInstance<IPromotionService>(); 
     _referenceConverter = ServiceLocator.Current.GetInstance<ReferenceConverter>();
     _assetUrlResolver = ServiceLocator.Current.GetInstance<AssetUrlResolver>();
     _relationRepository = ServiceLocator.Current.GetInstance<IRelationRepository>();
     _appContext = ServiceLocator.Current.GetInstance<AppContextFacade>();
     _log = LogManager.GetLogger(typeof(CatalogIndexer));
 }
Esempio n. 38
0
 public AdminController(ICategoryService categoryService, ICustomerService customerService, 
     IMerchantService merchantServie, IDepartmentService departmentService,
     IOrderProcessingService orderProcessingService, IPromotionService promotionService)
 {
     _categoryService = categoryService;
     _customerService = customerService;
     _merchantServie = merchantServie;
     _departmentService = departmentService;
     _orderProcessingService = orderProcessingService;
     _promotionService = promotionService;
 }
 public PromotionDataService(IPromotionService promotionService, ICouponService couponService, IPromotionBrandRelationRepository promotionBrandRelationRepository, IPromotionRepository promotionRepository, IFavoriteService favoriteService, IShareService shareService, ICouponDataService couponDataService, IResourceService resourceService)
 {
     _promotionRepository = promotionRepository;
     _favoriteService = favoriteService;
     _shareService = shareService;
     _couponDataService = couponDataService;
     _resourceService = resourceService;
     _promotionBrandRelationRepository = promotionBrandRelationRepository;
     _couponService = couponService;
     _promotionService = promotionService;
 }
Esempio n. 40
0
        public PromotionPricingStage(
            IPromotionService promotionService,
            IPromotionPolicyProvider policyFactory,
            RuleEngine ruleEngine)
        {
            Require.NotNull(promotionService, "promotionService");
            Require.NotNull(policyFactory, "policyFactory");
            Require.NotNull(ruleEngine, "ruleEngine");

            _promotionService = promotionService;
            _policyFactory = policyFactory;
            _ruleEngine = ruleEngine;
        }
Esempio n. 41
0
        public HomeController(
            IOrderService orderService,
            ICampaignService campaignService,
            INotifier notifier,
            IPromotionService promotionService,
            IimageHelper imageHelper,
            IPaymentSettingsService paymentSettingsService,
            IShapeFactory shapeFactory,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor,
            IRepository<UserRolesPartRecord> userRolesPartRepository,
            IRepository<TeeyootUserPartRecord> userRepository,
            IPayoutService payoutService,
            IRepository<CommonSettingsRecord> commonSettingsRepository,
            IRepository<CheckoutCampaignRequest> checkoutRequestRepository,
            ICookieCultureService cookieCultureService,
            IRepository<OrderStatusRecord> orderStatusRepository,
            ICountryService countryService,
            IRepository<CountryRecord> countryRepository,
            IRepository<DeliverySettingRecord> deliverySettingRepository,
            IRepository<DeliveryInternationalSettingRecord> deliveryInternationalSettingRepository,
            IRepository<CurrencyExchangeRecord> currencyExchangeRepository)
        {
            _orderService = orderService;
            _promotionService = promotionService;
            _campaignService = campaignService;
            _imageHelper = imageHelper;
            _userRolesPartRepository = userRolesPartRepository;
            _payoutService = payoutService;
            _teeyootMessagingService = teeyootMessagingService;
            _paymentSettingsService = paymentSettingsService;
            _commonSettingsRepository = commonSettingsRepository;
            _checkoutRequestRepository = checkoutRequestRepository;
            _userRepository = userRepository;
            _orderStatusRepository = orderStatusRepository;
            _countryRepository = countryRepository;
            _deliverySettingRepository = deliverySettingRepository;
            _deliveryInternationalSettingRepository = deliveryInternationalSettingRepository;
            _currencyExchangeRepository = currencyExchangeRepository;

            Logger = NullLogger.Instance;
            _notifier = notifier;
            T = NullLocalizer.Instance;
            Shape = shapeFactory;

            //var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            _cultureUsed = workContextAccessor.GetContext().CurrentCulture.Trim();
            //culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _cookieCultureService = cookieCultureService;
            _countryService = countryService;
        }
 public SearchDocumentController(IPriceService priceService,
     IPromotionService promotionService,
     IContentLoader contentLoader,
     ReferenceConverter referenceConverter,
     AssetUrlResolver assetUrlResolver,
     IRelationRepository relationRepository,
     AppContextFacade appContext)
 {
     _priceService = priceService;
     _promotionService = promotionService;
     _contentLoader = contentLoader;
     _referenceConverter = referenceConverter;
     _assetUrlResolver = assetUrlResolver;
     _relationRepository = relationRepository;
     _appContext = appContext;
 }
        public CheckExpiredPromotionsTaskHandler(IScheduledTaskManager taskManager, IPromotionService promotionService)
        {
            _taskManager = taskManager;
            _promotionService = promotionService;

            Logger = NullLogger.Instance;

            try
            {
                var firstDate = DateTime.Today.Date.AddDays(1).AddMinutes(1);
                firstDate = TimeZoneInfo.ConvertTimeToUtc(firstDate, TimeZoneInfo.Local);
                ScheduleNextTask(firstDate);
            }
            catch (Exception e)
            {
                this.Logger.Error(e, e.Message);
            }
        }
Esempio n. 44
0
 public ProductDataService(IPromotionDataService promotionDataService, IPromotionService promotionService,
     ICouponService couponService, IResourceService resourceService, IProductRepository productRepository,
     IShareService shareService, IFavoriteService favoriteService, ICouponDataService couponDataService,
     IPromotionRepository promotionRepo,
     IProductPropertyRepository productpropertyRepo,
     IProductPropertyValueRepository productpropertyvalueRepo,
     IProductCode2StoreCodeRepository productcodemapRepo)
 {
     _promotionDataService = promotionDataService;
     _productRepository = productRepository;
     _shareService = shareService;
     _favoriteService = favoriteService;
     _couponDataService = couponDataService;
     _resourceService = resourceService;
     _couponService = couponService;
     _promotionService = promotionService;
     _promotionRepo = promotionRepo;
     _productpropertyRepo = productpropertyRepo;
     _productpropertyvalueRepo = productpropertyvalueRepo;
     _productcodemapRepo = productcodemapRepo;
 }
Esempio n. 45
0
 public CatalogIndexer(ICatalogSystem catalogSystem, 
     IPriceService priceService, 
     IInventoryService inventoryService, 
     MetaDataContext metaDataContext, 
     IContentLoader contentLoader,
     IPromotionService promotionService,
     ReferenceConverter referenceConverter,
     AssetUrlResolver assetUrlResolver,
     IRelationRepository relationRepository,
     AppContextFacade appContext,
     ILogger logger)
     : base(catalogSystem, priceService, inventoryService, metaDataContext)
 {
     _priceService = priceService;
     _contentLoader = contentLoader;
     _promotionService = promotionService;
     _referenceConverter = referenceConverter;
     _assetUrlResolver = assetUrlResolver;
     _relationRepository = relationRepository;
     _appContext = appContext;
     _log = logger;
 }
Esempio n. 46
0
 public ProductService(IContentLoader contentLoader,
     IPromotionService promotionService,
     IPricingService pricingService,
     UrlResolver urlResolver,
     LinksRepository linksRepository,
     IRelationRepository relationRepository,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     AppContextFacade appContext,
     ReferenceConverter referenceConverter)
 {
     _contentLoader = contentLoader;
     _promotionService = promotionService;
     _pricingService = pricingService;
     _urlResolver = urlResolver;
     _linksRepository = linksRepository;
     _relationRepository = relationRepository;
     _preferredCulture = ContentLanguage.PreferredCulture;
     _currentMarket = currentMarket;
     _currencyService = currencyService;
     _appContext = appContext;
     _referenceConverter = referenceConverter;
 }
Esempio n. 47
0
 protected void OnDiscountClick(object sender, EventArgs e)
 {
     promotionService = new DiscountService(decimal.Parse(tbDiscount.Text));
     RePresent();
 }
Esempio n. 48
0
 public PromotionController(IPromotionService promotionService)
 {
     this.promotionService = promotionService;
 }
Esempio n. 49
0
 public AdminPromotionsController(IPromotionService promotionService, IContentManager contentManager, IRepository<PromotionRecord> promotionRepository)
 {
     _promotionService = promotionService;
     _contentManager = contentManager;
     _promotionRepository = promotionRepository;
 }
Esempio n. 50
0
 public PromotionController(IPromotionService promotionService, IPromotionPolicyProvider policyProvider)
 {
     _promotionService = promotionService;
     _policyProvider = policyProvider;
 }
 public MarketingExportImport(IMarketingSearchService marketingSearchService, IPromotionService promotionService, IDynamicContentService dynamicContentService)
 {
     _marketingSearchService = marketingSearchService;
     _promotionService = promotionService;
     _dynamicContentService = dynamicContentService;
 }
Esempio n. 52
0
 public PromotionsController(IPromotionService service)
 {
     _service = service;
 }
Esempio n. 53
0
        public PromotionsController()
        {
            _service = new PromotionService(this.ModelState);

        }
		public DefaultPromotionEvaluatorImpl(IPromotionService promotionService)
		{
			_promotionService = promotionService;
		}
Esempio n. 55
0
 public QuoteController(IJobService jobService, IPromotionService promotionService)
 {
     this.jobService = jobService;
     this.promotionService = promotionService;
     this.job = GetJob();
 }
Esempio n. 56
0
 protected void Page_Init(object sender, EventArgs e)
 {
     productRepository = new ProductRepository();
     promotionService = new DiscountService();
     RePresent();
 }
Esempio n. 57
0
 protected void OnPointClick(object sender, EventArgs e)
 {
     promotionService = new ReturnPointService(decimal.Parse(tbPointCondition.Text), decimal.Parse(tbPoint.Text));
     RePresent();
 }
Esempio n. 58
0
 protected void OnReturnClick(object sender, EventArgs e)
 {
     promotionService = new ReturnMoneyService(decimal.Parse(tbReturnCondition.Text), decimal.Parse(tbReturn.Text));
     RePresent();
 }
		public MarketingModulePromotionController(IPromotionService promotionService, 	IMarketingExtensionManager promotionManager, IMarketingPromoEvaluator promoEvaluator)
		{
			_marketingExtensionManager = promotionManager;
			_promotionService = promotionService;
            _promoEvaluator = promoEvaluator;
        }
Esempio n. 60
0
 public ProductService(IProductRepository repository, IPromotionService promotionService)
 {
     this.repository = repository;
     this.promotionService = promotionService;
 }