public ByENodebQuickSaveOneCdmaCellService(ICdmaCellRepository repository, CdmaCellBaseRepository baseRepository, CdmaCellExcel cellInfo, ENodebBaseRepository eNodebRepository) : base(repository, baseRepository, cellInfo) { _eNodeb = eNodebRepository.QueryENodeb(cellInfo.BtsId); }
public int SaveCdmaCells(IEnumerable <CollegeCdmaCellExcel> cellExcels, ICdmaCellRepository cellRepository) { int count = 0; foreach (CollegeCdmaCellExcel excel in cellExcels) { CdmaCell cell = cellRepository.GetAll().FirstOrDefault( x => x.BtsId == excel.BtsId && x.SectorId == excel.SectorId); if (cell == null) { continue; } InfrastructureInfo infrastructure = _repository.InfrastructureInfos.FirstOrDefault(x => x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College && x.InfrastructureType == InfrastructureType.CdmaCell && x.InfrastructureId == cell.Id); if (infrastructure == null) { infrastructure = new InfrastructureInfo { HotspotName = excel.CollegeName, HotspotType = HotspotType.College, InfrastructureType = InfrastructureType.CdmaCell, InfrastructureId = cell.Id }; _repository.AddOneInfrastructure(infrastructure); _repository.SaveChanges(); } count++; } return(count); }
public CoveragePointsController(IInfrastructureRepository repository, ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository) { _repository = repository; _cellRepository = cellRepository; _cdmaCellRepository = cdmaCellRepository; }
protected QuickSaveOneCdmaCellService(ICdmaCellRepository repository, CdmaCellBaseRepository baseRepository, CdmaCellExcel cellInfo) : base(repository, cellInfo) { _baseRepository = baseRepository; }
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 ByBtsQuickSaveOneCdmaCellService(ICdmaCellRepository repository, CdmaCellBaseRepository baseRepository, CdmaCellExcel cellInfo, IBtsRepository btsRepository) : base(repository, baseRepository, cellInfo) { _bts = btsRepository.GetAll().FirstOrDefault(x => x.BtsId == cellInfo.BtsId); }
public CollegeCdmaCellsService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository, IBtsRepository btsRepository) { _repository = repository; _cellRepository = cellRepository; _btsRepository = btsRepository; }
public int SaveCdmaCells(IEnumerable<CollegeCdmaCellExcel> cellExcels, ICdmaCellRepository cellRepository) { int count = 0; foreach (CollegeCdmaCellExcel excel in cellExcels) { CdmaCell cell = cellRepository.GetAll().FirstOrDefault( x => x.BtsId == excel.BtsId && x.SectorId == excel.SectorId); if (cell == null) continue; InfrastructureInfo infrastructure = _repository.FirstOrDefault(x => x.HotspotName == excel.CollegeName && x.HotspotType == HotspotType.College && x.InfrastructureType == InfrastructureType.CdmaCell && x.InfrastructureId == cell.Id); if (infrastructure == null) { infrastructure = new InfrastructureInfo { HotspotName = excel.CollegeName, HotspotType = HotspotType.College, InfrastructureType = InfrastructureType.CdmaCell, InfrastructureId = cell.Id }; _repository.Insert(infrastructure); } count++; } return count; }
public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository) { _eNodebRepository = eNodebRepository; _cellRepository = cellRepository; _btsRepository = btsRepository; _cdmaCellRepository = cdmaCellRepository; }
public CdmaCellBaseRepository(ICdmaCellRepository inputRepository) { cellBaseList.Clear(); foreach (CdmaCell cell in inputRepository.GetAllList()) { cellBaseList.Add(new CdmaCellBase(cell)); } }
public static IEnumerable<CdmaCell> QueryCollegeCdmaCells(this IInfrastructureRepository repository, ICdmaCellRepository cdmaCellRepository, CollegeInfo info) { IEnumerable<int> ids = repository.InfrastructureInfos.Where(x => x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaCell ).Select(x => x.InfrastructureId).ToList(); return ids.Select(cdmaCellRepository.Get).Where(cell => cell != null).ToList(); }
public static IEnumerable <CdmaCell> QueryCollegeCdmaCells(this IInfrastructureRepository repository, ICdmaCellRepository cdmaCellRepository, CollegeInfo info) { IEnumerable <int> ids = repository.InfrastructureInfos.Where(x => x.HotspotName == info.Name && x.InfrastructureType == InfrastructureType.CdmaCell ).Select(x => x.InfrastructureId).ToList(); return(ids.Select(cdmaCellRepository.Get).Where(cell => cell != null).ToList()); }
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 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 static bool Delete(this ICdmaCellRepository repository, int btsId, byte sectorId, string cellType) { CdmaCell _cell = repository.Query(btsId, sectorId, cellType); if (_cell == null) { return(false); } repository.Delete(_cell); return(true); }
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 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 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 UpdateConsideredSaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable <CdmaCellExcel> cellInfoList, IBtsRepository btsRepository, bool updateExisted = false) : base(repository, cellInfoList) { _updateExisted = updateExisted; IEnumerable <CdmaCellExcel> distinctInfos = cellInfoList.Distinct( p => new { p.BtsId, p.SectorId, p.Frequency }); _validInfos = from d in distinctInfos join e in btsRepository.GetAll() on d.BtsId equals e.BtsId select d; }
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 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 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 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 void Import(int eNodebId, IENodebRepository eNodebRepository, ICellRepository cellRepository, IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository, IENodebPhotoRepository photoRepository) { ENodeb eNodeb = eNodebRepository.GetAll().FirstOrDefault(x => x.ENodebId == eNodebId); if (eNodeb != null) { ENodeb = eNodeb; Cells = cellRepository.GetAll().Where(x => x.ENodebId == eNodebId).ToList(); } CdmaBts bts = btsRepository.GetAll().FirstOrDefault(x => x.ENodebId == eNodebId); if (bts != null) { int btsId = bts.BtsId; Bts = bts; CdmaCells = cdmaCellRepository.GetAll().Where(x => x.BtsId == btsId).ToList(); } Photos = photoRepository.Photos.Where(x => x.ENodebId == eNodebId).ToList(); }
public CdmaCellService(ICdmaCellRepository repository, IBtsRepository btsRepository) { _repository = repository; _btsRepository = btsRepository; }
protected FromCdmaQueryOutdoorCellService(ICdmaCellRepository repository) { _repository = repository; }
public ByBtsQueryOutdoorCellService(ICdmaCellRepository repository, CdmaBts bts) : base(repository) { _bts = bts; }
public CdmaCellDumpService(ICdmaCellRepository cellRepository, ICdmaRruRepository rruRepository) { _cellRepository = cellRepository; _rruRepository = rruRepository; }
public static List<FileRecords3G> GetCollege3GRecords(this IInfrastructureRepository repository, ICdmaCellRepository cellRepository, string name, double range) { IEnumerable<IGeoPointReadonly<double>> points = repository.QueryCollegeCdmaCells(cellRepository, name); return DCTestService.Query3GFileRecords(points, range).ToList(); }
public static CdmaCell Query(this ICdmaCellRepository repository, int btsId, byte sectorId, string cellType) { return(repository.GetAll().FirstOrDefault( x => x.BtsId == btsId && x.SectorId == sectorId && x.CellType == cellType)); }
protected SaveCdmaCellListService(ICdmaCellRepository repository, IEnumerable <CdmaCell> cells) { _repository = repository; _cells = cells; }
public ByBtsListQueryOutdoorCellService(ICdmaCellRepository repository, IEnumerable <CdmaBts> btss) : base(repository) { _btss = btss; }
public SimpleSaveCdmaCellListService(ICdmaCellRepository repository, IEnumerable<CdmaCell> cells) : base(repository, cells) { }
public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable<CdmaCellExcel> cellInfoList, IBtsRepository btsRepository) : base(repository, cellInfoList) { _btsBaseRepository = new ENodebBaseRepository(btsRepository); }
protected SaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable <CdmaCellExcel> cellInfoList) { _repository = repository; _cellInfoList = cellInfoList; }
protected SaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable<CdmaCellExcel> cellInfoList) { _repository = repository; _cellInfoList = cellInfoList; }
public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository, IEnumerable <CdmaCell> cells, IBtsRepository btsRepository) : base(repository, cells) { _baseBtsRepository = new ENodebBaseRepository(btsRepository); }
public CdmaCellController(ICdmaCellRepository repository) { _repository = repository; }
protected SaveOneCdmaCellService(ICdmaCellRepository repository, CdmaCellExcel cellInfo) { _repository = repository; _cellInfo = cellInfo; }
public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable <CdmaCellExcel> cellInfoList, IBtsRepository btsRepository) : base(repository, cellInfoList) { _btsBaseRepository = new ENodebBaseRepository(btsRepository); }
public SimpleSaveCdmaCellListService(ICdmaCellRepository repository, IEnumerable <CdmaCell> cells) : base(repository, cells) { }
public CollegeCdmaCellsController(IInfrastructureRepository repository, ICdmaCellRepository cellRepository) { _repository = repository; _cellRepository = cellRepository; }
public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository, IEnumerable<CdmaCell> cells, IBtsRepository btsRepository) : base(repository, cells) { _baseBtsRepository = new ENodebBaseRepository(btsRepository); }
public static DtRecordPoint UpdateCollegeCoverageList(IInfrastructureRepository repository, ICellRepository cellRepository, ICdmaCellRepository cdmaCellRepository, string name, double range) { FileRecords2GList = repository.GetCollege2GRecords(cdmaCellRepository, name, range); FileRecords3GList = repository.GetCollege3GRecords(cdmaCellRepository, name, range); FileRecords4GList = repository.GetCollege4GRecords(cellRepository, name, range); return new DtRecordPoint { Lon = FileRecords4GList.Average(x => x.BaiduLongtitute), Lat = FileRecords4GList.Average(x => x.BaiduLattitute) }; }
protected SaveCdmaCellListService(ICdmaCellRepository repository, IEnumerable<CdmaCell> cells) { _repository = repository; _cells = cells; }
public UpdateConsideredSaveCdmaCellInfoListService(ICdmaCellRepository repository, IEnumerable<CdmaCellExcel> cellInfoList, IBtsRepository btsRepository, bool updateExisted = false) : base(repository, cellInfoList) { _updateExisted = updateExisted; IEnumerable<CdmaCellExcel> distinctInfos = cellInfoList.Distinct( p => new { p.BtsId, p.SectorId, p.Frequency }); _validInfos = from d in distinctInfos join e in btsRepository.GetAll() on d.BtsId equals e.BtsId select d; }