//private readonly ILogger _logger; public ExcelImportDataService(IScenarioRepository scenarioRepository, IRegionRepository regionRepository, IVariableRepository variableRepository, IVariableXlsDescriptionRepository variableXlsDescriptionRepository, IAgrigationXlsDescriptionRepository agrigationXlsDescriptionRepository, ISubVariableRepository subVariableRepository, ISubVariableDataRepository subVariableDataRepository, IProcessSetRepository processSetRepository, ICommodityRepository commodityRepository, ICommoditySetRepository commoditySetRepository, IAttributeRepository attributeRepository, IUserConstraintRepository userConstraintRepository, IVariableDataRepository variableDataRepository, IRegionAgrigationTypeRepository regionAgrigationTypeRepository, AggregationSumCulculationService aggregationSumulCalculationService, AggregationSumWorldCulculationService aggregationSumWorldCulculationService, IXlsFormulaUpdaterService xlsFormulaUpdaterService, IDataRepository dataRepository, IUnitOfWork unitOfWork, //ILogger<ExcelImportDataService> logger, NxsDbContext context) { ScenarioRepository = scenarioRepository; RegionRepository = regionRepository; ProcessSetRepository = processSetRepository; CommodityRepository = commodityRepository; CommoditySetRepository = commoditySetRepository; AttributeRepository = attributeRepository; UserConstraintRepository = userConstraintRepository; VariableDataRepository = variableDataRepository; SubVariableRepository = subVariableRepository; SubVariableDataRepository = subVariableDataRepository; _aggregationSumCulculationService = aggregationSumulCalculationService; _aggregationSumWorldCulculationService = aggregationSumWorldCulculationService; _xlsFormulaUpdaterService = xlsFormulaUpdaterService; _variableRepository = variableRepository; _variableXlsDescriptionRepository = variableXlsDescriptionRepository; _agrigationXlsDescriptionRepository = agrigationXlsDescriptionRepository; _dataRepository = dataRepository; _context = context; UnitOfWork = unitOfWork; //_logger = logger; _variableDataHandler = new VariableDataHandler(this); _agrigationDataHandler = new AggregationDataHandler(this); _agrigationDataHandlerWorld = new AggregationDataHandlerWorld(this); _aggregationDataHandlerGdp = new AggregationDataHandlerGdp(this); }
public RegionDataImporterAbstarct(IRegionRepository regionRepository, IVariableRepository variableRepository, ISubVariableRepository subVariableRepository, ISubVariableDataRepository subVariableDataRepository, IRegionAgrigationTypeRepository regionAgrigationTypeRepository, IMapper mapper, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory) { _regionRepository = regionRepository; _variableRepository = variableRepository; _subVariableRepository = subVariableRepository; _subVariableDataRepository = subVariableDataRepository; _regionAgrigationTypeRepository = regionAgrigationTypeRepository; _automapper = mapper; _unitOfWork = unitOfWork; _logger = loggerFactory.CreateLogger("NXS.Services.Excel.DataImport.RegionDataImporterAbstarct"); }
public GdpDataImporter(IRegionRepository regionRepository, IVariableRepository variableRepository, ISubVariableRepository subVariableRepository, ISubVariableDataRepository subVariableDataRepository, IRegionAgrigationTypeRepository regionAgrigationTypeRepository, IMapper mapper, IUnitOfWork unitOfWork) { _regionRepository = regionRepository; _variableRepository = variableRepository; _subVariableRepository = subVariableRepository; _subVariableDataRepository = subVariableDataRepository; _regionAgrigationTypeRepository = regionAgrigationTypeRepository; _automapper = mapper; _unitOfWork = unitOfWork; _workSheetName = "By region"; _regionAggregationTypeName = "By Region"; }
public GeneralRegionDataImporter(IRegionRepository regionRepository, IVariableRepository variableRepository, ISubVariableRepository subVariableRepository, ISubVariableDataRepository subVariableDataRepository, IRegionAgrigationTypeRepository regionAgrigationTypeRepository, IMapper mapper, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory) : base( regionRepository, variableRepository, subVariableRepository, subVariableDataRepository, regionAgrigationTypeRepository, mapper, unitOfWork, loggerFactory) { base.ByRegionWorkSheetName = "By region"; base.RegionAggregationTypeName = "By Region"; }
public WorldRegionDataImporter(IRegionRepository regionRepository, IVariableRepository variableRepository, ISubVariableRepository subVariableRepository, ISubVariableDataRepository subVariableDataRepository, IRegionAgrigationTypeRepository regionAgrigationTypeRepository, IMapper mapper, IUnitOfWork unitOfWork, ILoggerFactory loggerFactory) : base( regionRepository, variableRepository, subVariableRepository, subVariableDataRepository, regionAgrigationTypeRepository, mapper, unitOfWork, loggerFactory) { base.ByRegionWorkSheetName = "Global Results"; base.RegionAggregationTypeName = "World"; _worldRegionName = RegionConstants.WorldRegionName; }