Ejemplo n.º 1
0
 public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository,
                    IStationDictionaryRepository stationDictionaryRepository)
 {
     _repository                  = repository;
     _eNodebRepository            = eNodebRepository;
     _rruRepository               = rruRepository;
     _stationDictionaryRepository = stationDictionaryRepository;
 }
Ejemplo n.º 2
0
 public CollegeCellViewService(IHotSpotCellRepository repository, ICellRepository cellRepoistory,
                               IENodebRepository eNodebRepository, ILteRruRepository rruRepository)
 {
     _repository       = repository;
     _cellRepository   = cellRepoistory;
     _eNodebRepository = eNodebRepository;
     _rruRepository    = rruRepository;
 }
Ejemplo n.º 3
0
        public StationImportService(IDistributionRepository distributionRepository,
                                    IENodebBaseRepository eNodebBaseRepository, IENodebRepository eNodebRepository,
                                    IConstructionInformationRepository constructionInformation, IStationRruRepository stationRruRepository,
                                    IStationAntennaRepository stationAntennaRepository, IStationDictionaryRepository stationDictionary,
                                    ITownRepository townRepository, ICellRepository cellRepository, ILteRruRepository rruRepository)
        {
            _distributionRepository   = distributionRepository;
            _constructionInformation  = constructionInformation;
            _stationRruRepository     = stationRruRepository;
            _stationAntennaRepository = stationAntennaRepository;
            _eNodebBaseRepository     = eNodebBaseRepository;
            _eNodebRepository         = eNodebRepository;
            _stationDictionary        = stationDictionary;
            _townRepository           = townRepository;
            _cellRepository           = cellRepository;
            _rruRepository            = rruRepository;

            if (Stations == null)
            {
                Stations = new Stack <StationDictionaryExcel>();
            }
            if (ENodebBases == null)
            {
                ENodebBases = new Stack <ENodebBaseExcel>();
            }
            if (StationCells == null)
            {
                StationCells = new Stack <ConstructionExcel>();
            }
            if (StationRrus == null)
            {
                StationRrus = new Stack <StationRruExcel>();
            }
            if (StationAntennas == null)
            {
                StationAntennas = new Stack <StationAntennaExcel>();
            }
            if (StationDistributions == null)
            {
                StationDistributions = new Stack <IndoorDistributionExcel>();
            }
            if (Towns == null)
            {
                Towns = _townRepository.GetAllList();
            }
        }
Ejemplo n.º 4
0
        public static CellRruView ConstructCellRruView(this Cell cell, IENodebRepository repository, ILteRruRepository rruRepository)
        {
            var view   = Mapper.Map <Cell, CellRruView>(cell);
            var eNodeb = repository.FirstOrDefault(x => x.ENodebId == cell.ENodebId);

            view.ENodebName = eNodeb?.Name;
            var rru =
                rruRepository.FirstOrDefault(x => x.ENodebId == cell.ENodebId && x.LocalSectorId == cell.LocalSectorId);

            rru?.MapTo(view);
            return(view);
        }
Ejemplo n.º 5
0
 public CellDumpService(IBtsRepository btsRepository, ICellRepository cellRepository, ILteRruRepository rruRepository)
 {
     _btsRepository  = btsRepository;
     _cellRepository = cellRepository;
     _rruRepository  = rruRepository;
 }
Ejemplo n.º 6
0
 public CellService(ICellRepository repository, IENodebRepository eNodebRepository, ILteRruRepository rruRepository)
 {
     _repository = repository;
     _eNodebRepository = eNodebRepository;
     _rruRepository = rruRepository;
 }