Пример #1
0
 public TopDrop2GService(ITopDrop2GCellRepository repository, IBtsRepository btsRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _btsRepository = btsRepository;
     _eNodebRepository = eNodebRepository;
 }
Пример #2
0
 public EvaluationController(ITownRepository townRepository,
                             IENodebRepository eNodebRepository, ICellRepository cellRepositroy)
 {
     this.townRepository   = townRepository;
     this.eNodebRepository = eNodebRepository;
     cellRepository        = cellRepositroy;
 }
Пример #3
0
 public CollegeAlarmService(IInfrastructureRepository infrastructureRepository,
                            IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _infrastructureRepository = infrastructureRepository;
     _eNodebRepository         = eNodebRepository;
     _alarmRepository          = alarmRepository;
 }
Пример #4
0
 public CollegeCellViewService(IInfrastructureRepository repository, ICellRepository cellRepoistory,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepoistory;
     _eNodebRepository = eNodebRepository;
 }
Пример #5
0
 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;
 }
Пример #6
0
 public AlarmWorkItemService(IAlarmWorkItemRepository repository,
                             IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _cellRepository   = cellRepository;
 }
Пример #7
0
 public TopDrop2GService(ITopDrop2GCellRepository repository, IBtsRepository btsRepository,
                         IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _btsRepository    = btsRepository;
     _eNodebRepository = eNodebRepository;
 }
Пример #8
0
 public DumpDoubleFlowService(IENodebRepository eNodebRepository,
                              IDoubleFlowHuaweiRepository doubleFlowHuaweiRepository, IDoubleFlowZteRepository doubleFlowZteRepository)
 {
     _eNodebRepository           = eNodebRepository;
     _doubleFlowHuaweiRepository = doubleFlowHuaweiRepository;
     _doubleFlowZteRepository    = doubleFlowZteRepository;
 }
Пример #9
0
 public TownCoverageService(IENodebRepository eNodebRepository, ICoverageStatRepository statRepository,
                            ITownCoverageRepository townRepository)
 {
     _eNodebRepository = eNodebRepository;
     _statRepository   = statRepository;
     _townRepository   = townRepository;
 }
Пример #10
0
 public TopConnection3GService(ITopConnection3GRepository repository, IBtsRepository btsRepository,
                               IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _btsRepository    = btsRepository;
     _eNodebRepository = eNodebRepository;
 }
Пример #11
0
        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());
        }
Пример #12
0
 public TownSupportService(ITownRepository townRepository, ITownBoundaryRepository boundaryRepository,
                           IENodebRepository eNodebRepository)
 {
     _townRepository     = townRepository;
     _boundaryRepository = boundaryRepository;
     _eNodebRepository   = eNodebRepository;
 }
Пример #13
0
 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);
 }
Пример #15
0
 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> >();
     }
 }
Пример #16
0
 public TownRrcService(IENodebRepository eNodebRepository, IRrcHuaweiRepository rrcHuaweiRepository,
                       IRrcZteRepository rrcZteRepository)
 {
     _eNodebRepository    = eNodebRepository;
     _rrcHuaweiRepository = rrcHuaweiRepository;
     _rrcZteRepository    = rrcZteRepository;
 }
Пример #17
0
 public DumpPrbService(IENodebRepository eNodebRepository,
                       IPrbZteRepository prbZteRepository, IPrbHuaweiRepository prbHuaweiRepository)
 {
     _eNodebRepository    = eNodebRepository;
     _prbHuaweiRepository = prbHuaweiRepository;
     _prbZteRepository    = prbZteRepository;
 }
Пример #18
0
 public CollegeCellsService(IInfrastructureRepository repository, ICellRepository cellRepository,
                            IENodebRepository eNodebRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
Пример #19
0
 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;
 }
Пример #20
0
        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;
        }
Пример #21
0
 public CollegeAlarmService(IInfrastructureRepository infrastructureRepository,
     IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _infrastructureRepository = infrastructureRepository;
     _eNodebRepository = eNodebRepository;
     _alarmRepository = alarmRepository;
 }
Пример #22
0
 public BandCellService(ICellRepository repository, IENodebRepository eNodebRepository,
                        ITownRepository townRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _townRepository   = townRepository;
 }
Пример #23
0
 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;
 }
Пример #25
0
 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;
 }
Пример #26
0
 public CollegeENodebService(IInfrastructureRepository repository,
                             IENodebRepository eNodebRepository, IAlarmRepository alarmRepository)
 {
     _repository       = repository;
     _eNodebRepository = eNodebRepository;
     _alarmRepository  = alarmRepository;
 }
Пример #27
0
 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));
 }
Пример #28
0
 public TopConnection3GService(ITopConnection3GRepository 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 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);
        }
Пример #31
0
 public CollegeCellsController(IInfrastructureRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
 }
 public QuickSaveCellInfoListService(ICellRepository repository,
     IENodebRepository eNodebRepository)
     : base(repository)
 {
     _baseRepository = new CellBaseRepository(repository);
     _baseENodebRepository = new ENodebBaseRepository(eNodebRepository);
 }
Пример #33
0
 public College4GTestController(ICollege4GTestRepository repository,
     ICollegeRepository collegeRepository, IENodebRepository eNodebRepository, ICellRepository cellRepository)
 {
     _repository = repository;
     _collegeRepository = collegeRepository;
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
 }
Пример #34
0
        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);
        }
Пример #35
0
 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++);
 }
Пример #37
0
        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);
        }
Пример #38
0
 public RegionController(ITownRepository townRepository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, IRegionRepository regionRepository)
 {
     this.townRepository = townRepository;
     this.eNodebRepository = eNodebRepository;
     this.regionRepository = regionRepository;
     this.btsRepository = btsRepository;
 }
Пример #39
0
 public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository,
                    IStationDictionaryRepository stationDictionaryRepository)
 {
     _repository                  = repository;
     _eNodebRepository            = eNodebRepository;
     _rruRepository               = rruRepository;
     _stationDictionaryRepository = stationDictionaryRepository;
 }
Пример #40
0
        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);
        }
Пример #41
0
        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);
        }
Пример #42
0
 public CollegeAlarmController(ICollegeRepository repository, IInfrastructureRepository infrastructureRepository,
     IAlarmRepository alarmRepository, IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _infrastructureRepository = infrastructureRepository;
     _alarmRepository = alarmRepository;
     _eNodebRepository = eNodebRepository;
 }
Пример #43
0
 public ENodebQueryService(ITownRepository townRepository, IENodebRepository eNodebRepository,
                           IDistributionRepository distributionRepository, ITownBoundaryRepository boundaryRepository)
 {
     _townRepository         = townRepository;
     _eNodebRepository       = eNodebRepository;
     _distributionRepository = distributionRepository;
     _boundaryRepository     = boundaryRepository;
 }
Пример #44
0
        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);
        }
Пример #45
0
 public BasicImportService(IENodebRepository eNodebRepository, ICellRepository cellRepository,
     IBtsRepository btsRepository, ICdmaCellRepository cdmaCellRepository)
 {
     _eNodebRepository = eNodebRepository;
     _cellRepository = cellRepository;
     _btsRepository = btsRepository;
     _cdmaCellRepository = cdmaCellRepository;
 }
Пример #46
0
 public TopConnection3GController(
     ITopCellRepository<TopConnection3GCell> statRepository,
     IBtsRepository btsRepository,
     IENodebRepository eNodebRepository)
 {
     this.statRepository = statRepository;
     this.btsRepository = btsRepository;
     this.eNodebRepository = eNodebRepository;
 }
Пример #47
0
 public WorkItemService(IWorkItemRepository repository, IENodebRepository eNodebRepository,
     IBtsRepository btsRepository, ITownRepository townRepository, ICellRepository cellRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
     _btsRepository = btsRepository;
     _townRepository = townRepository;
     _cellRepository = cellRepository;
 }
Пример #48
0
 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;
 }
Пример #49
0
 public NearestPciCellService(INearestPciCellRepository repository, ICellRepository cellRepository,
     IENodebRepository eNodebRepository)
 {
     _repository = repository;
     _cellRepository = cellRepository;
     _eNodebRepository = eNodebRepository;
     if (NearestCells == null)
         NearestCells = new Stack<NearestPciCell>();
 }
Пример #50
0
 public SaveENodebListService(IENodebRepository repository,
     ParametersDumpInfrastructure infrastructure, ITownRepository townRepository)
 {
     _repository = repository;
     _baseRepository = new ENodebBaseRepository(repository);
     _townList = townRepository.GetAllList();
     _infrastructure = infrastructure;
     _infrastructure.ENodebsUpdated = 0;
 }
Пример #51
0
 public ByExcelInfoSaveBtsListService(IBtsRepository repository,
     ParametersDumpInfrastructure infrastructure, ITownRepository townRepository,
     IENodebRepository lteRepository = null)
 {
     _infrastructure = infrastructure;
     _townRepository = townRepository;
     _lteRepository = lteRepository;
     _repository = repository;
     _baseRepository = new ENodebBaseRepository(repository);
 }
Пример #52
0
 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;
 }
Пример #54
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;
 }
Пример #55
0
 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);
 }
Пример #56
0
 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>();
 }
Пример #57
0
 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
         });
     }
 }
Пример #58
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;
 }
Пример #59
0
 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);
     }
 }
Пример #60
0
 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;
 }