コード例 #1
0
        public ProductPartialController(
            IMemberIntegralService iMemberIntegralService,
            IProductService iProductService,
            ICouponService iCouponService,
            IShopBonusService iShopBonusService,
            IArticleService iArticleService,
            IArticleCategoryService iArticleCategoryService,
            INavigationService iNavigationService,
            IHomeCategoryService iHomeCategoryService,
            IBrandService iBrandService,
            ICategoryService iCategoryService,
            ICustomerService iCustomerService,
            ISlideAdsService iSlideAdsService

            )
        {
            _iMemberIntegralService  = iMemberIntegralService;
            _iProductService         = iProductService;
            _iCouponService          = iCouponService;
            _iShopBonusService       = iShopBonusService;
            _iArticleService         = iArticleService;
            _iArticleCategoryService = iArticleCategoryService;
            _iNavigationService      = iNavigationService;
            _iHomeCategoryService    = iHomeCategoryService;
            _iBrandService           = iBrandService;
            _iCategoryService        = iCategoryService;
            _iCustomerService        = iCustomerService;
            _iSlideAdsService        = iSlideAdsService;
        }
 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;
 }
コード例 #3
0
 public CartController(IBasketService basketSvc, ICatalogService catalogSvc, IIdentityParser <ApplicationUser> appUserParser, ICouponService couponService)
 {
     _basketSvc     = basketSvc;
     _catalogSvc    = catalogSvc;
     _appUserParser = appUserParser;
     _couponSvc     = couponService;
 }
コード例 #4
0
 public OrderService(
     IRepository <Order> orderRepository,
     IRepository <Product> productRepo,
     IRepository <Cart> cartRepository,
     IRepository <CartItem> cartItemRepository,
     IRepository <UserAddress> userAddressRepository,
     ICouponService couponService,
     ITaxService taxService,
     IShippingPriceService shippingPriceService,
     IMediaService mediaService,
     IPaymentProviderService paymentProviderService,
     IWorkContext workContext,
     IHttpContextAccessor httpContextAccessor,
     IAppSettingService appSettingService)
 {
     _orderRepository        = orderRepository;
     _productRepo            = productRepo;
     _cartRepository         = cartRepository;
     _cartItemRepository     = cartItemRepository;
     _userAddressRepository  = userAddressRepository;
     _couponService          = couponService;
     _taxService             = taxService;
     _shippingPriceService   = shippingPriceService;
     _mediaService           = mediaService;
     _paymentProviderService = paymentProviderService;
     _workContext            = workContext;
     _httpContextAccessor    = httpContextAccessor;
     _appSettingService      = appSettingService;
 }
コード例 #5
0
 public CheckoutController(IAddressService addressService, ICheckOutService checkOutService, ICouponService couponService, IPaypalService paypalService)
 {
     //_addressService = addressService;
     _checkOutService = checkOutService;
     _couponService   = couponService;
     _paypalService   = paypalService;
 }
コード例 #6
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;
 }
コード例 #7
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;
 }
コード例 #8
0
 public ManageCouponAdMonthController(IUnitOfWork _unitofwork)
     : base(_unitofwork)
 {
     _coupon  = new CouponService(_unitofwork);
     _common  = new CommonService(_unitofwork);
     _admonth = new AdMonthService(_unitofwork);
 }
コード例 #9
0
 public CouponController(
     ICouponService couponService,
     INotifier notifier,
     IUser appUser) : base(notifier, appUser)
 {
     _couponService = couponService;
 }
コード例 #10
0
 public LimitTimeBuyController(
     ILimitTimeBuyService iLimitTimeBuyService,
     ISlideAdsService iSlideAdsService,
     IShopService iShopService,
     IProductService iProductService,
     IProductDescriptionTemplateService iProductDescriptionTemplateService,
     IShopCategoryService iShopCategoryService,
     ICommentService iCommentService,
     IConsultationService iConsultationService,
     ICouponService iCouponService,
     ICashDepositsService iCashDepositsService, ITypeService iTypeService
     )
 {
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iSlideAdsService     = iSlideAdsService;
     _iShopService         = iShopService;
     _iProductService      = iProductService;
     _iProductDescriptionTemplateService = iProductDescriptionTemplateService;
     _iShopCategoryService = iShopCategoryService;
     _iCommentService      = iCommentService;
     _iConsultationService = iConsultationService;
     _iCouponService       = iCouponService;
     _iCashDepositsService = iCashDepositsService;
     _iTypeService         = iTypeService;
 }
コード例 #11
0
 public CouponController(
     ICouponService couponService,
     ILogger <CouponController> logger)
 {
     _coupon = couponService;
     _logger = logger;
 }
コード例 #12
0
 public UserOrderController(
     IShopBonusService iShopBonusService,
     ICashDepositsService iCashDepositsService,
     ISiteSettingService iSiteSettingService,
     IOrderService iOrderService,
     IRefundService iRefundService,
     ICustomerService iCustomerService,
     IProductService iProductService,
     ICouponService iCouponService,
     ICommentService iCommentService,
     IFightGroupService iFightGroupService, ITypeService iTypeService
     )
 {
     _iShopBonusService    = iShopBonusService;
     _iCashDepositsService = iCashDepositsService;
     _iSiteSettingService  = iSiteSettingService;
     _iOrderService        = iOrderService;
     _iRefundService       = iRefundService;
     _iCustomerService     = iCustomerService;
     _iProductService      = iProductService;
     _iCouponService       = iCouponService;
     _iCommentService      = iCommentService;
     _iFightGroupService   = iFightGroupService;
     _iTypeService         = iTypeService;
 }
コード例 #13
0
ファイル: CartService.cs プロジェクト: turkmvc/SimplCommerce
 public CartService(IRepository <Cart> cartRepository, IRepository <CartItem> cartItemRepository, ICouponService couponService, IMediaService mediaService)
 {
     _cartRepository     = cartRepository;
     _cartItemRepository = cartItemRepository;
     _couponService      = couponService;
     _mediaService       = mediaService;
 }
コード例 #14
0
 public CouponsController(ApplicationDbContext context, ITemplateService templateService, UserManager <ApplicationUser> userManager, ICouponService couponService)
 {
     _templateService = templateService;
     _context         = context;
     _userManager     = userManager;
     _couponService   = couponService;
 }
コード例 #15
0
 public HomeController(ILogger <HomeController> logger, ICouponService couponService, IMenuItemService menuItemService, IAdminCategoryService categoryService)
 {
     _logger              = logger;
     this.couponService   = couponService;
     this.menuItemService = menuItemService;
     this.categoryService = categoryService;
 }
コード例 #16
0
 public PaymentService(
     IUnitOfWork unitOfWork,
     IOrderService orderService,
     ICouponService couponService,
     IEmailService emailService,
     IShipmentService shipmentService,
     SessionService stripeSessionService,
     Stripe.CouponService stripeCouponService,
     CustomerService customerService,
     PromotionCodeService promotionCodeService,
     IOptions <ShippingRate> optionsAccessor,
     IMapper mapper)
 {
     _unitOfWork           = unitOfWork;
     _orderService         = orderService;
     _couponService        = couponService;
     _customerService      = customerService;
     _emailService         = emailService;
     _shipmentService      = shipmentService;
     _stripeSessionService = stripeSessionService;
     _stripeCouponService  = stripeCouponService;
     _promotionCodeService = promotionCodeService;
     _shippingRate         = optionsAccessor.Value;
     _mapper = mapper;
 }
コード例 #17
0
ファイル: VShopController.cs プロジェクト: giagiigi/ChemCloud
        public JsonResult GetWXCardData(long id)
        {
            WXJSCardModel    wXJSCardModel    = new WXJSCardModel();
            bool             flag             = true;
            ICouponService   couponService    = ServiceHelper.Create <ICouponService>();
            CouponRecordInfo couponRecordById = null;

            if (flag)
            {
                couponRecordById = couponService.GetCouponRecordById(id);
                if (couponRecordById == null)
                {
                    flag = false;
                }
            }
            CouponInfo couponInfo = null;

            if (flag)
            {
                couponInfo = couponService.GetCouponInfo(couponRecordById.ShopId, couponRecordById.CouponId);
                if (couponInfo == null)
                {
                    flag = false;
                }
            }
            if (flag && couponInfo.IsSyncWeiXin == 1 && base.PlatformType == ChemCloud.Core.PlatformType.WeiXin)
            {
                wXJSCardModel = ser_wxcard.GetJSWeiXinCard(couponRecordById.CouponId, couponRecordById.Id, ThisCouponType);
            }
            return(Json(wXJSCardModel));
        }
コード例 #18
0
 public MemberController(
     IOrderService iOrderService,
     IMemberService iMemberService,
     IMemberCapitalService iMemberCapitalService,
     ICouponService iCouponService,
     IShopBonusService iShopBonusService,
     IVShopService iVShopService,
     IProductService iProductService,
     IShippingAddressService iShippingAddressService,
     IMessageService iMessageService,
     IDistributionService iDistributionService,
     IMemberSignInService iMemberSignInService,
     IRefundService iRefundService,
     ICommentService iCommentService
     )
 {
     _iOrderService           = iOrderService;
     _iMemberService          = iMemberService;
     _iMemberCapitalService   = iMemberCapitalService;
     _iCouponService          = iCouponService;
     _iShopBonusService       = iShopBonusService;
     _iVShopService           = iVShopService;
     _iProductService         = iProductService;
     _iShippingAddressService = iShippingAddressService;
     _iMessageService         = iMessageService;
     _iMemberSignInService    = iMemberSignInService;
     _iDistributionService    = iDistributionService;
     _iRefundService          = iRefundService;
     _iCommentService         = iCommentService;
 }
コード例 #19
0
 public CouponController(ICouponService couponService, IUserService userService, ICouponOwnerService couponownerService, ICouponCategoryService couponCategoryService, IProductBrandService productBrandService)
 {
     _couponService         = couponService;
     _userService           = userService;
     _couponownerService    = couponownerService;
     _couponCategoryService = couponCategoryService;
     _productBrandService   = productBrandService;
 }
コード例 #20
0
 public CouponController(IUserRoleJurisdictionService userRoleJurisdictionService, IModuleInfoService moduleInfoService,
                         ICouponService couponService, IBatchInformationService batchInformationService) : base(userRoleJurisdictionService, moduleInfoService)
 {
     _moduleInfoService           = moduleInfoService;
     _userRoleJurisdictionService = userRoleJurisdictionService;
     _couponService           = couponService;
     _batchInformationService = batchInformationService;
 }
コード例 #21
0
 public PromotionService(ICouponService couponService, IPromotionRepository promotionRepository, IPromotionProductRelationRepository pprRepository
                         , ICouponRepository couponRepo)
 {
     _pprRepository       = pprRepository;
     _promotionRepository = promotionRepository;
     _couponService       = couponService;
     _couponRepo          = couponRepo;
 }
コード例 #22
0
 public CartService(IRepository <Cart> cartRepository, IRepository <CartItem> cartItemRepository, ICouponService couponService, IMediaService mediaService, IConfiguration config)
 {
     _cartRepository           = cartRepository;
     _cartItemRepository       = cartItemRepository;
     _couponService            = couponService;
     _mediaService             = mediaService;
     _isProductPriceIncludeTax = config.GetValue <bool>("Catalog.IsProductPriceIncludeTax");
 }
コード例 #23
0
 public MarketingServicesDecorator(CacheManagerAdaptor cacheManager, IDynamicContentService contentService, IPromotionSearchService promoSearchService, IPromotionService promoService, ICouponService couponService)
 {
     _contentService     = contentService;
     _cacheManager       = cacheManager;
     _promoSearchService = promoSearchService;
     _promotionService   = promoService;
     _couponService      = couponService;
 }
コード例 #24
0
 public CouponsController(
     ICouponService couponService,
     ILogger <CouponsController> logger,
     IUrlHelper urlHelper
     ) : base(logger, urlHelper)
 {
     _couponService = couponService;
 }
コード例 #25
0
 public PromotionService(ICouponService couponService, IPromotionRepository promotionRepository, IPromotionProductRelationRepository pprRepository
     ,ICouponRepository couponRepo)
 {
     _pprRepository = pprRepository;
     _promotionRepository = promotionRepository;
     _couponService = couponService;
     _couponRepo = couponRepo;
 }
コード例 #26
0
 public MarketingExportImport(IPromotionSearchService promotionSearchService, IPromotionService promotionService, IDynamicContentService dynamicContentService, ICouponService couponService, IDynamicContentSearchService dynamicContentSearchService, IPromotionUsageService marketingUsageService)
 {
     _promotionSearchService      = promotionSearchService;
     _promotionService            = promotionService;
     _dynamicContentService       = dynamicContentService;
     _couponService               = couponService;
     _dynamicContentSearchService = dynamicContentSearchService;
     _usageService = marketingUsageService;
 }
 public OrdersController(ICouponService couponService, IProductService productService, IOrdersService ordersService, IUserService userService, ISettingService settingService)
     : base(userService, settingService)
 {
     _productService = productService;
     _ordersService  = ordersService;
     _settingPaypal  = GetSettingPaypal();
     _currency       = GetSettingCurrency();
     _couponService  = couponService;
 }
コード例 #28
0
 public ShoppingCartService(E_commerceDB context, IEmailService emailService, ICouponService couponService, UserManager <Account> userManager,
                            IPaymentService paymentService)
 {
     _context        = context;
     _emailService   = emailService;
     _userManager    = userManager;
     _couponService  = couponService;
     _paymentService = paymentService;
 }
コード例 #29
0
ファイル: VShopController.cs プロジェクト: giagiigi/ChemCloud
        public ActionResult GetCouponSuccess(long id)
        {
            VshopCouponInfoModel vshopCouponInfoModel = new VshopCouponInfoModel();
            ICouponService       couponService        = ServiceHelper.Create <ICouponService>();
            CouponRecordInfo     couponRecordById     = couponService.GetCouponRecordById(id);

            if (couponRecordById == null)
            {
                throw new HimallException("错误的优惠券编号");
            }
            CouponInfo couponInfo = couponService.GetCouponInfo(couponRecordById.ShopId, couponRecordById.CouponId);

            if (couponInfo == null)
            {
                throw new HimallException("错误的优惠券编号");
            }
            vshopCouponInfoModel.CouponData       = couponInfo;
            vshopCouponInfoModel.CouponId         = couponInfo.Id;
            vshopCouponInfoModel.CouponRecordId   = couponRecordById.Id;
            vshopCouponInfoModel.ShopId           = couponInfo.ShopId;
            vshopCouponInfoModel.IsShowSyncWeiXin = false;
            if (base.CurrentUser != null && ServiceHelper.Create <IShopService>().IsFavoriteShop(base.CurrentUser.Id, couponInfo.ShopId))
            {
                vshopCouponInfoModel.IsFavoriteShop = true;
            }
            vshopCouponInfoModel.CouponId = id;
            if (couponInfo.IsSyncWeiXin == 1 && base.PlatformType == ChemCloud.Core.PlatformType.WeiXin)
            {
                vshopCouponInfoModel.WXJSInfo = ser_wxcard.GetSyncWeiXin(couponInfo.Id, couponRecordById.Id, ThisCouponType, base.Request.Url.AbsoluteUri);
                if (vshopCouponInfoModel.WXJSInfo != null)
                {
                    vshopCouponInfoModel.IsShowSyncWeiXin = true;
                }
            }
            string    wXLogo        = wxlogo;
            VShopInfo vShopByShopId = ServiceHelper.Create <IVShopService>().GetVShopByShopId(couponInfo.ShopId);

            if (vShopByShopId != null)
            {
                vshopCouponInfoModel.VShopid = vShopByShopId.Id;
                if (!string.IsNullOrWhiteSpace(vShopByShopId.WXLogo))
                {
                    wXLogo = vShopByShopId.WXLogo;
                }
                if (string.IsNullOrWhiteSpace(wxlogo) && !string.IsNullOrWhiteSpace(_siteSetting.WXLogo))
                {
                    wXLogo = _siteSetting.WXLogo;
                }
            }
            ViewBag.ShopLogo     = wXLogo;
            ViewBag.ShopId       = vshopCouponInfoModel.ShopId;
            ViewBag.FollowUrl    = vshopCouponInfoModel.FollowUrl;
            base.ViewBag.FavText = (vshopCouponInfoModel.IsFavoriteShop ? "己收藏" : "收藏供应商");
            ViewBag.VShopid      = vshopCouponInfoModel.VShopid;
            return(View(vshopCouponInfoModel));
        }
コード例 #30
0
        public static void InsertCouponItem(ICouponService categorytService, decimal minAmountLimit, int rate, decimal discountAmount, DiscountType discountType)
        {
            Coupon coupon = new Coupon();

            coupon.MinAmountLimit = minAmountLimit;
            coupon.Rate           = rate;
            coupon.DiscountAmount = discountAmount;
            coupon.DiscountType   = (int)discountType;
            categorytService.Add(coupon);
        }
コード例 #31
0
ファイル: OrderService.cs プロジェクト: zyhong/SimplCommerce
 public OrderService(IRepository <Order> orderRepository, IRepository <Cart> cartRepository, ICouponService couponService,
                     IRepository <CartItem> cartItemRepository, ITaxService taxService, IShippingPriceService shippingPriceService)
 {
     _orderRepository      = orderRepository;
     _cartRepository       = cartRepository;
     _couponService        = couponService;
     _cartItemRepository   = cartItemRepository;
     _taxService           = taxService;
     _shippingPriceService = shippingPriceService;
 }
コード例 #32
0
 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;
 }
コード例 #33
0
 public CouponsController(
     ICouponCategoryService couponCategoryService, 
     ICouponService couponService, 
     IProductBrandService productBrandService, 
     ICouponOwnerService couponOwnerService, 
     IWorkContext workContext,
     IBrokerService brokerService
     )
 {
     _couponCategoryService = couponCategoryService;
     _couponService = couponService;
     _productBrandService = productBrandService;
     _couponOwnerService = couponOwnerService;
     _workContext = workContext;
     _brokerService = brokerService;
 }
コード例 #34
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;
 }
コード例 #35
0
ファイル: CouponController.cs プロジェクト: atawat/protoss
 public CouponController(ICouponService CouponService)
 {
     _CouponService = CouponService;
 }
コード例 #36
0
 public TestTimeController(ICouponService couponService)
 {
     _couponService = couponService;
 }
コード例 #37
0
 public promoService(
     IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     ICurrencyService currencyService,
     ISettingService settingService,
     IWorkContext workContext,
     IMeasureService measureService,
     MeasureSettings measureSettings,
     CurrencySettings currencySettings,
     IProductAttributeService productAttributeService,
     IPriceCalculationService priceCalculationService,
     ITaxService taxService,
     ILogger logger,
     IStoreService storeService,
     IPromoUtilities promoUtilities,
     PromoSettings promoSettings,
     IShippingService shippingService,
     IGenericAttributeService genericAttributeService,
     IStoreContext storeContext,
     IProductMappingService productMappingService,
     IShoppingCartService shoppingCartService,
     ICouponService qixolPromosCouponService,
     IAttributeValueService attributeValueService,
     IOrderService orderService,
     ICustomerService customerService,
     ILocalizationService localizationService)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._currencyService = currencyService;
     this._settingService = settingService;
     this._workContext = workContext;
     this._measureService = measureService;
     this._measureSettings = measureSettings;
     this._currencySettings = currencySettings;
     this._productAttributeService = productAttributeService;
     this._priceCalculationService = priceCalculationService;
     this._taxService = taxService;
     this._logger = logger;
     this._promoUtilities = promoUtilities;
     this._storeService = storeService;
     this._shippingService = shippingService;
     this._genericAttributeService = genericAttributeService;
     this._storeContext = storeContext;
     this._productMappingService = productMappingService;
     this._shoppingCartService = shoppingCartService;
     this._couponService = qixolPromosCouponService;
     this._attributeValueService = attributeValueService;
     this._orderService = orderService;
     this._promoSettings = promoSettings;
     this._customerService = customerService;
     this._localizationService = localizationService;
 }