public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository, IStationDictionaryRepository stationDictionaryRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _rruRepository = rruRepository; _stationDictionaryRepository = stationDictionaryRepository; }
public ENodebQueryService(ITownRepository townRepository, IENodebRepository eNodebRepository, IStationDictionaryRepository stationDictionaryRepository, IDistributionRepository distributionRepository, ITownBoundaryRepository boundaryRepository) { _townRepository = townRepository; _eNodebRepository = eNodebRepository; _stationDictionaryRepository = stationDictionaryRepository; _distributionRepository = distributionRepository; _boundaryRepository = boundaryRepository; }
public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, IStationDictionaryRepository stationDictionary, IDistributionRepository distributionRepository, IHotSpotCellRepository hotSpotCellRepository) { _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; _stationDictionary = stationDictionary; _distributionRepository = distributionRepository; _hotSpotCellRepository = hotSpotCellRepository; }
public StationImportService(IDistributionRepository distributionRepository, IENodebBaseRepository eNodebBaseRepository, IENodebRepository eNodebRepository, IConstructionInformationRepository constructionInformation, IStationRruRepository stationRruRepository, IStationAntennaRepository stationAntennaRepository, IStationDictionaryRepository stationDictionary, ITownRepository townRepository, ICellRepository cellRepository, ILteRruRepository rruRepository) { _distributionRepository = distributionRepository; _constructionInformation = constructionInformation; _stationRruRepository = stationRruRepository; _stationAntennaRepository = stationAntennaRepository; _eNodebBaseRepository = eNodebBaseRepository; _eNodebRepository = eNodebRepository; _stationDictionary = stationDictionary; _townRepository = townRepository; _cellRepository = cellRepository; _rruRepository = rruRepository; if (Stations == null) { Stations = new Stack <StationDictionaryExcel>(); } if (ENodebBases == null) { ENodebBases = new Stack <ENodebBaseExcel>(); } if (StationCells == null) { StationCells = new Stack <ConstructionExcel>(); } if (StationRrus == null) { StationRrus = new Stack <StationRruExcel>(); } if (StationAntennas == null) { StationAntennas = new Stack <StationAntennaExcel>(); } if (StationDistributions == null) { StationDistributions = new Stack <IndoorDistributionExcel>(); } if (Towns == null) { Towns = _townRepository.GetAllList(); } }
public static string CalculateStationTown(this IStationDictionaryRepository repository, ENodebBaseExcel excel) { var candidates = new[] { "石湾", "张槎", "祖庙" }; if (candidates.FirstOrDefault(x => excel.StationTown == x) != null) { return(excel.StationTown); } var candidates2 = new[] { "石湾", "张槎", "祖庙", "朝东", "桂城", "季华", "佛大", "澜石", "同济", "亲仁", "敦厚", "大富", "城西", "化纤", "中院", "吴勤" }; var result = candidates2.FirstOrDefault(x => excel.ENodebName.Contains(x)); if (result != null) { switch (result) { case "石湾": case "季华": case "澜石": case "中院": return("石湾"); case "张槎": case "佛大": case "大富": case "城西": return("张槎"); default: return("祖庙"); } } var station = repository.FirstOrDefault(x => x.StationNum == excel.StationNum); if (station == null) { return(excel.StationTown); } result = candidates.FirstOrDefault(x => station.ElementName.Contains(x) || station.Address.Contains(x)); return(result ?? excel.StationTown); }
public StationInfoService(IStationDictionaryRepository repository, IENodebBaseRepository eNodebBaseRepository) { _repository = repository; _eNodebBaseRepository = eNodebBaseRepository; }