public TopDrop2GService(ITopDrop2GCellRepository repository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { _repository = repository; _btsRepository = btsRepository; _eNodebRepository = eNodebRepository; }
public EvaluationController(ITownRepository townRepository, IENodebRepository eNodebRepository, ICellRepository cellRepositroy) { this.townRepository = townRepository; this.eNodebRepository = eNodebRepository; cellRepository = cellRepositroy; }
public CollegeAlarmService(IInfrastructureRepository infrastructureRepository, IENodebRepository eNodebRepository, IAlarmRepository alarmRepository) { _infrastructureRepository = infrastructureRepository; _eNodebRepository = eNodebRepository; _alarmRepository = alarmRepository; }
public CollegeCellViewService(IInfrastructureRepository repository, ICellRepository cellRepoistory, IENodebRepository eNodebRepository) { _repository = repository; _cellRepository = cellRepoistory; _eNodebRepository = eNodebRepository; }
public static Precise4GView ConstructView(PreciseCoverage4G stat, IENodebRepository repository) { var view = Mapper.Map<PreciseCoverage4G, Precise4GView>(stat); var eNodeb = repository.GetByENodebId(stat.CellId); view.ENodebName = eNodeb?.Name; return view; }
public AlarmWorkItemService(IAlarmWorkItemRepository repository, IENodebRepository eNodebRepository, ICellRepository cellRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; }
public DumpDoubleFlowService(IENodebRepository eNodebRepository, IDoubleFlowHuaweiRepository doubleFlowHuaweiRepository, IDoubleFlowZteRepository doubleFlowZteRepository) { _eNodebRepository = eNodebRepository; _doubleFlowHuaweiRepository = doubleFlowHuaweiRepository; _doubleFlowZteRepository = doubleFlowZteRepository; }
public TownCoverageService(IENodebRepository eNodebRepository, ICoverageStatRepository statRepository, ITownCoverageRepository townRepository) { _eNodebRepository = eNodebRepository; _statRepository = statRepository; _townRepository = townRepository; }
public TopConnection3GService(ITopConnection3GRepository repository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { _repository = repository; _btsRepository = btsRepository; _eNodebRepository = eNodebRepository; }
public KpiController(IRegionRepository regionRepository, ITownRepository townRepository, ITopCellRepository <CdmaRegionStat> cdmaStatRepository, ITopCellRepository <TopDrop2GCell> topDrop2GRepository, ITopCellRepository <TopDrop2GCellDaily> topDrop2GDailyRepository, ITopCellRepository <TopConnection3GCell> topConnection3GRepository, ITopCellRepository <TownPreciseCoverage4GStat> townPrecise4GRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { this.regionRepository = regionRepository; this.townRepository = townRepository; this.cdmaStatRepository = cdmaStatRepository; this.topDrop2GRepository = topDrop2GRepository; this.topDrop2GDailyRepository = topDrop2GDailyRepository; this.topConnection3GRepository = topConnection3GRepository; this.townPrecise4GRepository = townPrecise4GRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; this.Initialize(topDrop2GRepository, topConnection3GRepository); regionNamesService = new QueryRegionCityNamesService(this.regionRepository.GetAll()); districtNamesService = new QueryDistinctDistrictNamesService(this.townRepository.GetAll()); }
public TownSupportService(ITownRepository townRepository, ITownBoundaryRepository boundaryRepository, IENodebRepository eNodebRepository) { _townRepository = townRepository; _boundaryRepository = boundaryRepository; _eNodebRepository = eNodebRepository; }
public DumpCqiService(IENodebRepository eNodebRepository, ICqiZteRepository cqiZteRepository, ICqiHuaweiRepository cqiHuaweiRepository) { _eNodebRepository = eNodebRepository; _cqiZteRepository = cqiZteRepository; _cqiHuaweiRepository = cqiHuaweiRepository; }
public QuickSaveCellInfoListService(ICellRepository repository, IENodebRepository eNodebRepository) : base(repository) { _baseRepository = new CellBaseRepository(repository); _baseENodebRepository = new ENodebBaseRepository(eNodebRepository); }
public FlowService( IFlowHuaweiRepository huaweiRepositroy, IFlowZteRepository zteRepository, IRrcZteRepository rrcZteRepository, IRrcHuaweiRepository rrcHuaweiRepository, IQciZteRepository qciZteRepository, IQciHuaweiRepository qciHuaweiRepository, ITownFlowRepository townFlowRepository, IENodebRepository eNodebRepository, ITownRrcRepository townRrcRepository, ITownQciRepository townQciRepository, ICellRepository cellRepository, IPrbHuaweiRepository prbHuaweiRepository, IPrbZteRepository prbZteRepository, ITownPrbRepository townPrbRepository) { _huaweiRepository = huaweiRepositroy; _zteRepository = zteRepository; _rrcZteRepository = rrcZteRepository; _rrcHuaweiRepository = rrcHuaweiRepository; _qciZteRepository = qciZteRepository; _qciHuaweiRepository = qciHuaweiRepository; _townFlowRepository = townFlowRepository; _eNodebRepository = eNodebRepository; _townRrcRepository = townRrcRepository; _townQciRepository = townQciRepository; _cellRepository = cellRepository; _prbHuaweiRepository = prbHuaweiRepository; _prbZteRepository = prbZteRepository; _townPrbRepository = townPrbRepository; if (FlowHuaweis == null) { FlowHuaweis = new Stack <Tuple <FlowHuawei, RrcHuawei, QciHuawei, PrbHuawei> >(); } if (FlowZtes == null) { FlowZtes = new Stack <Tuple <FlowZte, RrcZte, QciZte, PrbZte> >(); } }
public TownRrcService(IENodebRepository eNodebRepository, IRrcHuaweiRepository rrcHuaweiRepository, IRrcZteRepository rrcZteRepository) { _eNodebRepository = eNodebRepository; _rrcHuaweiRepository = rrcHuaweiRepository; _rrcZteRepository = rrcZteRepository; }
public DumpPrbService(IENodebRepository eNodebRepository, IPrbZteRepository prbZteRepository, IPrbHuaweiRepository prbHuaweiRepository) { _eNodebRepository = eNodebRepository; _prbHuaweiRepository = prbHuaweiRepository; _prbZteRepository = prbZteRepository; }
public CollegeCellsService(IInfrastructureRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; }
public static NearestPciCellView ConstructView(NearestPciCell stat, IENodebRepository repository) { var view = Mapper.Map<NearestPciCell, NearestPciCellView>(stat); var eNodeb = repository.GetByENodebId(stat.NearestCellId); view.NearestENodebName = eNodeb == null ? "Undefined" : eNodeb.Name; return view; }
public KpiController(IRegionRepository regionRepository, ITownRepository townRepository, ITopCellRepository<CdmaRegionStat> cdmaStatRepository, ITopCellRepository<TopDrop2GCell> topDrop2GRepository, ITopCellRepository<TopDrop2GCellDaily> topDrop2GDailyRepository, ITopCellRepository<TopConnection3GCell> topConnection3GRepository, ITopCellRepository<TownPreciseCoverage4GStat> townPrecise4GRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository, IAlarmRepository alarmRepository) { this.regionRepository = regionRepository; this.townRepository = townRepository; this.cdmaStatRepository = cdmaStatRepository; this.topDrop2GRepository = topDrop2GRepository; this.topDrop2GDailyRepository = topDrop2GDailyRepository; this.topConnection3GRepository = topConnection3GRepository; this.townPrecise4GRepository = townPrecise4GRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; this.Initialize(topDrop2GRepository, topConnection3GRepository); regionNamesService = new QueryRegionCityNamesService(this.regionRepository.GetAll()); districtNamesService = new QueryDistinctDistrictNamesService(this.townRepository.GetAll()); _alarmRepository = alarmRepository; }
public BandCellService(ICellRepository repository, IENodebRepository eNodebRepository, ITownRepository townRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _townRepository = townRepository; }
public TownQciService(IENodebRepository eNodebRepository, IQciZteRepository qciZteRepository, IQciHuaweiRepository qciHuaweiRepository) { _eNodebRepository = eNodebRepository; _qciZteRepository = qciZteRepository; _qciHuaweiRepository = qciHuaweiRepository; }
public InterferenceNeighborService(IInterferenceMatrixRepository repository, INearestPciCellRepository neighboRepository, IENodebRepository eNodebRepository) { _repository = repository; _neighborRepository = neighboRepository; _eNodebRepository = eNodebRepository; }
public static CellView ConstructView(Cell cell, IENodebRepository repository) { var view = Mapper.Map<Cell, CellView>(cell); var eNodeb = repository.GetByENodebId(cell.ENodebId); view.ENodebName = eNodeb?.Name; return view; }
public CollegeENodebService(IInfrastructureRepository repository, IENodebRepository eNodebRepository, IAlarmRepository alarmRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _alarmRepository = alarmRepository; }
public bool TestDeleteTown(int cityId, int districtId, int townId, IENodebRepository eNodebRepository, IBtsRepository btsRepository) { service = new TownOperationService(repository, "C-" + cityId, "D-" + districtId, "T-" + townId); return(service.DeleteOneTown(eNodebRepository, btsRepository)); }
public int SaveENodebs(IEnumerable <CollegeENodebExcel> eNodebExcels, IENodebRepository eNodebRepository) { int count = 0; foreach (CollegeENodebExcel excel in eNodebExcels) { ENodeb eNodeb = eNodebRepository.GetAll().FirstOrDefault(x => x.ENodebId == excel.ENodebId); if (eNodeb == null) { continue; } InfrastructureInfo infrastructure = _repository.InfrastructureInfos.FirstOrDefault(x => x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College && x.InfrastructureType == InfrastructureType.ENodeb && x.InfrastructureId == eNodeb.Id); if (infrastructure == null) { infrastructure = new InfrastructureInfo { HotspotName = excel.CollegeName, HotspotType = HotspotType.College, InfrastructureType = InfrastructureType.ENodeb, InfrastructureId = eNodeb.Id }; _repository.AddOneInfrastructure(infrastructure); _repository.SaveChanges(); } count++; } return(count); }
public CollegeCellsController(IInfrastructureRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; }
public College4GTestController(ICollege4GTestRepository repository, ICollegeRepository collegeRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository) { _repository = repository; _collegeRepository = collegeRepository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; }
public static CoverageStatView ConstructView(CoverageStat stat, IENodebRepository repository) { var view = Mapper.Map <CoverageStat, CoverageStatView>(stat); var eNodeb = repository.FirstOrDefault(x => x.ENodebId == stat.ENodebId); view.ENodebName = eNodeb?.Name; return(view); }
public DoubleFlowQueryService(IDoubleFlowHuaweiRepository huaweiRepository, IDoubleFlowZteRepository zteRepository, IENodebRepository eNodebRepository, ICellRepository huaweiCellRepository, ITownRepository townRepository, ICellRepository cellRepository) : base(huaweiRepository, zteRepository, eNodebRepository, huaweiCellRepository, townRepository) { _cellRepository = cellRepository; }
public int SaveCells(List <CellExcel> cellInfoList, IENodebRepository eNodebRepository) { if (CurrentProgress > 10) { CurrentProgress = 0; } return(CurrentProgress++); }
public static CellView ConstructView(Cell cell, IENodebRepository repository) { var view = Mapper.Map <Cell, CellView>(cell); var eNodeb = repository.FirstOrDefault(x => x.ENodebId == cell.ENodebId); view.ENodebName = eNodeb?.Name; return(view); }
public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, IRegionRepository regionRepository) { this.townRepository = townRepository; this.eNodebRepository = eNodebRepository; this.regionRepository = regionRepository; this.btsRepository = btsRepository; }
public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository, IStationDictionaryRepository stationDictionaryRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _rruRepository = rruRepository; _stationDictionaryRepository = stationDictionaryRepository; }
public static Precise4GView ConstructView(PreciseCoverage4G stat, IENodebRepository repository) { var view = Mapper.Map <PreciseCoverage4G, Precise4GView>(stat); var eNodeb = repository.GetByENodebId(stat.CellId); view.ENodebName = eNodeb?.Name; return(view); }
public static NearestPciCellView ConstructView(this NearestPciCell stat, IENodebRepository repository) { var view = Mapper.Map <NearestPciCell, NearestPciCellView>(stat); var eNodeb = repository.FirstOrDefault(x => x.ENodebId == stat.NearestCellId); view.NearestENodebName = eNodeb == null ? "Undefined" : eNodeb.Name; return(view); }
public CollegeAlarmController(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository, IAlarmRepository alarmRepository, IENodebRepository eNodebRepository) { _repository = repository; _infrastructureRepository = infrastructureRepository; _alarmRepository = alarmRepository; _eNodebRepository = eNodebRepository; }
public ENodebQueryService(ITownRepository townRepository, IENodebRepository eNodebRepository, IDistributionRepository distributionRepository, ITownBoundaryRepository boundaryRepository) { _townRepository = townRepository; _eNodebRepository = eNodebRepository; _distributionRepository = distributionRepository; _boundaryRepository = boundaryRepository; }
public static CellPreciseKpiView ConstructView(Cell cell, IENodebRepository repository) { var view = Mapper.Map <Cell, CellPreciseKpiView>(cell); var eNodeb = repository.GetByENodebId(cell.ENodebId); view.ENodebName = eNodeb?.Name; return(view); }
public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository) { _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; }
public TopConnection3GController( ITopCellRepository<TopConnection3GCell> statRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { this.statRepository = statRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; _cellRepository = cellRepository; }
public CellPreciseKpiView(Cell cell, IENodebRepository repository) { cell.CloneProperties(this); ENodeb eNodeb = repository.FirstOrDefault(x => x.ENodebId == cell.ENodebId); ENodebName = eNodeb == null ? "Undefined" : eNodeb.Name; Indoor = cell.IsOutdoor ? "室外" : "室内"; DownTilt = cell.ETilt + cell.MTilt; PreciseRate = 100; }
public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository, IENodebRepository eNodebRepository) { _repository = repository; _cellRepository = cellRepository; _eNodebRepository = eNodebRepository; if (NearestCells == null) NearestCells = new Stack<NearestPciCell>(); }
public SaveENodebListService(IENodebRepository repository, ParametersDumpInfrastructure infrastructure, ITownRepository townRepository) { _repository = repository; _baseRepository = new ENodebBaseRepository(repository); _townList = townRepository.GetAllList(); _infrastructure = infrastructure; _infrastructure.ENodebsUpdated = 0; }
public ByExcelInfoSaveBtsListService(IBtsRepository repository, ParametersDumpInfrastructure infrastructure, ITownRepository townRepository, IENodebRepository lteRepository = null) { _infrastructure = infrastructure; _townRepository = townRepository; _lteRepository = lteRepository; _repository = repository; _baseRepository = new ENodebBaseRepository(repository); }
public RutraceController(IENodebRepository eNodebRepository, ICellRepository cellRepositroy, ITownRepository townRepository, IMrsCellRepository mrsRepository) { PageSize = 10; _eNodebRepository = eNodebRepository; _cellRepository = cellRepositroy; _townRepository = townRepository; _mrsRepository = mrsRepository; }
public TopDrop2GController( ITopCellRepository<TopDrop2GCell> statRepository, ITopCellRepository<TopDrop2GCellDaily> dailyStatRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { this.statRepository = statRepository; this.dailyStatRepository = dailyStatRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; }
public TownQueryService(ITownRepository repository, IRegionRepository regionRepository, IENodebRepository eNodebRepositroy, IBtsRepository btsRepository, ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository) { _repository = repository; _regionRepository = regionRepository; _eNodebRepository = eNodebRepositroy; _btsRepository = btsRepository; _cellRepository = cellRepository; _cdmaCellRepository = cdmaCellRepository; }
public void AssertTest(IENodebRepository repository, int townId, int page, int pageSize, int expectedSize) { Mock<ITownRepository> townRepository = new Mock<ITownRepository>(); ENodebListViewModel viewModel = new ENodebListViewModel(repository, townRepository.Object, townId, page, pageSize); Assert.AreEqual(viewModel.TownId, townId); Assert.AreEqual(viewModel.PagingInfo.CurrentPage, page); Assert.AreEqual(viewModel.PagingInfo.ItemsPerPage, pageSize); Assert.AreEqual(viewModel.PagingInfo.TotalItems, expectedSize); Assert.AreEqual(viewModel.Items.Count(), page == (expectedSize / pageSize + 1) ? (expectedSize % pageSize) : pageSize); Assert.AreEqual(viewModel.QueryItems.Count(), expectedSize); }
public PreciseImportService(IPreciseCoverage4GRepository repository, ITownPreciseCoverage4GStatRepository regionRepository, IENodebRepository eNodebRepository, ITownRepository townRepository) { _repository = repository; _regionRepository = regionRepository; _eNodebRepository = eNodebRepository; _townRepository = townRepository; if (PreciseCoverage4Gs == null) PreciseCoverage4Gs = new Stack<PreciseCoverage4G>(); if (TownPreciseViews == null) TownPreciseViews = new List<TownPreciseView>(); }
public ENodebBaseRepository(IENodebRepository inputRepository) { eNodebBaseList.Clear(); foreach (ENodeb eNodeb in inputRepository.GetAllList()) { eNodebBaseList.Add(new ENodebBase { ENodebId = eNodeb.ENodebId, Name = eNodeb.Name, TownId = eNodeb.TownId }); } }
public CollegeController(ICollegeRepository repository, ITownRepository townRepository, IInfrastructureRepository infrastructureRepository, IIndoorDistributioinRepository indoorDistributioinRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository) { _repository = repository; _townRepository = townRepository; _infrastructureRepository = infrastructureRepository; _indoorDistributioinRepository = indoorDistributioinRepository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; }
public DeleteOneENodebService(IENodebRepository repository, ITownRepository townRepository, string cityName, string districtName, string townName, string eNodebName) : this(repository) { if (townRepository == null) { _eNodeb = null; } else { int townId = townRepository.GetAll().QueryId(cityName, districtName, townName); _eNodeb = repository.GetAll().FirstOrDefault(x => x.TownId == townId && x.Name == eNodebName); } }
public void UpdateTown(IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository) { if (ENodebId > 10000) { UpdateTown(eNodebRepository, townRepository); } var bts = btsRepository.GetByBtsId(ENodebId); if (bts == null) return; ENodebName = bts.Name; var town = bts.TownId == -1 ? null : townRepository.Get(bts.TownId); if (town == null) return; City = town.CityName; District = town.DistrictName; Town = town.TownName; }