Example #1
0
        public OrderImProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _orderImFactory = new OrderImFactory();
        }
Example #2
0
        public AccountSettingsProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _accountSettingsFactory = new AccountSettingsFactory();
        }
Example #3
0
        public ModuleProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _modulePositionFactory = new ModulePositionFactory();
        }
Example #4
0
        public GraphicProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _graphicPositionFactory = new GraphicPositionFactory();
        }
Example #5
0
        public AccountSettingsService(BPFinanceContext context, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            _accountSettingsProcessor = new AccountSettingsProcessor(_context, repository);
        }
Example #6
0
        public RubricProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _rubricPositionFactory = new RubricPositionFactory();
        }
Example #7
0
        public OrderPositionDataProcessor(BPFinanceContext context, string orderImFolderTemplate, string dbName)
        {
            _context = context;

            var orderImFolder = string.Format(orderImFolderTemplate, dbName);

            _positionImGraphicsFolderPathTemplate = orderImFolder + "{0}\\{1}\\Graphics";
        }
Example #8
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);
        }
        public ClientAccountProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _accountFactory         = new ClientAccountFactory();
            _accountPositionFactory = new AccountPositionFactory();
            _accountOrderFactory    = new AccountOrderFactory();
        }
Example #10
0
        public OrderPositionService(BPFinanceContext context, IOptions <AppSettings> appSettingsAccessor, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            var orderImFolderTemplate = appSettingsAccessor.Value.OrderImFolderTemplate;
            var dbName = appSettingsAccessor.Value.DatabaseName;

            var basketBusinessUnitIdProvider = new BasketBusinessUnitIdProvider(_context);

            _orderPositionDataProcessor = new OrderPositionDataProcessor(
                _context,
                orderImFolderTemplate,
                dbName);
            _clientProcessor = new ClientProcessor(
                _context);
            _orderProcessor = new OrderProcesor(
                _context,
                repository,
                appParamsAccessor.Value.BasketOrderDescription,
                appParamsAccessor.Value.ManagerId,
                basketBusinessUnitIdProvider);
            var rubricProcessor = new RubricProcessor(
                _context,
                repository);
            var graphicProcessor = new GraphicProcessor(
                _context,
                repository);
            var 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);
            var positionImProcessor = new PositionImProcessor(
                _context,
                repository,
                orderImProcessor,
                stringProcessor,
                moduleProcessor,
                moduleMaketProcessor);

            _orderPositionProcessor = new OrderPositionProcessor(
                _context,
                repository,
                rubricProcessor,
                graphicProcessor,
                positionImProcessor,
                appParamsAccessor.Value.BasketOrderDescription);
        }
Example #11
0
        public PaymentProcessor(
            BPFinanceContext context,
            IBPFinanceRepository repository,
            int[] businessUnits)
        {
            _context    = context;
            _repository = repository;

            _businessUnitIds = businessUnits;

            _orderPaymentFactory = new OrderPaymentFactory();
        }
Example #12
0
        public SupplierService(BPFinanceContext context, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            _handbookProcessor = new HandbookProcessor(
                _context,
                repository);

            _supplierIds = appParamsAccessor.Value.SupplierIds;

            _pricePermissionFlag = appParamsAccessor.Value.PricePermissionFlag;
        }
Example #13
0
        public StringService(BPFinanceContext context, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            _stringProcessor = new StringProcessor(
                _context,
                repository);

            _handbookProcessor = new HandbookProcessor(
                _context,
                repository);
        }
Example #14
0
        public StringProcessor(BPFinanceContext context, IBPFinanceRepository repository)
        {
            _context    = context;
            _repository = repository;

            _stringFactory           = new StringPositionFactory();
            _addressFactory          = new AddressFactory();
            _stringAddressFactory    = new StringAddressFactory();
            _stringOccurrenceFactory = new StringOccurrenceFactory();
            _phoneFactory            = new PhoneFactory();
            _stringPhoneFactory      = new StringPhoneFactory();
            _emailFactory            = new EmailFactory();
            _stringWebFactory        = new StringWebFactory();
        }
Example #15
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();
        }
Example #16
0
        public OrderPositionProcessor(
            BPFinanceContext context,
            IBPFinanceRepository repository,
            IRubricProcessor rubricProcessor,
            IGraphicProcessor graphicProcessor,
            IPositionImProcessor positionImProcessor,
            string basketOrderDescription)
        {
            _context    = context;
            _repository = repository;

            _rubricProcessor     = rubricProcessor;
            _graphicProcessor    = graphicProcessor;
            _positionImProcessor = positionImProcessor;

            _basketOrderDescription = basketOrderDescription;

            _orderPositionFactory = new OrderPositionFactory();
        }
Example #17
0
        public PositionImProcessor(
            BPFinanceContext context,
            IBPFinanceRepository repository,
            IOrderImProcessor orderImProcessor,
            IStringProcessor stringProcessor,
            IModuleProcessor moduleProcessor,
            IModuleMaketProcessor moduleMaketProcessor)
        {
            _context    = context;
            _repository = repository;

            _orderImProcessor = orderImProcessor;
            _stringProcessor  = stringProcessor;

            _moduleProcessor      = moduleProcessor;
            _moduleMaketProcessor = moduleMaketProcessor;

            _positionImFactory = new PositionImFactory();
        }
Example #18
0
        public PaymentService(BPFinanceContext context, IOptions <AppParams> appParamsAccessor)
        {
            _context = context;
            var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId);

            var basketBusinessUnitIdProvider = new BasketBusinessUnitIdProvider(_context);

            _paymentProcessor = new PaymentProcessor(
                _context,
                repository,
                appParamsAccessor.Value.BusinessUnitIds);

            _orderProcessor = new OrderProcesor(
                _context,
                repository,
                appParamsAccessor.Value.BasketOrderDescription,
                appParamsAccessor.Value.ManagerId,
                basketBusinessUnitIdProvider);
        }
 public InteractionBusinessUnitIdProvider(BPFinanceContext context)
 {
     _context = context;
 }
 public BPFinanceRepository(BPFinanceContext context, int editUserId)
 {
     _context    = context;
     _editUserId = editUserId;
 }
Example #21
0
 public BasketBusinessUnitIdProvider(BPFinanceContext context)
 {
     _interactionBusinessUnitIdProvider = new InteractionBusinessUnitIdProvider(context);
     _businessUnitByPriceIdProvider     = new BusinessUnitIdByPriceIdProvider(context);
 }
Example #22
0
 public BusinessUnitIdByPriceIdProvider(BPFinanceContext context)
 {
     _context = context;
 }
Example #23
0
 public ClientProcessor(BPFinanceContext context)
 {
     _context = context;
 }
Example #24
0
 public HandbookProcessor(BPFinanceContext context, IBPFinanceRepository repository)
 {
     _context    = context;
     _repository = repository;
 }
Example #25
0
 public UserService(IOptions <AppSettings> appSettings, BPFinanceContext context)
 {
     _appSettings = appSettings.Value;
     _context     = context;
 }