public PayPalExpressController(
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			ILogger logger, 
			PaymentSettings paymentSettings, ILocalizationService localizationService,
			OrderSettings orderSettings,
			ICurrencyService currencyService, CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
			IGenericAttributeService genericAttributeService,
            IComponentContext ctx, ICommonServices services,
            IStoreService storeService)
        {
            _paymentService = paymentService;
            _orderService = orderService;
            _orderProcessingService = orderProcessingService;
            _logger = logger;
            _paymentSettings = paymentSettings;
            _localizationService = localizationService;
            _orderSettings = orderSettings;
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _customerService = customerService;
            _genericAttributeService = genericAttributeService;
            _services = services;
            _storeService = storeService;

            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");

            T = NullLocalizer.Instance;
        }
        public ProductImporter(
			IRepository<ProductPicture> productPictureRepository,
			IRepository<ProductManufacturer> productManufacturerRepository,
			IRepository<ProductCategory> productCategoryRepository,
			IRepository<Product> productRepository,
			ICommonServices services,
			ILocalizedEntityService localizedEntityService,
			IPictureService pictureService,
			IManufacturerService manufacturerService,
			ICategoryService categoryService,
			IProductService productService,
			IProductTemplateService productTemplateService,
			FileDownloadManager fileDownloadManager)
        {
            _productPictureRepository = productPictureRepository;
            _productManufacturerRepository = productManufacturerRepository;
            _productCategoryRepository = productCategoryRepository;
            _productRepository = productRepository;
            _services = services;
            _localizedEntityService = localizedEntityService;
            _pictureService = pictureService;
            _manufacturerService = manufacturerService;
            _categoryService = categoryService;
            _productService = productService;
            _productTemplateService = productTemplateService;
            _fileDownloadManager = fileDownloadManager;
        }
Esempio n. 3
0
        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
			IProductAttributeService productAttributeService,
            IProductTemplateService productTemplateService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            ILanguageService languageService,
			MediaSettings mediaSettings,
			ICommonServices services,
            IStoreMappingService storeMappingService)
        {
            _categoryService = categoryService;
            _manufacturerService = manufacturerService;
            _productService = productService;
			_productAttributeService = productAttributeService;
			_productTemplateService = productTemplateService;
            _pictureService = pictureService;
            _newsLetterSubscriptionService = newsLetterSubscriptionService;
            _languageService = languageService;
			_mediaSettings = mediaSettings;
			_services = services;
            _storeMappingService = storeMappingService;

			Logger = NullLogger.Instance;
        }
        public new void SetUp()
        {
			_store = new Store() { Id = 1 };
			_storeContext = MockRepository.GenerateMock<IStoreContext>();
			_storeContext.Expect(x => x.CurrentStore).Return(_store);

            _discountService = MockRepository.GenerateMock<IDiscountService>();

            _categoryService = MockRepository.GenerateMock<ICategoryService>();

            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
			_productService = MockRepository.GenerateMock<IProductService>();
			_productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();

			_downloadService = MockRepository.GenerateMock<IDownloadService>();
			_commonServices = MockRepository.GenerateMock<ICommonServices>();
			_commonServices.Expect(x => x.StoreContext).Return(_storeContext);
			_httpRequestBase = MockRepository.GenerateMock<HttpRequestBase>();
			_taxService = MockRepository.GenerateMock<ITaxService>();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

			_priceCalcService = new PriceCalculationService(_discountService, _categoryService, _productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings,
				_productAttributeService, _downloadService, _commonServices, _httpRequestBase, _taxService);
        }
        public PluginController(IPluginFinder pluginFinder,
            IPermissionService permissionService,
			ILanguageService languageService,
            PaymentSettings paymentSettings,
			ShippingSettings shippingSettings,
            TaxSettings taxSettings, 
			ExternalAuthenticationSettings externalAuthenticationSettings, 
            WidgetSettings widgetSettings,
			IProviderManager providerManager,
			PluginMediator pluginMediator,
			ICommonServices commonService)
		{
            this._pluginFinder = pluginFinder;
            this._permissionService = permissionService;
            this._languageService = languageService;
            this._paymentSettings = paymentSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._widgetSettings = widgetSettings;
			this._providerManager = providerManager;
			this._pluginMediator = pluginMediator;
			this._commonService = commonService;

			T = NullLocalizer.Instance;
		}
		public HomeController(
			ICommonServices services,
			Lazy<ICategoryService> categoryService,
			Lazy<IProductService> productService,
			Lazy<IManufacturerService> manufacturerService,
			Lazy<ITopicService> topicService,
			Lazy<IQueuedEmailService> queuedEmailService,
			Lazy<IEmailAccountService> emailAccountService,
			Lazy<ISitemapGenerator> sitemapGenerator,
			Lazy<CaptchaSettings> captchaSettings,
			Lazy<CommonSettings> commonSettings)
        {
			this._services = services;
			this._categoryService = categoryService;
			this._productService = productService;
			this._manufacturerService = manufacturerService;
			this._topicService = topicService;
			this._queuedEmailService = queuedEmailService;
			this._emailAccountService = emailAccountService;
			this._sitemapGenerator = sitemapGenerator;
			this._captchaSettings = captchaSettings;
			this._commonSettings = commonSettings;

			T = NullLocalizer.Instance;
        }
        public PayPalPlusCheckoutFilter(
			ICommonServices services,
			IPaymentService paymentService)
        {
            _services = services;
            _paymentService = paymentService;
        }
Esempio n. 8
0
        public FroogleFeedPlugin(
			IGoogleFeedService googleService,
			ICommonServices services)
        {
            _googleService = googleService;
            _services = services;
        }
        public NewsLetterSubscriptionImporter(
			ICommonServices services,
			IRepository<NewsLetterSubscription> subscriptionRepository)
        {
            _services = services;
            _subscriptionRepository = subscriptionRepository;
        }
Esempio n. 10
0
        public ForumService(ICacheManager cacheManager,
            IRepository<ForumGroup> forumGroupRepository,
            IRepository<Forum> forumRepository,
            IRepository<ForumTopic> forumTopicRepository,
            IRepository<ForumPost> forumPostRepository,
            IRepository<PrivateMessage> forumPrivateMessageRepository,
            IRepository<ForumSubscription> forumSubscriptionRepository,
            ForumSettings forumSettings,
            IRepository<Customer> customerRepository,
            IGenericAttributeService genericAttributeService,
            ICustomerService customerService,
            IWorkflowMessageService workflowMessageService,
			IRepository<StoreMapping> storeMappingRepository,
			ICommonServices services)
        {
            _cacheManager = cacheManager;
            _forumGroupRepository = forumGroupRepository;
            _forumRepository = forumRepository;
            _forumTopicRepository = forumTopicRepository;
            _forumPostRepository = forumPostRepository;
            _forumPrivateMessageRepository = forumPrivateMessageRepository;
            _forumSubscriptionRepository = forumSubscriptionRepository;
            _forumSettings = forumSettings;
            _customerRepository = customerRepository;
            _genericAttributeService = genericAttributeService;
            _customerService = customerService;
            _workflowMessageService = workflowMessageService;
            _storeMappingRepository = storeMappingRepository;
            _services = services;
        }
        public GoogleMerchantCenterFeedPlugin(
			IGoogleFeedService googleFeedService,
			ICommonServices services)
        {
            _googleFeedService = googleFeedService;
            _services = services;
        }
Esempio n. 12
0
        public GoogleFeedService(
			IRepository<GoogleProductRecord> gpRepository,
			IProductService productService,
			IManufacturerService manufacturerService,
			FroogleSettings settings,
			IMeasureService measureService,
			MeasureSettings measureSettings,
			IDbContext dbContext,
			AdminAreaSettings adminAreaSettings,
			ICurrencyService currencyService,
			ICommonServices services,
			IComponentContext ctx)
        {
            _gpRepository = gpRepository;
            _productService = productService;
            _manufacturerService = manufacturerService;
            Settings = settings;
            _measureService = measureService;
            _measureSettings = measureSettings;
            _dbContext = dbContext;
            _adminAreaSettings = adminAreaSettings;
            _currencyService = currencyService;
            _services = services;

            _helper = new FeedPluginHelper(ctx, "SmartStore.GoogleMerchantCenter", "SmartStore.GoogleMerchantCenter", () =>
            {
                return Settings as PromotionFeedSettings;
            });
        }
        public PriceCalculationService(
            IDiscountService discountService,
			ICategoryService categoryService,
            IProductAttributeParser productAttributeParser,
			IProductService productService,
			ShoppingCartSettings shoppingCartSettings, 
            CatalogSettings catalogSettings,
			IProductAttributeService productAttributeService,
			IDownloadService downloadService,
			ICommonServices services,
			HttpRequestBase httpRequestBase,
			ITaxService taxService)
        {
            this._discountService = discountService;
            this._categoryService = categoryService;
            this._productAttributeParser = productAttributeParser;
            this._productService = productService;
            this._shoppingCartSettings = shoppingCartSettings;
            this._catalogSettings = catalogSettings;
            this._productAttributeService = productAttributeService;
            this._downloadService = downloadService;
            this._services = services;
            this._httpRequestBase = httpRequestBase;
            this._taxService = taxService;
        }
Esempio n. 14
0
        public ProductController(
			ICommonServices services,
			IManufacturerService manufacturerService,
			IProductService productService,
			IProductAttributeService productAttributeService,
			IProductAttributeParser productAttributeParser,
			ITaxService taxService,
			ICurrencyService currencyService,
			IPictureService pictureService,
			IPriceCalculationService priceCalculationService, 
			IPriceFormatter priceFormatter,
			ICustomerContentService customerContentService, 
			ICustomerService customerService,
			IShoppingCartService shoppingCartService,
			IRecentlyViewedProductsService recentlyViewedProductsService, 
			IWorkflowMessageService workflowMessageService, 
			IProductTagService productTagService,
			IOrderReportService orderReportService,
			IBackInStockSubscriptionService backInStockSubscriptionService, 
			IAclService aclService,
			IStoreMappingService storeMappingService,
			MediaSettings mediaSettings, 
			CatalogSettings catalogSettings,
			ShoppingCartSettings shoppingCartSettings,
			LocalizationSettings localizationSettings, 
			CaptchaSettings captchaSettings,
			CatalogHelper helper,
            IDownloadService downloadService,
            ILocalizationService localizationService)
        {
            this._services = services;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._priceCalculationService = priceCalculationService;
            this._priceFormatter = priceFormatter;
            this._customerContentService = customerContentService;
            this._customerService = customerService;
            this._shoppingCartService = shoppingCartService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._workflowMessageService = workflowMessageService;
            this._productTagService = productTagService;
            this._orderReportService = orderReportService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._aclService = aclService;
            this._storeMappingService = storeMappingService;
            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._helper = helper;
            this._downloadService = downloadService;
            this._localizationService = localizationService;
        }
        public WidgetZoneFilter(
			ICommonServices services, 
			Lazy<IWidgetProvider> widgetProvider, 
			ProfilerSettings profilerSettings)
		{
			this._services = services;
			this._widgetProvider = widgetProvider;
			this._profilerSettings = profilerSettings;
		}
Esempio n. 16
0
		public Plugin(
			IAmazonPayService apiService,
			IOrderTotalCalculationService orderTotalCalculationService,
			ICommonServices services)
		{
			_apiService = apiService;
			_orderTotalCalculationService = orderTotalCalculationService;
			_services = services;
		}
Esempio n. 17
0
        public CatalogController(
			ICommonServices services,
			ICategoryService categoryService,
            IManufacturerService manufacturerService, 
			IProductService productService,
            ICategoryTemplateService categoryTemplateService,
            IManufacturerTemplateService manufacturerTemplateService,
			ICurrencyService currencyService,
            Lazy<ICurrencyService> currencyServices,
			IOrderReportService orderReportService,
			IProductTagService productTagService,
			IRecentlyViewedProductsService recentlyViewedProductsService,
            IPictureService pictureService,
            IPriceFormatter priceFormatter,
            ISpecificationAttributeService specificationAttributeService,
			ICompareProductsService compareProductsService,
			IGenericAttributeService genericAttributeService,
            Lazy<IGenericAttributeService> genericAttributeServices,
			IAclService aclService,
			IStoreMappingService storeMappingService,
            MediaSettings mediaSettings, 
			CatalogSettings catalogSettings,
			IFilterService filterService,
 			CatalogHelper helper,
            ForumSettings forumSettings,
            Lazy<IForumService> forumService,
            IOrderTotalCalculationService orderTotalCalculationService,
            CustomerSettings customerSettings)
        {
            this._services = services;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._categoryTemplateService = categoryTemplateService;
            this._manufacturerTemplateService = manufacturerTemplateService;
            this._currencyService = currencyService;
            this._currencyServices = currencyServices;
            this._orderReportService = orderReportService;
            this._productTagService = productTagService;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
            this._compareProductsService = compareProductsService;
            this._pictureService = pictureService;
            this._priceFormatter = priceFormatter;
            this._specificationAttributeService = specificationAttributeService;
            this._genericAttributeService = genericAttributeService;
            this._genericAttributeServices = genericAttributeServices;
            this._aclService = aclService;
            this._storeMappingService = storeMappingService;
            this._filterService = filterService;
            this._mediaSettings = mediaSettings;
            this._catalogSettings = catalogSettings;
            this._forumSettings = forumSettings;
            this._helper = helper;
            this._forumservice = forumService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._customerSettings = customerSettings;
        }
		public AmazonPayController(
			IAmazonPayService apiService,
			ICommonServices services,
			IStoreService storeService)
		{
			_apiService = apiService;
			_services = services;
			_storeService = storeService;
		}
        public UpdateExchangeRateTask(
			ICurrencyService currencyService, 
			CurrencySettings currencySettings,
			ICommonServices services)
        {
            this._currencyService = currencyService;
            this._currencySettings = currencySettings;
            this._services = services;
        }
        public PayPalStandardProvider(
			IOrderTotalCalculationService orderTotalCalculationService,
            ICommonServices services, 
            ILogger logger)
        {
            _orderTotalCalculationService = orderTotalCalculationService;
            _services = services;
            _logger = logger;
        }
        public PayPalExpressCheckoutFilter(IGenericAttributeService genericAttributeService,
            HttpContextBase httpContext, ICommonServices services,
            ICustomerService customerService)
		{
            _genericAttributeService = genericAttributeService;
            _httpContext = httpContext;
            _services = services;
            _customerService = customerService;
		}
        public ExternalAuthFacebookController(
            IOAuthProviderFacebookAuthorizer oAuthProviderFacebookAuthorizer,
            IOpenAuthenticationService openAuthenticationService,
            ExternalAuthenticationSettings externalAuthenticationSettings,
			ICommonServices services)
        {
            this._oAuthProviderFacebookAuthorizer = oAuthProviderFacebookAuthorizer;
            this._openAuthenticationService = openAuthenticationService;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._services = services;
        }
        public TaskSchedulerController(
			ITaskScheduler taskScheduler,
            IScheduleTaskService scheduledTaskService,
            ITaskExecutor taskExecutor,
            ICommonServices services)
        {
            this._taskScheduler = taskScheduler;
            this._scheduledTaskService = scheduledTaskService;
            this._taskExecutor = taskExecutor;
            this._services = services;
        }
        public UrlRecordController(
			IUrlRecordService urlRecordService,
			AdminAreaSettings adminAreaSettings,
			ICommonServices services,
			ILanguageService languageService)
        {
            _urlRecordService = urlRecordService;
            _adminAreaSettings = adminAreaSettings;
            _services = services;
            _languageService = languageService;
        }
Esempio n. 25
0
        public WebApiController(
			WebApiSettings settings,
			IWebApiPluginService webApiPluginService,
			AdminAreaSettings adminAreaSettings,
			ICommonServices services)
        {
            _webApiSettings = settings;
            _webApiPluginService = webApiPluginService;
            _adminAreaSettings = adminAreaSettings;
            _services = services;
        }
		public PayUMeaStandardProvider(
			IOrderTotalCalculationService orderTotalCalculationService,
			ICommonServices services,
			ILogger logger,
			HttpContextBase httpContext)
		{
			_orderTotalCalculationService = orderTotalCalculationService;
			_services = services;
			_logger = logger;
			_httpContext = httpContext;
		}
        public FacebookProviderAuthorizer(IExternalAuthorizer authorizer,
            IOpenAuthenticationService openAuthenticationService,
            ExternalAuthenticationSettings externalAuthenticationSettings,
            HttpContextBase httpContext,
			ICommonServices services)
        {
            this._authorizer = authorizer;
            this._openAuthenticationService = openAuthenticationService;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._httpContext = httpContext;
            this._services = services;
        }
        public PaymentController(
			ICommonServices commonServices,
			IPaymentService paymentService, 
			PaymentSettings paymentSettings,
            IPluginFinder pluginFinder, 
			PluginMediator pluginMediator)
		{
			this._commonServices = commonServices;
            this._paymentService = paymentService;
            this._paymentSettings = paymentSettings;
            this._pluginFinder = pluginFinder;
			this._pluginMediator = pluginMediator;
		}
        public PayPalDirectController(
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			PaymentSettings paymentSettings, 
            IComponentContext ctx, ICommonServices services,
            IStoreService storeService)
        {
            _paymentService = paymentService;
            _orderService = orderService;
            _orderProcessingService = orderProcessingService;
            _services = services;
            _storeService = storeService;
            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalDirect");
        }
        public PayPalStandardProvider(ICurrencyService currencyService, 
            HttpContextBase httpContext,
			CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService,
            ICommonServices commonServices, 
            ILogger logger)
        {
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _httpContext = httpContext;
            _commonServices = commonServices;
            _logger = logger;
        }
        public new void SetUp()
        {
            _customerSettings = new CustomerSettings();
            _securitySettings = new SecuritySettings()
            {
                EncryptionKey = "273ece6f97dd844d"
            };
            _rewardPointsSettings = new RewardPointsSettings()
            {
                Enabled = false,
            };

            _encryptionService = new EncryptionService(_securitySettings);
            _customerRepo      = MockRepository.GenerateMock <IRepository <Customer> >();
            var customer1 = new Customer()
            {
                Username       = "******",
                Email          = "*****@*****.**",
                PasswordFormat = PasswordFormat.Hashed,
                Active         = true
            };

            string saltKey  = _encryptionService.CreateSaltKey(5);
            string password = _encryptionService.CreatePasswordHash("password", saltKey);

            customer1.PasswordSalt = saltKey;
            customer1.Password     = password;
            AddCustomerToRegisteredRole(customer1);

            var customer2 = new Customer()
            {
                Username       = "******",
                Email          = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password       = "******",
                Active         = true
            };

            AddCustomerToRegisteredRole(customer2);

            var customer3 = new Customer()
            {
                Username       = "******",
                Email          = "*****@*****.**",
                PasswordFormat = PasswordFormat.Encrypted,
                Password       = _encryptionService.EncryptText("password"),
                Active         = true
            };

            AddCustomerToRegisteredRole(customer3);

            var customer4 = new Customer()
            {
                Username       = "******",
                Email          = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password       = "******",
                Active         = true
            };

            AddCustomerToRegisteredRole(customer4);

            var customer5 = new Customer()
            {
                Username       = "******",
                Email          = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password       = "******",
                Active         = true
            };

            _eventPublisher = MockRepository.GenerateMock <IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg <object> .Is.Anything));

            _customerRepo.Expect(x => x.Table).Return(new List <Customer>()
            {
                customer1, customer2, customer3, customer4, customer5
            }.AsQueryable());

            _customerRoleRepo        = MockRepository.GenerateMock <IRepository <CustomerRole> >();
            _genericAttributeRepo    = MockRepository.GenerateMock <IRepository <GenericAttribute> >();
            _rewardPointsHistoryRepo = MockRepository.GenerateMock <IRepository <RewardPointsHistory> >();
            _userAgent = MockRepository.GenerateMock <IUserAgent>();

            _genericAttributeService       = MockRepository.GenerateMock <IGenericAttributeService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();

            _storeContext = MockRepository.GenerateMock <IStoreContext>();

            _services = MockRepository.GenerateMock <ICommonServices>();
            _services.Expect(x => x.StoreContext).Return(_storeContext);
            _services.Expect(x => x.RequestCache).Return(NullRequestCache.Instance);
            _services.Expect(x => x.Cache).Return(NullCache.Instance);
            _services.Expect(x => x.EventPublisher).Return(_eventPublisher);

            _customerService = new CustomerService(_customerRepo, _customerRoleRepo,
                                                   _genericAttributeRepo, _rewardPointsHistoryRepo, _genericAttributeService, _rewardPointsSettings, _services, new FakeHttpContext("~/"), _userAgent);

            _customerRegistrationService = new CustomerRegistrationService(_customerService,
                                                                           _encryptionService, _newsLetterSubscriptionService, _rewardPointsSettings, _customerSettings, _storeContext, _eventPublisher);
        }
Esempio n. 32
0
        public ComplaintKindViewModel(IEntityUoWBuilder uowBuilder, IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices,
                                      IEntityAutocompleteSelectorFactory employeeSelectorFactory, Action updateJournalAction, ISalesPlanJournalFactory salesPlanJournalFactory,
                                      INomenclatureJournalFactory nomenclatureSelectorFactory) : base(uowBuilder, unitOfWorkFactory, commonServices)
        {
            _employeeSelectorFactory     = employeeSelectorFactory ?? throw new ArgumentNullException(nameof(employeeSelectorFactory));
            _unitOfWorkFactory           = unitOfWorkFactory ?? throw new ArgumentNullException(nameof(unitOfWorkFactory));
            _commonServices              = commonServices ?? throw new ArgumentNullException(nameof(commonServices));
            _updateJournalAction         = updateJournalAction ?? throw new ArgumentNullException(nameof(updateJournalAction));
            _salesPlanJournalFactory     = salesPlanJournalFactory ?? throw new ArgumentNullException(nameof(salesPlanJournalFactory));
            _nomenclatureSelectorFactory = nomenclatureSelectorFactory ?? throw new ArgumentNullException(nameof(nomenclatureSelectorFactory));

            ComplaintObjects     = UoW.Session.QueryOver <ComplaintObject>().List();
            _subdivisionsOnStart = new List <Subdivision>(Entity.Subdivisions);

            TabName = "Виды рекламаций";
        }
Esempio n. 33
0
 public void Handle(AppStartedEvent msg, ICacheManager s1, ICommonServices s2)
 {
 }
Esempio n. 34
0
 protected ViewModelBase(ICommonServices commonServices)
 {
     Navigation = commonServices.Navigation;
 }
 public DocumentTypeDetailsViewModel(IDocumentTypeService documentTypeService, IFilePickerService filePickerService, ICommonServices commonServices, DocumentTypeListViewModel documentTypeListViewModel, DocumentTypeViewModel documentTypeViewModel) : base(commonServices)
 {
     DocumentTypeService       = documentTypeService;
     FilePickerService         = filePickerService;
     DocumentTypeListViewModel = documentTypeListViewModel;
     DocumentTypeViewModel     = documentTypeViewModel;
 }
Esempio n. 36
0
 public DevToolsController(ICommonServices services)
 {
     _services = services;
 }
Esempio n. 37
0
 public GenericListViewModel(ICommonServices commonServices) : base(commonServices)
 {
 }
Esempio n. 38
0
 public UndeliveryTransferAbsenceReasonViewModel(IEntityUoWBuilder uowBuilder, IUnitOfWorkFactory uowFactory, ICommonServices commonServices)
     : base(uowBuilder, uowFactory, commonServices)
 {
     TabName = "Причина отсутствия переноса";
 }
Esempio n. 39
0
 public CashAccountListViewModel(ICashAccountService cashAccountService, ICommonServices commonServices, CashAccountViewModel cashAccountViewModel) : base(commonServices)
 {
     CashAccountService   = cashAccountService;
     CashAccountViewModel = cashAccountViewModel;
 }
Esempio n. 40
0
        protected SingleEntityJournalViewModelBase(IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices,
                                                   bool hideJournalForOpenDialog = false, bool hideJournalForCreateDialog = false) : base(unitOfWorkFactory, commonServices)
        {
            this.commonServices = commonServices ?? throw new ArgumentNullException(nameof(commonServices));

            EntityType = typeof(TEntity);
            var config = RegisterEntity(ItemsSourceQueryFunction);

            config.AddDocumentConfiguration("Добавить", CreateDialogFunction, OpenDialogFunction, (node) => node.EntityType == typeof(TEntity),
                                            new JournalParametersForDocument {
                HideJournalForCreateDialog = hideJournalForCreateDialog, HideJournalForOpenDialog = hideJournalForOpenDialog
            })
            .FinishConfiguration();
            FinishJournalConfiguration();

            if (!EntityConfigs[EntityType].PermissionResult.CanRead)
            {
                AbortOpening($"Нет прав для просмотра документов типа: {EntityType.GetSubjectName()}", "Невозможно открыть журнал");
            }
            DataLoader.ItemsListUpdated += (sender, e) => ListUpdated?.Invoke(sender, e);
        }
Esempio n. 41
0
 public LoginViewModel(ILoginService loginService, ISettingsService settingsService, ICommonServices commonServices) : base(commonServices)
 {
     LoginService    = loginService;
     SettingsService = settingsService;
 }
Esempio n. 42
0
 public static TService Resolve <TService>(this ICommonServices services, object serviceKey)
 {
     return(services.Container.ResolveKeyed <TService>(serviceKey));
 }
 public CheckoutAddressMapper(SmartDbContext db,
                              ICommonServices services)
 {
     _db       = db;
     _services = services;
 }
Esempio n. 44
0
 public SaveSettingFilter(SaveSettingAttribute attribute, ICommonServices services, StoreDependingSettingHelper settingHelper)
     : base(attribute, services, settingHelper)
 {
 }
 public ViewModelBase GetAdvancedWageWidgetViewModel(AdvancedWageParameterType parameterType, IWageHierarchyNode hierarchyNode, ICommonServices commonServices)
 => CreateWageWidget(commonServices, parameterType, hierarchyNode: hierarchyNode);
Esempio n. 46
0
 public ProviderManager(IComponentContext ctx, ICommonServices services, PluginMediator pluginMediator)
 {
     this._ctx            = ctx;
     this._services       = services;
     this._pluginMediator = pluginMediator;
 }
 public ViewModelBase GetAdvancedWageWidgetViewModel(IAdvancedWageParameter entity, ICommonServices commonServices)
 => CreateWageWidget(commonServices, entity.AdvancedWageParameterType, entity);
Esempio n. 48
0
 public CustomerDetailsViewModel(ICustomerService customerService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
 {
     CustomerService   = customerService;
     FilePickerService = filePickerService;
 }
 public PackagingController(ICommonServices services, IPackageManager packageManager, Lazy <IThemeRegistry> themeRegistry)
 {
     this._services       = services;
     this._packageManager = packageManager;
     this._themeRegistry  = themeRegistry;
 }
Esempio n. 50
0
 public PartyListViewModel(IPartyService partyService, ICommonServices commonServices, PartyViewModel partyViewModel) : base(commonServices)
 {
     PartyService   = partyService;
     PartyViewModel = partyViewModel;
 }
        public LateArrivalReasonsJournalViewModel(IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices,
                                                  bool hideJournalForOpenDialog = false, bool hideJournalForCreateDialog = false)
            : base(unitOfWorkFactory, commonServices, hideJournalForOpenDialog, hideJournalForCreateDialog)
        {
            this.unitOfWorkFactory = unitOfWorkFactory ?? throw new ArgumentNullException(nameof(unitOfWorkFactory));

            TabName = "Причины опозданий водителей";

            var threadLoader = DataLoader as ThreadDataLoader <LateArrivalReasonsJournalNode>;

            threadLoader.MergeInOrderBy(x => x.IsArchive, false);
            threadLoader.MergeInOrderBy(x => x.Id, false);

            UpdateOnChanges(typeof(LateArrivalReason));
        }
Esempio n. 52
0
        public CustomersViewModel(ICustomerService customerService, IOrderService orderService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
        {
            CustomerService = customerService;

            CustomerList    = new CustomerListViewModel(CustomerService, commonServices);
            CustomerDetails = new CustomerDetailsViewModel(CustomerService, filePickerService, commonServices);
            CustomerOrders  = new OrderListViewModel(orderService, commonServices);
        }
Esempio n. 53
0
        public ProductsViewModel(IProductService productService, IOrderService orderService, IFilePickerService filePickerService, ICommonServices commonServices) : base(commonServices)
        {
            ProductService = productService;

            ProductList    = new ProductListViewModel(ProductService, commonServices);
            ProductDetails = new ProductDetailsViewModel(ProductService, filePickerService, commonServices);
        }
Esempio n. 54
0
 /// <summary>
 /// 附件信息
 /// </summary>
 public AttachFileController()
 {
     _ICommonServices = new CommonServices();
 }
Esempio n. 55
0
 public static object ResolveNamed(this ICommonServices services, string serviceName, Type serviceType)
 {
     return(services.Container.ResolveNamed(serviceName, serviceType));
 }
Esempio n. 56
0
 public GoogleMerchantCenterFeedPlugin(ICommonServices services, IExportProfileService exportProfileService)
 {
     _services             = services;
     _exportProfileService = exportProfileService;
 }
Esempio n. 57
0
 public static object Resolve(this ICommonServices services, Type serviceType)
 {
     return(services.Resolve(null, serviceType));
 }
Esempio n. 58
0
 public static TService Resolve <TService>(this ICommonServices services)
 {
     return(services.Container.Resolve <TService>());
 }
 public CommonControllerApi(ICommonServices commonServices)
 {
     _commonServices = commonServices;
 }
Esempio n. 60
0
 public static object Resolve(this ICommonServices services, object serviceKey, Type serviceType)
 {
     return(services.Container.ResolveKeyed(serviceKey, serviceType));
 }