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);
        }
예제 #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;
 }
예제 #5
0
 public CollegeCdmaCellViewService(IInfrastructureRepository repository, ICdmaCellRepository cellRepository,
     IBtsRepository btsRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
 }
예제 #6
0
 public MmlDumpRepository(IBtsRepository btsRepository,
                          ICdmaCellRepository cdmaCellRepository, ParametersDumpInfrastructure infrastructure)
 {
     this.btsRepository      = btsRepository;
     this.cdmaCellRepository = cdmaCellRepository;
     this.infrastructure     = infrastructure;
 }
예제 #7
0
 public ByENodebQuickSaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellBaseRepository baseRepository,
     CdmaCellExcel cellInfo, ENodebBaseRepository eNodebRepository)
     : base(repository, baseRepository, cellInfo)
 {
     _eNodeb = eNodebRepository.QueryENodeb(cellInfo.BtsId);
 }
예제 #8
0
 protected QuickSaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellBaseRepository baseRepository,
     CdmaCellExcel cellInfo)
     : base(repository, cellInfo)
 {
     _baseRepository = baseRepository;
 }
예제 #9
0
 public CollegeCdmaCellViewService(IHotSpotCdmaCellRepository repository, ICdmaCellRepository cellRepository,
                                   IBtsRepository btsRepository)
 {
     _repository     = repository;
     _cellRepository = cellRepository;
     _btsRepository  = btsRepository;
 }
예제 #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);
 }
예제 #14
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
                           IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository   = eNodebRepository;
     _cellRepository     = cellRepository;
     _btsRepository      = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
예제 #15
0
 public CdmaCellBaseRepository(ICdmaCellRepository inputRepository)
 {
     cellBaseList.Clear();
     foreach (CdmaCell cell in inputRepository.GetAllList())
     {
         cellBaseList.Add(new CdmaCellBase(cell));
     }
 }
예제 #16
0
 public CdmaCellBaseRepository(ICdmaCellRepository inputRepository)
 {
     cellBaseList.Clear();
     foreach (CdmaCell cell in inputRepository.GetAllList())
     {
         cellBaseList.Add(new CdmaCellBase(cell));
     }
 }
예제 #17
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
 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();
 }
예제 #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());
        }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
        }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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
     };
 }
예제 #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();
        }
예제 #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;
 }
예제 #37
0
 public CdmaCellDumpService(ICdmaCellRepository cellRepository, ICdmaRruRepository rruRepository)
 {
     _cellRepository = cellRepository;
     _rruRepository  = rruRepository;
 }
예제 #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();
 }
예제 #39
0
 public CdmaCellService(ICdmaCellRepository repository, IBtsRepository btsRepository)
 {
     _repository = repository;
     _btsRepository = btsRepository;
 }
예제 #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));
 }
예제 #41
0
 protected SaveCdmaCellListService(ICdmaCellRepository repository,
                                   IEnumerable <CdmaCell> cells)
 {
     _repository = repository;
     _cells      = cells;
 }
 public ByBtsListQueryOutdoorCellService(ICdmaCellRepository repository, IEnumerable <CdmaBts> btss)
     : base(repository)
 {
     _btss = btss;
 }
예제 #43
0
 public SimpleSaveCdmaCellListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells)
     : base(repository, cells)
 {
 }
예제 #44
0
 public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCellExcel> cellInfoList, IBtsRepository btsRepository)
     : base(repository, cellInfoList)
 {
     _btsBaseRepository = new ENodebBaseRepository(btsRepository);
 }
예제 #45
0
 protected SaveCdmaCellInfoListService(ICdmaCellRepository repository,
                                       IEnumerable <CdmaCellExcel> cellInfoList)
 {
     _repository   = repository;
     _cellInfoList = cellInfoList;
 }
예제 #46
0
 protected SaveCdmaCellInfoListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCellExcel> cellInfoList)
 {
     _repository = repository;
     _cellInfoList = cellInfoList;
 }
예제 #47
0
 public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository,
                                         IEnumerable <CdmaCell> cells, IBtsRepository btsRepository)
     : base(repository, cells)
 {
     _baseBtsRepository = new ENodebBaseRepository(btsRepository);
 }
예제 #48
0
 public CdmaCellController(ICdmaCellRepository repository)
 {
     _repository = repository;
 }
예제 #49
0
 protected SaveOneCdmaCellService(ICdmaCellRepository repository,
     CdmaCellExcel cellInfo)
 {
     _repository = repository;
     _cellInfo = cellInfo;
 }
예제 #50
0
 public CdmaCellDumpService(ICdmaCellRepository cellRepository, ICdmaRruRepository rruRepository)
 {
     _cellRepository = cellRepository;
     _rruRepository = rruRepository;
 }
예제 #51
0
 public SimpleSaveCdmaCellInfoListService(ICdmaCellRepository repository,
                                          IEnumerable <CdmaCellExcel> cellInfoList, IBtsRepository btsRepository)
     : base(repository, cellInfoList)
 {
     _btsBaseRepository = new ENodebBaseRepository(btsRepository);
 }
예제 #52
0
 public SimpleSaveCdmaCellListService(ICdmaCellRepository repository,
                                      IEnumerable <CdmaCell> cells)
     : base(repository, cells)
 {
 }
예제 #53
0
 public CollegeCdmaCellsController(IInfrastructureRepository repository, ICdmaCellRepository cellRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
 }
예제 #54
0
 public BtsConsideredSaveCdmaListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells, IBtsRepository btsRepository)
     : base(repository, cells)
 {
     _baseBtsRepository = new ENodebBaseRepository(btsRepository);
 }
예제 #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)
     };
 }
예제 #56
0
 protected SaveCdmaCellListService(ICdmaCellRepository repository,
     IEnumerable<CdmaCell> cells)
 {
     _repository = repository;
     _cells = cells;
 }
예제 #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;
        }