Beispiel #1
0
        // GET: Home

        public HomeController(
            IRepository <CurrencyRecord> currencyRepository,
            IRepository <OrderStatusRecord> orderStatusRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IContentManager contentManager,
            ISiteService siteService,
            IPayoutService payoutService,
            INotifier notifierService,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor,
            IExportExcelService exportexcelservice,
            IRepository <ProductColorRecord> Colors,
            IRepository <ProductSizeRecord> Sizes,
            IPriceConversionService priceConversationService
            )
        {
            _currencyRepository      = currencyRepository;
            _orderStatusRepository   = orderStatusRepository;
            _orderService            = orderService;
            _campaignService         = campaignService;
            _contentManager          = contentManager;
            _siteService             = siteService;
            _payoutService           = payoutService;
            _notifierService         = notifierService;
            _teeyootMessagingService = teeyootMessagingService;
            Shape = shapeFactory;
            _exportexcelservice = exportexcelservice;
            T = NullLocalizer.Instance;
            _workContextAccessor = workContextAccessor;
            _sizes  = Sizes;
            _colors = Colors;
            _priceConversationService = priceConversationService;
        }
Beispiel #2
0
        public AdminCampaignsSettingsController(
            IRepository <CampaignStatusRecord> campaignStatusRepository,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IimageHelper imageHelper,
            ITeeyootMessagingService teeyootMessagingService,
            INotifier notifier,
            IRepository <ProductColorRecord> repositoryColor,
            ShellSettings shellSettings,
            IRepository <CurrencyRecord> currencyRepository,
            IRepository <UserPartRecord> users)
        {
            _campaignStatusRepository = campaignStatusRepository;
            _campaignService          = campaignService;
            _imageHelper             = imageHelper;
            _teeyootMessagingService = teeyootMessagingService;
            _currencyRepository      = currencyRepository;

            Shape            = shapeFactory;
            T                = NullLocalizer.Instance;
            Logger           = NullLogger.Instance;
            _notifier        = notifier;
            _repositoryColor = repositoryColor;
            _users           = users;
            _shellSettings   = shellSettings;
        }
Beispiel #3
0
        // GET: Home

        public HomeController(
            IRepository<CurrencyRecord> currencyRepository,
            IRepository<OrderStatusRecord> orderStatusRepository,
            IOrderService orderService,
            ICampaignService campaignService,
            IShapeFactory shapeFactory,
            IContentManager contentManager,
            ISiteService siteService,
            IPayoutService payoutService,
            INotifier notifierService,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor)
        {
            _currencyRepository = currencyRepository;
            _orderStatusRepository = orderStatusRepository;
            _orderService = orderService;
            _campaignService = campaignService;
            _contentManager = contentManager;
            _siteService = siteService;
            _payoutService = payoutService;
            _notifierService = notifierService;
            _teeyootMessagingService = teeyootMessagingService;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            _workContextAccessor = workContextAccessor;
        }
        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");
        }
Beispiel #5
0
        public AdminFeaturedCampaignsController(ISiteService siteService,
                                                IShapeFactory shapeFactory,
                                                IOrchardServices services,
                                                ICampaignService campaignService,
                                                IOrderService orderService,
                                                ITeeyootMessagingService teeyootMessagingService,
                                                IRepository <CurrencyRecord> currencyRepository,
                                                IWorkContextAccessor workContextAccessor,
                                                IExportExcelService ExportToExcel,
                                                IRepository <UserPart> Users
                                                )
        {
            _siteService             = siteService;
            _campaignService         = campaignService;
            _orderService            = orderService;
            _teeyootMessagingService = teeyootMessagingService;
            _currencyRepository      = currencyRepository;
            Shape    = shapeFactory;
            Services = services;
            Logger   = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
            _exportToExel        = ExportToExcel;
            _users = Users;
        }
Beispiel #6
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");
        }
Beispiel #7
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;
        }
        // GET: Tranzaction

        public TranzactionController(IPayoutService payoutService,
                                     ISiteService siteService,
                                     IShapeFactory shapeFactory,
                                     IContentManager contentManager,
                                     IPaymentInformationService paymentInformationService,
                                     ITeeyootMessagingService teeyootMessagingService,
                                     ICampaignService campService)
        {
            _payoutService = payoutService;
            _siteService = siteService;
            _paymentInformationService = paymentInformationService;
            _contentManager = contentManager;
            _teeyootMessagingService = teeyootMessagingService;
            Shape = shapeFactory;
            _campService = campService;
        }
Beispiel #9
0
        // GET: Tranzaction

        public TranzactionController(IPayoutService payoutService,
                                     ISiteService siteService,
                                     IShapeFactory shapeFactory,
                                     IContentManager contentManager,
                                     IPaymentInformationService paymentInformationService,
                                     ITeeyootMessagingService teeyootMessagingService,
                                     ICampaignService campService)
        {
            _payoutService             = payoutService;
            _siteService               = siteService;
            _paymentInformationService = paymentInformationService;
            _contentManager            = contentManager;
            _teeyootMessagingService   = teeyootMessagingService;
            Shape        = shapeFactory;
            _campService = campService;
        }
        public SendShippedOrderAfter3DayToBuyerTaskHandler(IScheduledTaskManager taskManager, ICampaignService campaignService, ITeeyootMessagingService teeyootMessagingService)
        {
            _taskManager = taskManager;
            _teeyootMessagingService = teeyootMessagingService;

            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);
            }
        }
        public AdminCommonSettingsController(
            IOrchardServices orchardServices,
            IRepository<CommonSettingsRecord> commonSettingsRepository,
            IRepository<CheckoutCampaignRequest> checkoutRequestRepository,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor)
        {
            _orchardServices = orchardServices;
            _commonSettingsRepository = commonSettingsRepository;
            _checkoutRequestRepository = checkoutRequestRepository;
            _teeyootMessagingService = teeyootMessagingService;
            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Beispiel #12
0
        public SendTermsAndConditionsToSellerTaskHandler(IScheduledTaskManager taskManager, ICampaignService campaignService, ITeeyootMessagingService teeyootMessagingService)
        {
            _taskManager             = taskManager;
            _teeyootMessagingService = teeyootMessagingService;

            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);
            }
        }
Beispiel #13
0
        public AdminMessageContentController(IMessageService messageService, ISiteService siteService, IShapeFactory shapeFactory, INotifier notifier,
                                             ICampaignService campaignService,
                                             IMailChimpSettingsService settingsService,
                                             IOrderService orderService,
                                             IWorkContextAccessor wca,
                                             ITeeyootMessagingService teeyootMessagingService
                                             )
        {
            _messageService          = messageService;
            _siteService             = siteService;
            _notifier                = notifier;
            _campaignService         = campaignService;
            _settingsService         = settingsService;
            _orderService            = orderService;
            _wca                     = wca;
            _teeyootMessagingService = teeyootMessagingService;

            Shape = shapeFactory;
        }
Beispiel #14
0
        public AdminCommonSettingsController(
            IOrchardServices orchardServices,
            IRepository <CommonSettingsRecord> commonSettingsRepository,
            IRepository <CheckoutCampaignRequest> checkoutRequestRepository,
            ITeeyootMessagingService teeyootMessagingService,
            IWorkContextAccessor workContextAccessor)
        {
            _orchardServices           = orchardServices;
            _commonSettingsRepository  = commonSettingsRepository;
            _checkoutRequestRepository = checkoutRequestRepository;
            _teeyootMessagingService   = teeyootMessagingService;
            _workContextAccessor       = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();

            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public AdminMessageContentController(IMessageService messageService, ISiteService siteService, IShapeFactory shapeFactory, INotifier notifier,
            ICampaignService campaignService,
            IMailChimpSettingsService settingsService,
            IOrderService orderService,
            IWorkContextAccessor wca,
            ITeeyootMessagingService teeyootMessagingService
            )
        {
            _messageService = messageService;
            _siteService = siteService;
            _notifier = notifier;
            _campaignService = campaignService;
            _settingsService = settingsService;
            _orderService = orderService;
            _wca = wca;
            _teeyootMessagingService = teeyootMessagingService;

            Shape = shapeFactory;
        }
        public AdminFeaturedCampaignsController(ISiteService siteService, 
                                                IShapeFactory shapeFactory, 
                                                IOrchardServices services, 
                                                ICampaignService campaignService,
                                                IOrderService orderService,
                                                ITeeyootMessagingService teeyootMessagingService,
                                                IRepository<CurrencyRecord> currencyRepository,
                                                IWorkContextAccessor workContextAccessor)
        {
            _siteService = siteService;
            _campaignService = campaignService;
            _orderService = orderService;
            _teeyootMessagingService = teeyootMessagingService;
            _currencyRepository = currencyRepository;
            Shape = shapeFactory;
            Services = services;
            Logger = NullLogger.Instance;

            _workContextAccessor = workContextAccessor;
        }
Beispiel #17
0
        public WizardController(IOrchardServices orchardServices, ICampaignService campaignService, IimageHelper imageHelper, IFontService fontService, IProductService productService, ISwatchService swatchService, ITShirtCostService costService, ITeeyootMessagingService teeyootMessagingService, IRepository<CommonSettingsRecord> commonSettingsRepository, IRepository<ArtRecord> artRepository, IRepository<CheckoutCampaignRequest> checkoutCampaignRequestRepository, ShellSettings shellSettings, IWorkContextAccessor workContextAccessor, IRepository<CurrencyRecord> currencyRepository)
        {
            _orchardServices = orchardServices;
            _campaignService = campaignService;
            _imageHelper = imageHelper;
            _fontService = fontService;
            _productService = productService;
            _swatchService = swatchService;
            Logger = NullLogger.Instance;
            _costService = costService;
            _teeyootMessagingService = teeyootMessagingService;
            _commonSettingsRepository = commonSettingsRepository;
            _checkoutCampaignRequestRepository = checkoutCampaignRequestRepository;
            _shellSettings = shellSettings;
            T = NullLocalizer.Instance;
            _artRepository = artRepository;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _currencyRepository = currencyRepository;
        }
        public AdminCountriesController(
            ISiteService siteService,
            IOrchardServices orchardServices,
            IShapeFactory shapeFactory,
            IRepository<CountryRecord> countryRepository,
            IRepository<CultureRecord> cultureRepository,
            IRepository<LinkCountryCultureRecord> linkCountryCultureRepository,
            // test
            ITeeyootMessagingService teeyootMessagingService
            )
        {
            _siteService = siteService;
            _orchardServices = orchardServices;
            Shape = shapeFactory;
            _countryRepository = countryRepository;
            _cultureRepository = cultureRepository;
            _linkCountryCultureRepository = linkCountryCultureRepository;
            // test
            _teeyootMessagingService = teeyootMessagingService;

            Logger = NullLogger.Instance;
        }
Beispiel #19
0
        public WizardController(
            IOrchardServices orchardServices,
            ICampaignService campaignService,
            IimageHelper imageHelper,
            IFontService fontService,
            IProductService productService,
            ISwatchService swatchService,
            ITShirtCostService costService,
            ITeeyootMessagingService teeyootMessagingService,
            IRepository <CommonSettingsRecord> commonSettingsRepository,
            IRepository <ArtRecord> artRepository,
            IRepository <CheckoutCampaignRequest> checkoutCampaignRequestRepository,
            ShellSettings shellSettings,
            IWorkContextAccessor workContextAccessor,
            IRepository <CurrencyRecord> currencyRepository,
            IPriceConversionService priceConversionService)
        {
            _orchardServices                   = orchardServices;
            _campaignService                   = campaignService;
            _imageHelper                       = imageHelper;
            _fontService                       = fontService;
            _productService                    = productService;
            _swatchService                     = swatchService;
            Logger                             = NullLogger.Instance;
            _costService                       = costService;
            _teeyootMessagingService           = teeyootMessagingService;
            _commonSettingsRepository          = commonSettingsRepository;
            _checkoutCampaignRequestRepository = checkoutCampaignRequestRepository;
            _shellSettings                     = shellSettings;
            T = NullLocalizer.Instance;
            _artRepository = artRepository;

            var culture = workContextAccessor.GetContext().CurrentCulture.Trim();

            _cultureUsed            = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
            _currencyRepository     = currencyRepository;
            _priceConversionService = priceConversionService;
        }
Beispiel #20
0
        public CampaignService(IRepository<CampaignRecord> campaignRepository,
                               IRepository<CampaignProductRecord> campProdRepository,
                               IRepository<ProductColorRecord> colorRepository,
                               IRepository<ProductRecord> productRepository,
                               IRepository<CampaignStatusRecord> statusRepository,
                               IRepository<CampaignCategoriesRecord> campaignCategories,
                               IOrchardServices services,
                               IRepository<LinkCampaignAndCategoriesRecord> linkCampaignAndCategories,
                               IRepository<LinkOrderCampaignProductRecord> ocpRepository,
                               IRepository<OrderRecord> orderRepository,
                               IRepository<OrderHistoryRecord> orderHistoryRepository,
                               ITeeyootMessagingService teeyootMessagingService,
                               IRepository<BringBackCampaignRecord> backCampaignRepository,
                               IWorkContextAccessor workContextAccessor,
                               ICountryService countryService,
                               ShellSettings shellSettings)
        {
            _campaignRepository = campaignRepository;
            _campProdRepository = campProdRepository;
            _colorRepository = colorRepository;
            _productRepository = productRepository;
            _statusRepository = statusRepository;
            _campaignCategories = campaignCategories;
            Services = services;
            _linkCampaignAndCategories = linkCampaignAndCategories;
            _ocpRepository = ocpRepository;
            _orderRepository = orderRepository;
            _orderHistoryRepository = orderHistoryRepository;
            _teeyootMessagingService = teeyootMessagingService;
            _backCampaignRepository = backCampaignRepository;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
            _workContextAccessor = workContextAccessor;
            _countryService = countryService;
            _shellSettings = shellSettings;
        }
        public AdminCampaignsSettingsController(
            IRepository<CampaignStatusRecord> campaignStatusRepository,
            ICampaignService campaignService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IimageHelper imageHelper,
            IOrderService orderService,
            IContentManager contentManager,
            ITeeyootMessagingService teeyootMessagingService,
            INotifier notifier,
            IRepository<ProductColorRecord> repositoryColor,
            IWorkContextAccessor workContextAccessor,
            ShellSettings shellSettings,
            IRepository<CurrencyRecord> currencyRepository)
        {
            _campaignStatusRepository = campaignStatusRepository;
            _campaignService = campaignService;
            _siteService = siteService;
            _imageHelper = imageHelper;
            _contentManager = contentManager;
            _teeyootMessagingService = teeyootMessagingService;
            _orderService = orderService;
            _currencyRepository = currencyRepository;

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

            _shellSettings = shellSettings;

            _workContextAccessor = workContextAccessor;
            var culture = _workContextAccessor.GetContext().CurrentCulture.Trim();
            _cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
        }