Пример #1
0
 protected BaseService(IAuthorizationDataService authData, IAuthorizationService authService, IMapper mapper)
 {
     AuthData      = authData;
     AuthService   = authService;
     Mapper        = mapper;
     IsDplEmployee = authData.GetUserRole() == Common.Enumerations.UserRole.DplEmployee;
 }
 public PostingAccountConditionsService(IAuthorizationDataService authData, IMapper mapper,
                                        IRepository <Ltms.Conditions> ltmsConditionsRepo,
                                        IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo) : base(authData, mapper)
 {
     _ltmsConditionsRepo  = ltmsConditionsRepo;
     _olmaLoadCarrierRepo = olmaLoadCarrierRepo;
 }
Пример #3
0
 public VouchersService(
     IAuthorizationDataService authData,
     IAuthorizationService authService,
     IMapper mapper,
     Dal.OlmaDbContext olmaDbContext,
     IServiceProvider serviceProvider,
     IRepository <Olma.Voucher> olmaVoucherRepo,
     IRepository <Olma.CustomerPartner> olmaCustomerPartnerRepo,
     IRepository <Olma.PartnerDirectory> olmaPartnerDirectoryRepo,
     IRepository <Olma.Partner> olmaPartnerRepo,
     INumberSequencesService numberSequencesService,
     IDocumentTypesService documentTypesService,
     IDocumentsService documentsService,
     IPostingRequestsService postingRequestsService,
     Reporting.IReportGeneratorService reportGeneratorService,
     ISynchronizationsService synchronizationsService) : base(authData, authService, mapper)
 {
     _olmaDbContext            = olmaDbContext;
     _serviceProvider          = serviceProvider;
     _olmaVoucherRepo          = olmaVoucherRepo;
     _olmaCustomerPartnerRepo  = olmaCustomerPartnerRepo;
     _olmaPartnerDirectoryRepo = olmaPartnerDirectoryRepo;
     _olmaPartnerRepo          = olmaPartnerRepo;
     _numberSequencesService   = numberSequencesService;
     _documentTypesService     = documentTypesService;
     _documentsService         = documentsService;
     _reportGeneratorService   = reportGeneratorService;
     _synchronizationsService  = synchronizationsService;
     _postingRequestsService   = postingRequestsService;
 }
 public LoadCarrierReceiptsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     Dal.OlmaDbContext olmaDbContext,
     IRepository <Olma.LoadCarrierReceipt> olmaLoadCarrierReceiptRepo,
     IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo,
     IRepository <Olma.CustomerPartner> olmaCustomerPartnerRepo,
     IRepository <Olma.CustomerDivision> olmaCustomerDivisionRepo,
     ISynchronizationsService synchronizationsService,
     INumberSequencesService numberSequencesService,
     IDocumentsService documentsService,
     Reporting.IReportGeneratorService reportGeneratorService,
     IPostingRequestsService postingRequestsService,
     IServiceProvider serviceProvider) : base(authData, mapper)
 {
     _olmaDbContext = olmaDbContext;
     _olmaLoadCarrierReceiptRepo = olmaLoadCarrierReceiptRepo;
     _olmaLoadCarrierRepo        = olmaLoadCarrierRepo;
     _olmaCustomerPartnerRepo    = olmaCustomerPartnerRepo;
     _olmaCustomerDivisionRepo   = olmaCustomerDivisionRepo;
     _numberSequencesService     = numberSequencesService;
     _documentsService           = documentsService;
     _reportGeneratorService     = reportGeneratorService;
     _postingRequestsService     = postingRequestsService;
     _serviceProvider            = serviceProvider;
     _synchronizationsService    = synchronizationsService;
 }
 public CountriesService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Country> olmaCountryRepo
     ) : base(authData, mapper)
 {
     _olmaCountryRepo = olmaCountryRepo;
 }
 public LoadCarriersService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo
     ) : base(authData, mapper)
 {
     _olmaLoadCarrierRepo = olmaLoadCarrierRepo;
 }
Пример #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DBAuthService"/> class.
        /// </summary>
        /// <externalUnit/>
        /// <revision revisor="dev14" date="2/1/2010" version="1.1.6.04">
        ///     Member Created
        /// </revision>
        /// <revision revisor="dev01" date="3/3/2010" version="1.1.7.10">
        ///     Added logging support
        /// </revision>
        public DBAuthService()
        {
            // create new data service
            this.dataService = new AuthorizationDataService();

            // initialize log service with data service
            LogHelper.InitLog(this.dataService);
        }
Пример #8
0
 /// <summary>	Specialised constructor for use only by derived class. </summary>
 /// <param name="dataService">	The data service. </param>
 protected AuthorizationTest(IAuthorizationDataService dataService)
 {
     DataService = dataService;
     if (dataService.CanMigrate())
     {
         dataService.Migrate();
     }
 }
        /// <summary>
        /// Inits the log.
        /// </summary>
        /// <param name="dataService">The data service.</param>
        /// <externalUnit/>
        /// <revision revisor="dev01" date="3/3/2010" version="1.1.7.10">
        ///     Member Created
        /// </revision>
        public static void InitLog(IAuthorizationDataService dataService)
        {
            // create new reference to data service
            logService = new LogDataService(null);

            // connect data service to database
            logService.CreateDatabase(
                "Initial Catalog=Master;Data Source=.;Integrated Security=SSPI");
        }
Пример #10
0
 public LoadCarrierOfferingsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IServiceProvider serviceProvider,
     IRepository <Olma.LmsOrder> lmsOrderGroupRepo
     ) : base(authData, mapper)
 {
     _serviceProvider   = serviceProvider;
     _lmsOrderGroupRepo = lmsOrderGroupRepo;
 }
Пример #11
0
 public PartnersService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Partner> olmaPartnerRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaPartnerRepo = olmaPartnerRepo;
     _serviceProvider = serviceProvider;
 }
Пример #12
0
 public ImportService(
     IAuthorizationDataService authData,
     IMapper mapper,
     OlmaDbContext olmaDbContext,
     IMapsService mapsService
     ) : base(authData, mapper)
 {
     _olmaDbContext = olmaDbContext;
     _mapsService   = mapsService;
 }
Пример #13
0
 public OrganizationsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Organization> olmaOrganizationRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaOrganizationRepo = olmaOrganizationRepo;
     _serviceProvider      = serviceProvider;
 }
 public DplEmployeeService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Customer> olmaCustomerRepo,
     IRepository <Olma.PostingAccount> olmaPostingAccountRepo
     ) : base(authData, mapper)
 {
     _olmaCustomer           = olmaCustomerRepo;
     _olmaPostingAccountRepo = olmaPostingAccountRepo;
 }
Пример #15
0
 public CustomerDivisionsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.CustomerDivision> olmaCustomerDivisionRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaCustomerDivisionRepo = olmaCustomerDivisionRepo;
     _serviceProvider          = serviceProvider;
 }
 public CustomerDocumentSettingsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.CustomerDocumentSetting> customerDocumentSettingRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _customerDocumentSettingRepo = customerDocumentSettingRepo;
     _serviceProvider             = serviceProvider;
 }
Пример #17
0
        public PermissionsService(IAuthorizationDataService authData, IMapper mapper, IServiceProvider serviceProvider, IDistributedCache cache)
        {
            _serviceProvider  = serviceProvider;
            this._authData    = authData;
            this._mapper      = mapper;
            _cache            = cache;
            _permissionsCache = new ConcurrentDictionary <int, ImmutableHashSet <string> >();

            this.PopulateCache();
        }
 public CustomerPartnersService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IServiceProvider serviceProvider,
     IRepository <Olma.CustomerPartner> olmaCustomerPartnerRepo,
     IRepository <Olma.CustomerPartnerDirectoryAccess> customerPartnerDirectoryAccessRepo) : base(authData, mapper)
 {
     _serviceProvider                    = serviceProvider;
     _olmaCustomerPartnerRepo            = olmaCustomerPartnerRepo;
     _customerPartnerDirectoryAccessRepo = customerPartnerDirectoryAccessRepo;
 }
Пример #19
0
 public PartnerDirectoriesService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IServiceProvider serviceProvider,
     IRepository <Olma.PartnerDirectory> olmaPartnerDirectoryRepo
     )
     : base(authData, mapper)
 {
     _serviceProvider          = serviceProvider;
     _olmaPartnerDirectoryRepo = olmaPartnerDirectoryRepo;
 }
 /// <summary>Constructor.</summary>
 /// <param name="identityDataService">          The identity data service. </param>
 /// <param name="userManager">                  Manager for user. </param>
 /// <param name="applicationOptions">           Gets options for controlling the application. </param>
 /// <param name="emailSender">                  The email sender. </param>
 /// <param name="localizerFactory">             The localizer factory. </param>
 /// <param name="authorizationDataService">     The authorization data service. </param>
 public AdminController(IIdentityDataService identityDataService, UserManager <IdentityUserEntity> userManager,
                        ApplicationOptions applicationOptions, ITemplatingMailService emailSender, IStringLocalizerFactory localizerFactory,
                        IAuthorizationDataService authorizationDataService)
 {
     _identityDataService      = identityDataService;
     _userManager              = userManager;
     _applicationOptions       = applicationOptions;
     _emailSender              = emailSender;
     _localizerFactory         = localizerFactory;
     _authorizationDataService = authorizationDataService;
 }
 public LoadCarrierSortingService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo, IRepository <Olma.LoadCarrierReceipt> olmaLoadCarrierReceiptRepo, IRepository <Olma.LoadCarrierSorting> olmaLoadCarrierSortingRepo, OlmaDbContext olmaDbContext, IPostingRequestsService postingRequestsService) : base(authData, mapper)
 {
     _olmaLoadCarrierRepo        = olmaLoadCarrierRepo;
     _olmaLoadCarrierReceiptRepo = olmaLoadCarrierReceiptRepo;
     _olmaLoadCarrierSortingRepo = olmaLoadCarrierSortingRepo;
     _olmaDbContext          = olmaDbContext;
     _postingRequestsService = postingRequestsService;
 }
 public BalanceTransfersService(
     IAuthorizationDataService authData,
     IAuthorizationService authService,
     IMapper mapper,
     IPostingRequestsService postingRequestService,
     IServiceProvider serviceProvider
     ) : base(authData, authService, mapper)
 {
     _postingRequestService = postingRequestService;
     _serviceProvider       = serviceProvider;
 }
 public TransportOfferingsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IServiceProvider serviceProvider,
     IRepository <Olma.Transport> olmaTransportRepo,
     IRepository <Olma.TransportBid> olmaTransportBidRepo
     ) : base(authData, mapper)
 {
     _serviceProvider      = serviceProvider;
     _olmaTransportRepo    = olmaTransportRepo;
     _olmaTransportBidRepo = olmaTransportBidRepo;
 }
        public SynchronizationsService(
            IAuthorizationDataService authData,
            IMapper mapper,
            IConfiguration configuration) : base(authData, mapper)
        {
            var syncQueuesSection = configuration.GetSection("SyncQueues");

            _syncServiceBusConnectionString     = syncQueuesSection["SyncServiceBusConnectionString"];
            _orderSyncRequestQueueName          = syncQueuesSection["OrderSyncRequestQueueName"];
            _postingRequestSyncRequestQueueName = syncQueuesSection["PostingRequestSyncRequestQueueName"];
            _voucherSyncRequestQueueName        = syncQueuesSection["VoucherSyncRequestQueueName"];
        }
Пример #25
0
 public NumberSequencesService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.CustomerDivisionDocumentSetting> customerDivisionDocumentSettingRepo,
     IRepository <Olma.DocumentNumberSequence> documentNumberSequenceRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _customerDivisionDocumentSettingRepo = customerDivisionDocumentSettingRepo;
     _documentNumberSequenceRepo          = documentNumberSequenceRepo;
     _serviceProvider = serviceProvider;
 }
Пример #26
0
 public OrdersService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Order> olmaOrderRepo,
     ISynchronizationsService synchronizationsService,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaOrderRepo           = olmaOrderRepo;
     _synchronizationsService = synchronizationsService;
     _serviceProvider         = serviceProvider;
 }
 public DocumentSettingsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Organization> olmaCustomerRepo,
     IRepository <Olma.CustomerDocumentSetting> olmaCustomerDocumentSettingRepo,
     IRepository <Olma.CustomerDivisionDocumentSetting> olmaCustomerDivisionDocumentSettingRepo
     )
     : base(authData, mapper)
 {
     _olmaCustomerRepo = olmaCustomerRepo;
     _olmaCustomerDocumentSettingRepo         = olmaCustomerDocumentSettingRepo;
     _olmaCustomerDivisionDocumentSettingRepo = olmaCustomerDivisionDocumentSettingRepo;
 }
 public PostingRequestsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     ISynchronizationsService synchronizationsService,
     IRepository <Olma.PostingRequest> olmaPostingRequestRepo,
     IRepository <Olma.LoadCarrier> olmaLoadCarrierRepo,
     INumberSequencesService numberSequencesService) : base(authData, mapper)
 {
     _olmaPostingRequestRepo  = olmaPostingRequestRepo;
     _olmaLoadCarrierRepo     = olmaLoadCarrierRepo;
     _synchronizationsService = synchronizationsService;
     _numberSequencesService  = numberSequencesService;
 }
 public LoadingLocationsService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.LoadingLocation> olmaLoadingLocationRepo,
     IRepository <Olma.Country> olmaCountryRepo,
     IRepository <Olma.CountryState> olmaCountryStateRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaLoadingLocationRepo = olmaLoadingLocationRepo;
     _olmaCountryRepo         = olmaCountryRepo;
     _olmaCountryStateRepo    = olmaCountryStateRepo;
     _serviceProvider         = serviceProvider;
 }
Пример #30
0
 public AddressesService(
     IAuthorizationDataService authData,
     IMapper mapper,
     IRepository <Olma.Address> olmaAddressRepo,
     IRepository <Olma.Country> olmaCountryRepo,
     IRepository <Olma.CountryState> olmaCountryStateRepo,
     IServiceProvider serviceProvider
     ) : base(authData, mapper)
 {
     _olmaAddressRepo      = olmaAddressRepo;
     _olmaCountryRepo      = olmaCountryRepo;
     _olmaCountryStateRepo = olmaCountryStateRepo;
     _serviceProvider      = serviceProvider;
 }