public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository, ITownBoundaryRepository boundaryRepository) { _townRepository = townRepository; _btsRepository = btsRepository; _boundaryRepository = boundaryRepository; }
public TopConnection3GService(ITopConnection3GRepository repository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { _repository = repository; _btsRepository = btsRepository; _eNodebRepository = eNodebRepository; }
public CollegeCdmaCellsService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository, IBtsRepository btsRepository) { _repository = repository; _cellRepository = cellRepository; _btsRepository = btsRepository; }
public int SaveBtss(IEnumerable<CollegeBtsExcel> btsExcels, IBtsRepository btsRepository) { int count = 0; foreach (CollegeBtsExcel excel in btsExcels) { CdmaBts bts = btsRepository.GetAll().FirstOrDefault(x => x.BtsId == excel.BtsId); if (bts==null) continue; InfrastructureInfo infrastructure = _repository.FirstOrDefault(x => x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College && x.InfrastructureType == InfrastructureType.CdmaBts && x.InfrastructureId == bts.Id); if (infrastructure == null) { infrastructure = new InfrastructureInfo { HotspotName = excel.CollegeName, HotspotType = HotspotType.College, InfrastructureType = InfrastructureType.CdmaBts, InfrastructureId = bts.Id }; _repository.Insert(infrastructure); } count++; } return count; }
public TopDrop2GService(ITopDrop2GCellRepository 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, 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 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 SaveBtss(IEnumerable <CollegeBtsExcel> btsExcels, IBtsRepository btsRepository) { int count = 0; foreach (CollegeBtsExcel excel in btsExcels) { CdmaBts bts = btsRepository.GetAll().FirstOrDefault(x => x.BtsId == excel.BtsId); if (bts == null) { continue; } InfrastructureInfo infrastructure = _repository.InfrastructureInfos.FirstOrDefault(x => x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College && x.InfrastructureType == InfrastructureType.CdmaBts && x.InfrastructureId == bts.Id); if (infrastructure == null) { infrastructure = new InfrastructureInfo { HotspotName = excel.CollegeName, HotspotType = HotspotType.College, InfrastructureType = InfrastructureType.CdmaBts, InfrastructureId = bts.Id }; _repository.AddOneInfrastructure(infrastructure); _repository.SaveChanges(); } count++; } return(count); }
public CollegeCdmaCellViewService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository, IBtsRepository btsRepository) { _repository = repository; _cellRepository = cellRepository; _btsRepository = btsRepository; }
public MmlDumpRepository(IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, ParametersDumpInfrastructure infrastructure) { this.btsRepository = btsRepository; this.cdmaCellRepository = cdmaCellRepository; this.infrastructure = infrastructure; }
public CollegeCdmaCellViewService(IHotSpotCdmaCellRepository repository, ICdmaCellRepository cellRepository, IBtsRepository btsRepository) { _repository = repository; _cellRepository = cellRepository; _btsRepository = btsRepository; }
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 ByBtsQuickSaveOneCdmaCellService(ICdmaCellRepository repository, CdmaCellBaseRepository baseRepository, CdmaCellExcel cellInfo, IBtsRepository btsRepository) : base(repository, baseRepository, cellInfo) { _bts = btsRepository.GetAll().FirstOrDefault(x => x.BtsId == cellInfo.BtsId); }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; }
public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository) { _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; }
public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, IRegionRepository regionRepository) { this.townRepository = townRepository; this.eNodebRepository = eNodebRepository; this.regionRepository = regionRepository; this.btsRepository = btsRepository; }
public static IEnumerable<CdmaBts> QueryCollegeBtss(this IInfrastructureRepository repository, IBtsRepository btsRepository, CollegeInfo info) { IEnumerable<int> ids = repository.InfrastructureInfos.Where(x => x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaBts ).Select(x => x.InfrastructureId).ToList(); return ids.Select(btsRepository.Get).Where(bts => bts != null).ToList(); }
public static CdmaCellView ConstructView(this CdmaCell cell, IBtsRepository repository) { var view = Mapper.Map <CdmaCell, CdmaCellView>(cell); var bts = repository.GetByBtsId(cell.BtsId); view.BtsName = bts?.Name; return(view); }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; _cellRepository = cellRepository; }
public TownIdAssignedSaveOneBtsService(IBtsRepository repository, ENodebBaseRepository baseRepository, int townId, List <ENodeb> eNodebList = null) : base(repository) { _baseRepository = baseRepository; _eNodebList = eNodebList; _townId = townId; }
public static IEnumerable <CdmaBts> QueryCollegeBtss(this IInfrastructureRepository repository, IBtsRepository btsRepository, CollegeInfo info) { IEnumerable <int> ids = repository.InfrastructureInfos.Where(x => x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaBts ).Select(x => x.InfrastructureId).ToList(); return(ids.Select(btsRepository.Get).Where(bts => bts != null).ToList()); }
public CdmaBtsDumpRepository( ITownRepository townRepository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ParametersDumpInfrastructure infrastructure) { service = new ByExcelInfoSaveBtsListService( btsRepository, infrastructure, townRepository, eNodebRepository); }
public TownIdAssignedSaveOneBtsService(IBtsRepository repository, ENodebBaseRepository baseRepository, int townId, List<ENodeb> eNodebList = null) : base(repository) { _baseRepository = baseRepository; _eNodebList = eNodebList; _townId = townId; }
public TopConnection3GController( ITopCellRepository<TopConnection3GCell> statRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { this.statRepository = statRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; }
public TopConnection3GController( ITopCellRepository <TopConnection3GCell> statRepository, IBtsRepository btsRepository, IENodebRepository eNodebRepository) { this.statRepository = statRepository; this.btsRepository = btsRepository; this.eNodebRepository = eNodebRepository; }
public ByExcelInfoSaveBtsListService(IBtsRepository repository, ParametersDumpInfrastructure infrastructure, ITownRepository townRepository, IENodebRepository lteRepository = null) { _infrastructure = infrastructure; _townRepository = townRepository; _lteRepository = lteRepository; _repository = repository; _baseRepository = new ENodebBaseRepository(repository); }
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 static bool DeleteOneBts(this IBtsRepository repository, int btsId) { CdmaBts bts = repository.GetAll().FirstOrDefault(x => x.BtsId == btsId); if (bts == null) { return(false); } repository.Delete(bts); return(true); }
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, IOptimzeRegionRepository optimzeRegionRepository, IENodebRepository eNodebRepositroy, IBtsRepository btsRepository, ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository) { _repository = repository; _optimzeRegionRepository = optimzeRegionRepository; _eNodebRepository = eNodebRepositroy; _btsRepository = btsRepository; _cellRepository = cellRepository; _cdmaCellRepository = cdmaCellRepository; }
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 LteCellDumpRepository( ICellRepository cellRepository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, ParametersDumpInfrastructure infrastructure) { this.cellRepository = cellRepository; this.eNodebRepository = eNodebRepository; this.btsRepository = btsRepository; this.cdmaCellRepository = cdmaCellRepository; this.infrastructure = infrastructure; }
public ENodebBaseRepository(IBtsRepository inputRepository) { eNodebBaseList.Clear(); foreach (CdmaBts bts in inputRepository.GetAllList()) { eNodebBaseList.Add(new ENodebBase { ENodebId = bts.BtsId, Name = bts.Name, TownId = bts.TownId }); } }
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 static bool DeleteOneBts(this IBtsRepository repository, ITownRepository townRepository, string districtName, string townName, string btsName) { int townId = townRepository.GetAllList().QueryId(districtName, townName); CdmaBts bts = repository.QueryBts(townId, btsName); if (bts == null) { return(false); } repository.Delete(bts); return(true); }
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 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; }
public ParametersController( ITownRepository townRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, IRegionRepository regionRepository, IENodebPhotoRepository photoRepository) { _townRepository = townRepository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; _regionRepository = regionRepository; _photoRepository = photoRepository; }
public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository, IBtsRepository btsRepository, ITownRepository townRepository, IAlarmWorkItemRepository alarmWorkItemRepository, ICheckingProjectRepository checkingProjectRepository, ICheckingBasicRepository checkingBasicRepository, ICheckingDetailsRepository checkingDetailsRepository, ISpecialAlarmWorkItemRepository specialWorkItemRepository, ICheckingProjectProvinceRepository checkingProjectPovinceRepository) { _repository = repository; _eNodebRepository = eNodebRepository; _btsRepository = btsRepository; _townRepository = townRepository; _alarmWorkItemRepository = alarmWorkItemRepository; _checkingProjectRepository = checkingProjectRepository; _checkingBasicRepository = checkingBasicRepository; _checkingDetailsRepository = checkingDetailsRepository; _specialWorkItemRepository = specialWorkItemRepository; _checkingProjectProvinceRepository = checkingProjectPovinceRepository; }
public CollegeController( IInfrastructureRepository infrastructureRepository, IIndoorDistributioinRepository indoorDistributioinRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, IAlarmRepository alarmRepository) { _infrastructureRepository = infrastructureRepository; _indoorDistributioinRepository = indoorDistributioinRepository; _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; _alarmRepository = alarmRepository; }
public static IEnumerable <TopStatCount> QueryTopCounts <TCell, TView>(this IEnumerable <TCell> stats, IBtsRepository btsRepository, IENodebRepository eNodebRepository, int topCounts) where TCell : class, ICdmaCell, new() where TView : class, IGetTopCellView, new() { CdmaLteNamesService <TCell> service = new CdmaLteNamesService <TCell>(stats, btsRepository.GetAllList(), eNodebRepository.GetAllList()); IEnumerable <TView> cellViews = service.Clone <TView>(); IEnumerable <TopStatCount> statCounts = from v in cellViews group v by new { v.CdmaName, v.SectorId, v.Frequency } into g select new TopStatCount { CarrierName = g.Key.CdmaName + "-" + g.Key.SectorId + "-" + g.Key.Frequency, TopDates = g.Count(), SumOfTimes = g.Sum(v => v.Drops) }; return(statCounts.OrderByDescending(x => x.SumOfTimes).Take(topCounts)); }
public UpdateCdmaLteIdService(IBtsRepository repository, ICdmaCellRepository cellRepository, IEnumerable<CdmaLteIds> lteIds) : this(repository) { var cdmaLteInfos = (from a in repository.GetAllList() join b in cellRepository.GetAllList() on a.BtsId equals b.BtsId where a.ENodebId == -1 select new {a.BtsId, b.CellId}).Distinct(); _eNodebIds = from a in cdmaLteInfos join c in lteIds on a.CellId equals c.CdmaCellId select new BtsENodebIds { ENodebId = c.ENodebId, BtsId = a.BtsId }; }
public bool DeleteOneTown(IENodebRepository eNodebRepository, IBtsRepository btsRepository) { Town town = _repository.GetAllList().Query(_city.Trim(), _district.Trim(), _town.Trim()); if (town == null) return false; ENodeb eNodeb = (eNodebRepository != null && eNodebRepository.GetAll() != null) ? eNodebRepository.GetAll().FirstOrDefault(x => x.TownId == town.Id) : null; CdmaBts bts = (btsRepository != null && btsRepository.GetAll() != null) ? btsRepository.GetAll().FirstOrDefault(x => x.TownId == town.Id) : null; if (eNodeb == null && bts == null) { _repository.Delete(town); return true; } return false; }
public CdmaCellService(ICdmaCellRepository repository, IBtsRepository btsRepository) { _repository = repository; _btsRepository = btsRepository; }
public BtsController(IBtsRepository repository) { _repository = repository; }
public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository, IEnumerable<CdmaCell> cells, IBtsRepository btsRepository) : base(repository, cells) { _baseBtsRepository = new ENodebBaseRepository(btsRepository); }
public QueryCdmaSectorsController(IBtsRepository btsRepository) { this.btsRepository = btsRepository; }
public BtsQueryService(ITownRepository townRepository, IBtsRepository btsRepository) { _townRepository = townRepository; _btsRepository = btsRepository; }
public TownListConsideredSaveOneBtsService(IBtsRepository repository, ITownRepository townRepository) : base(repository) { _townRepository = townRepository; }
protected SaveOneBtsService(IBtsRepository repository) { _repository = repository; }
public CollegeBtssService(IInfrastructureRepository repository, IBtsRepository btsRepository, ITownRepository townRepository) { _repository = repository; _btsRepository = btsRepository; _townRepository = townRepository; }