예제 #1
0
 public RequestService(ITenantPersistenceService tenantPersistenceService,
                       IRequestRepository requestRepository,
                       IHoldingRequestRepository holdingRequestRepository,
                       IRequestHistoryRepository requestHistoryRepository,
                       ISystemEventRepository systemEventRepository,
                       ICourierRepository courierRepository,
                       IStaticValueService staticValueService,
                       INoteRequestRepository noteRequestRepository,
                       ISystemConfigurationRepository systemConfigurationRepository,
                       IScheduleRepository scheduleRepository, IGoogleService googleService,
                       ILocationRepository locationRepository,
                       IDiagnosticService diagnosticService,
                       IBusinessRuleSet <Request> businessRuleSet = null)
     : base(requestRepository, requestRepository, tenantPersistenceService, businessRuleSet)
 {
     _requestRepository             = requestRepository;
     _holdingRequestRepository      = holdingRequestRepository;
     _requestHistoryRepository      = requestHistoryRepository;
     _systemEventRepository         = systemEventRepository;
     _courierRepository             = courierRepository;
     _staticValueService            = staticValueService;
     _noteRequestRepository         = noteRequestRepository;
     _systemConfigurationRepository = systemConfigurationRepository;
     _scheduleRepository            = scheduleRepository;
     _googleService      = googleService;
     _locationRepository = locationRepository;
     _diagnosticService  = diagnosticService;
 }
예제 #2
0
 public ConfigurationController(ILogger <ConfigurationController> logger, IHttpContextAccessor accessor,
                                ISystemConfigurationRepository systemConfigurationRepository)
 {
     _logger   = logger;
     _accessor = accessor;
     _systemConfigurationRepository = systemConfigurationRepository;
 }
예제 #3
0
 public StaticValueService(ITenantPersistenceService tenantPersistenceService, IStaticValueRepository staticValueRepository,
                           ISystemConfigurationRepository systemConfigurationRepository,
                           IBusinessRuleSet <StaticValue> businessRuleSet = null)
     : base(staticValueRepository, staticValueRepository, tenantPersistenceService, businessRuleSet)
 {
     _staticValueRepository         = staticValueRepository;
     _systemConfigurationRepository = systemConfigurationRepository;
 }
예제 #4
0
 public SystemConfigurationService(ITenantPersistenceService tenantPersistenceService,
                                   ISystemConfigurationRepository systemConfigurationRepository, ILocationRepository locationRepository,
                                   IBusinessRuleSet <SystemConfiguration> businessRuleSet = null)
     : base(systemConfigurationRepository, systemConfigurationRepository, tenantPersistenceService, businessRuleSet)
 {
     _systemConfigurationRepository = systemConfigurationRepository;
     _locationRepository            = locationRepository;
 }
예제 #5
0
 public FormsService(ISystemConfigurationRepository systemConfigurationRepository,
                     ISimulatorEventService simulatorEventService,
                     IFlightIntegrationService flightIntegrationService,
                     IHardwareBoardService hardwareBoardService
                     )
 {
     _systemConfigurationRepository = systemConfigurationRepository;
     _simulatorEventService         = simulatorEventService;
     _flightIntegrationService      = flightIntegrationService;
     _hardwareBoardService          = hardwareBoardService;
 }
예제 #6
0
 public FinPosService(ICompanyRepository companyRepository, IBranchRepository branchRepository, IUserRepository userRepository, IProductRepository productRepository, IPurchaseRepository purchaseRepository, ICategoryRepository categoryRepository, ILabelSettingRepository labelSettingRepository, ISupplierRepository supplierRepository, IOpeningStockRepository openingStockRepository, IStockAdjustmentRepository stockAdjustmentRepository, ISystemConfigurationRepository systemConfigurationRepository, ITaxRepository taxRepository)
 {
     _companyRepository             = companyRepository;
     _branchRepository              = branchRepository;
     _userRepository                = userRepository;
     _productRepository             = productRepository;
     _categoryRepository            = categoryRepository;
     _purchaseRepository            = purchaseRepository;
     _labelSettingRepository        = labelSettingRepository;
     _supplierRepository            = supplierRepository;
     _openingStockRepository        = openingStockRepository;
     _stockAdjustmentRepository     = stockAdjustmentRepository;
     _systemConfigurationRepository = systemConfigurationRepository;
     _taxRepository = taxRepository;
 }
예제 #7
0
 public OutStorageService(IWayBillInfoRepository wayBillInfoRepository,
                          IVenderFeeLogRepository venderFeeLogRepository,
                          IOutStorageInfoRepository outStorageInfoRepository,
                          IFreightService freightService,
                          ICustomerOrderStatusRepository customerOrderStatusRepository = null,
                          IDeliveryChannelConfigurationRepository deliveryChannelConfigurationRepository = null,
                          IReceivingExpensRepository receivingExpensRepository           = null,
                          IReceivingExpenseInfoRepository receivingExpenseInfoRepository = null,
                          IDeliveryFeeRepository deliveryFeeRepository                   = null,
                          IDeliveryFeeInfoRepository deliveryFeeInfoRepository           = null,
                          IWaybillPackageDetailRepository waybillPackageDetailRepository = null,
                          IWorkContext workContext = null,
                          ITotalPackageInfoRepository totalPackageInfoRepository = null,
                          ITotalPackageOutStorageRelationalInfoRepository totalPackageOutStorageRelationalInfoRepository = null,
                          ITotalPackageTraceInfoRepository totalPackageTraceInfoRepository = null,
                          ISystemConfigurationRepository systemConfigurationRepository     = null,
                          IMailPostBagInfoRepository mailPostBagInfoRepository             = null,
                          ICustomerOrderInfoRepository customerOrderInfoRepository         = null,
                          IB2CPreAlertLogsRepository b2CPreAlertLogsRepository             = null)
 {
     _workContext                            = workContext;
     _wayBillInfoRepository                  = wayBillInfoRepository;
     _venderFeeLogRepository                 = venderFeeLogRepository;
     _outStorageInfoRepository               = outStorageInfoRepository;
     _customerOrderStatusRepository          = customerOrderStatusRepository;
     _deliveryChannelConfigurationRepository = deliveryChannelConfigurationRepository;
     //_inTackingLogInfoRepository = inTackingLogInfoRepository;
     _receivingExpensRepository      = receivingExpensRepository;
     _receivingExpenseInfoRepository = receivingExpenseInfoRepository;
     _deliveryFeeRepository          = deliveryFeeRepository;
     _deliveryFeeInfoRepository      = deliveryFeeInfoRepository;
     _freightService = freightService;
     _waybillPackageDetailRepository = waybillPackageDetailRepository;
     _freightService             = freightService;
     _totalPackageInfoRepository = totalPackageInfoRepository;
     _totalPackageOutStorageRelationalInfoRepository = totalPackageOutStorageRelationalInfoRepository;
     _totalPackageTraceInfoRepository = totalPackageTraceInfoRepository;
     _systemConfigurationRepository   = systemConfigurationRepository;
     _mailPostBagInfoRepository       = mailPostBagInfoRepository;
     _customerOrderInfoRepository     = customerOrderInfoRepository;
     _b2CPreAlertLogsRepository       = b2CPreAlertLogsRepository;
 }
예제 #8
0
        public TCenterService(ISystemConfigurationRepository systemConigurationRepository)
        {
            var crmService = StartupHelper.CreateCrmService();

            _systemConigurationRepository = systemConigurationRepository;
            _crmService = crmService;
            dicHeadKey  = "Prefer";
            dicHead     = new Dictionary <string, IEnumerable <string> >();
            dicHead.Add(dicHeadKey, new List <string>()
            {
                "odata.include-annotations=\"*\""
            });

            //获取服务描述
            var remoteServiceTCenter = _systemConigurationRepository.QueryByName(RemoteServiceNames.RemoteServiceTCenter);

            if (remoteServiceTCenter == null)
            {
                var fragment = new TextFragment()
                {
                    Code = TextCodes.NotFoundRemoteServiceDescriptionByName,
                    DefaultFormatting = "找不到名称为{0}的远程服务配置",
                    ReplaceParameters = new List <object>()
                    {
                        RemoteServiceNames.RemoteServiceTCenter
                    }
                };

                throw new UtilityException((int)Errors.NotFoundRemoteServiceDescriptionByName, fragment);
            }
            //获取认证信息
            var tCenterConfiguration = remoteServiceTCenter.GetConfigurationValue <TCenterConfiguration>();

            if (tCenterConfiguration != null)
            {
                BaseUrl   = tCenterConfiguration.Url;
                AuthInfos = tCenterConfiguration.AuthInfos;
            }
        }
예제 #9
0
 public RemoteServiceInfoManagementService(ICommonLogInfoGeneratorService commonLogInfoGeneratorService, ISystemConfigurationRepository systemConigurationRepository)
 {
     _commonLogInfoGeneratorService = commonLogInfoGeneratorService;
     _systemConigurationRepository  = systemConigurationRepository;
 }
        protected override ISystemConfigurationRepositoryCacheProxy RealCreate()
        {
            ISystemConfigurationRepository systemConfigurationRepository = SystemConfigurationRepositoryFactory.Get();

            return(new SystemConfigurationRepositoryCacheProxy(systemConfigurationRepository));
        }
 public SystemConfigurationRepositoryCacheProxy(ISystemConfigurationRepository systemConfigurationRepository)
 {
     _systemConfigurationRepository = systemConfigurationRepository;
 }
 public SystemConfigurationRepositoryCacheProxy(ISystemConfigurationRepository systemConfigurationRepository)
 {
     _systemConfigurationRepository = systemConfigurationRepository;
     _kvcacheVisitor = CacheInnerHelper.CreateKVCacheVisitor(KVCacheVisitorSetting);
 }
예제 #13
0
 public SystemConfigurationService(ISystemConfigurationRepository systemConfigurationRepository)
 {
     this._systemConfigurationRepository = systemConfigurationRepository;
 }
예제 #14
0
 public ClaimContextGeneratorServiceForDefault(ISystemConfigurationRepository systemConfigurationRepository)
 {
     _systemConfigurationRepository = systemConfigurationRepository;
 }
예제 #15
0
 public SystemConfigurationRule(ISystemConfigurationRepository systemConfigurationRepository)
 {
     _systemConfigurationRepository = systemConfigurationRepository;
 }