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);
        }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 5
0
 public CollegeCdmaCellViewService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository,
     IBtsRepository btsRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
 }
Exemplo n.º 6
0
 public MmlDumpRepository(IBtsRepository btsRepository,
                          ICdmaCellRepository cdmaCellRepository, ParametersDumpInfrastructure infrastructure)
 {
     this.btsRepository      = btsRepository;
     this.cdmaCellRepository = cdmaCellRepository;
     this.infrastructure     = infrastructure;
 }
Exemplo n.º 7
0
 public ByENodebQuickSaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellBaseRepository baseRepository,
     CdmaCellExcel cellInfo, ENodebBaseRepository eNodebRepository)
     : base(repository, baseRepository, cellInfo)
 {
     _eNodeb = eNodebRepository.QueryENodeb(cellInfo.BtsId);
 }
Exemplo n.º 8
0
 protected QuickSaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellBaseRepository baseRepository,
     CdmaCellExcel cellInfo)
     : base(repository, cellInfo)
 {
     _baseRepository = baseRepository;
 }
Exemplo n.º 9
0
 public CollegeCdmaCellViewService(IHotSpotCdmaCellRepository repository, ICdmaCellRepository cellRepository,
                                   IBtsRepository btsRepository)
 {
     _repository     = repository;
     _cellRepository = cellRepository;
     _btsRepository  = btsRepository;
 }
Exemplo n.º 10
0
 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 ByBtsQuickSaveOneCdmaCellService(ICdmaCellRepository repository,
                                         CdmaCellBaseRepository baseRepository,
                                         CdmaCellExcel cellInfo, IBtsRepository btsRepository)
     : base(repository, baseRepository, cellInfo)
 {
     _bts = btsRepository.GetAll().FirstOrDefault(x => x.BtsId == cellInfo.BtsId);
 }
Exemplo n.º 14
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
                           IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository   = eNodebRepository;
     _cellRepository     = cellRepository;
     _btsRepository      = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 15
0
 public CdmaCellBaseRepository(ICdmaCellRepository inputRepository)
 {
     cellBaseList.Clear();
     foreach (CdmaCell cell in inputRepository.GetAllList())
     {
         cellBaseList.Add(new CdmaCellBase(cell));
     }
 }
Exemplo n.º 16
0
 public CdmaCellBaseRepository(ICdmaCellRepository inputRepository)
 {
     cellBaseList.Clear();
     foreach (CdmaCell cell in inputRepository.GetAllList())
     {
         cellBaseList.Add(new CdmaCellBase(cell));
     }
 }
Exemplo n.º 17
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Exemplo n.º 18
0
 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();
 }
Exemplo n.º 19
0
        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());
        }
Exemplo n.º 20
0
 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;
 }
Exemplo n.º 21
0
 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;
 }
Exemplo n.º 24
0
 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;
 }
Exemplo n.º 25
0
 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;
 }
Exemplo n.º 26
0
 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;
 }
Exemplo n.º 27
0
        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;
        }
Exemplo n.º 28
0
 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;
 }
Exemplo n.º 29
0
 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;
 }
Exemplo n.º 30
0
 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;
 }
Exemplo n.º 31
0
 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
     };
 }
Exemplo n.º 33
0
        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();
        }
Exemplo n.º 34
0
 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;
 }
Exemplo n.º 37
0
 public CdmaCellDumpService(ICdmaCellRepository cellRepository, ICdmaRruRepository rruRepository)
 {
     _cellRepository = cellRepository;
     _rruRepository  = rruRepository;
 }
Exemplo n.º 38
0
 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();
 }
Exemplo n.º 39
0
 public CdmaCellService(ICdmaCellRepository repository, IBtsRepository btsRepository)
 {
     _repository = repository;
     _btsRepository = btsRepository;
 }
Exemplo n.º 40
0
 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));
 }
Exemplo n.º 41
0
 protected SaveCdmaCellListService(ICdmaCellRepository repository,
                                   IEnumerable <CdmaCell> cells)
 {
     _repository = repository;
     _cells      = cells;
 }
 public ByBtsListQueryOutdoorCellService(ICdmaCellRepository repository, IEnumerable <CdmaBts> btss)
     : base(repository)
 {
     _btss = btss;
 }
Exemplo n.º 43
0
 public SimpleSaveCdmaCellListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells)
     : base(repository, cells)
 {
 }
Exemplo n.º 44
0
 public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCellExcel> cellInfoList, IBtsRepository btsRepository)
     : base(repository, cellInfoList)
 {
     _btsBaseRepository = new ENodebBaseRepository(btsRepository);
 }
Exemplo n.º 45
0
 protected SaveCdmaCellInfoListService(ICdmaCellRepository repository,
                                       IEnumerable <CdmaCellExcel> cellInfoList)
 {
     _repository   = repository;
     _cellInfoList = cellInfoList;
 }
Exemplo n.º 46
0
 protected SaveCdmaCellInfoListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCellExcel> cellInfoList)
 {
     _repository = repository;
     _cellInfoList = cellInfoList;
 }
Exemplo n.º 47
0
 public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository,
                                         IEnumerable <CdmaCell> cells, IBtsRepository btsRepository)
     : base(repository, cells)
 {
     _baseBtsRepository = new ENodebBaseRepository(btsRepository);
 }
Exemplo n.º 48
0
 public CdmaCellController(ICdmaCellRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 49
0
 protected SaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellExcel cellInfo)
 {
     _repository = repository;
     _cellInfo = cellInfo;
 }
Exemplo n.º 50
0
 public CdmaCellDumpService(ICdmaCellRepository cellRepository, ICdmaRruRepository rruRepository)
 {
     _cellRepository = cellRepository;
     _rruRepository = rruRepository;
 }
Exemplo n.º 51
0
 public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository,
                                          IEnumerable <CdmaCellExcel> cellInfoList, IBtsRepository btsRepository)
     : base(repository, cellInfoList)
 {
     _btsBaseRepository = new ENodebBaseRepository(btsRepository);
 }
Exemplo n.º 52
0
 public SimpleSaveCdmaCellListService(ICdmaCellRepository repository,
                                      IEnumerable <CdmaCell> cells)
     : base(repository, cells)
 {
 }
Exemplo n.º 53
0
 public CollegeCdmaCellsController(IInfrastructureRepository repository, ICdmaCellRepository cellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
 }
Exemplo n.º 54
0
 public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells, IBtsRepository btsRepository)
     : base(repository, cells)
 {
     _baseBtsRepository = new ENodebBaseRepository(btsRepository);
 }
Exemplo n.º 55
0
 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)
     };
 }
Exemplo n.º 56
0
 protected SaveCdmaCellListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells)
 {
     _repository = repository;
     _cells = cells;
 }
Exemplo n.º 57
0
        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;
        }