예제 #1
0
 public VerstkaFileClientNameProvider(
     IKeyedProvider <string, string> stringWithoutBadSymbolsProvider,
     int maxLength = 0)
 {
     _stringWithoutBadSymbolsProvider = stringWithoutBadSymbolsProvider;
     _maxLength = maxLength;
 }
예제 #2
0
        public AccountService(BPFinanceContext context, IOptions <AppSettings> appSettingsAccessor, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            _businessUnitIds = appParamsAccessor.Value.BusinessUnitIds;

            var basketBusinessUnitIdProvider = new BasketBusinessUnitIdProvider(_context);

            _paymentInTimeDiscountProvider = new PaymentInTimeDiscountProvider(appParamsAccessor.Value.BusinessUnitSettings);

            _clientAccountProcessor = new ClientAccountProcessor(
                _context,
                repository);
            _accountSettingsProcessor = new AccountSettingsProcessor(
                _context,
                repository);
            _orderProcessor = new OrderProcesor(
                _context,
                repository,
                appParamsAccessor.Value.BasketOrderDescription,
                appParamsAccessor.Value.ManagerId,
                basketBusinessUnitIdProvider);
            var rubricProcessor = new RubricProcessor(
                _context,
                repository);
            var graphicProcessor = new GraphicProcessor(
                _context,
                repository);

            _orderImProcessor = new OrderImProcessor(
                _context,
                repository);
            var stringProcessor = new StringProcessor(
                _context,
                repository);
            var moduleProcessor = new ModuleProcessor(
                _context,
                repository);
            var moduleMaketProcessor = new ModuleMaketProcessor(
                appSettingsAccessor.Value.OrderImFolderTemplate,
                appSettingsAccessor.Value.DatabaseName);

            _positionImProcessor = new PositionImProcessor(
                _context,
                repository,
                _orderImProcessor,
                stringProcessor,
                moduleProcessor,
                moduleMaketProcessor);
            _orderPositionProcessor = new OrderPositionProcessor(
                _context,
                repository,
                rubricProcessor,
                graphicProcessor,
                _positionImProcessor,
                appParamsAccessor.Value.BasketOrderDescription);
        }
예제 #3
0
        public OrderProcesor(
            BPFinanceContext context,
            IBPFinanceRepository repository,
            string basketOrderDescription,
            int defaultOrderManagerId,
            IKeyedProvider <Tuple <int, int>, int> basketBusinessUnitIdProvider)
        {
            _context    = context;
            _repository = repository;

            _basketOrderDescription = basketOrderDescription;
            _defaultOrderManagerId  = defaultOrderManagerId;

            _basketBusinessUnitIdProvider = basketBusinessUnitIdProvider;

            _basketOrderFactory = new BasketOrderFactory(_basketOrderDescription);
            _clientOrderFactory = new ClientOrderFactory();
        }
예제 #4
0
 public BasketBusinessUnitIdProvider(BPFinanceContext context)
 {
     _interactionBusinessUnitIdProvider = new InteractionBusinessUnitIdProvider(context);
     _businessUnitByPriceIdProvider     = new BusinessUnitIdByPriceIdProvider(context);
 }