Esempio n. 1
0
 public IEnumerable<CdmaBtsView> QueryBtsViews(ENodebRangeContainer container)
 {
     var btss =
         _btsRepository.GetAllList(container.West, container.East, container.South, container.North)
             .Where(x => x.IsInUse)
             .ToList();
     var excludedBtss = from bts in btss
                           join id in container.ExcludedIds on bts.BtsId equals id
                           select bts;
     btss = btss.Except(excludedBtss).ToList();
     return btss.Any() ? btss.MapTo<IEnumerable<CdmaBtsView>>() : new List<CdmaBtsView>();
 }
Esempio n. 2
0
 public IEnumerable<ENodebView> QueryENodebViews(ENodebRangeContainer container)
 {
     var eNodebs =
         _eNodebRepository.GetAllList(container.West, container.East, container.South, container.North)
             .Where(x => x.IsInUse)
             .ToList();
     var excludedENodebs = from eNodeb in eNodebs
         join id in container.ExcludedIds on eNodeb.ENodebId equals id
         select eNodeb;
     eNodebs = eNodebs.Except(excludedENodebs).ToList();
     return eNodebs.Any() ? eNodebs.MapTo<IEnumerable<ENodebView>>() : new List<ENodebView>();
 } 
Esempio n. 3
0
        public IEnumerable <CdmaBtsView> QueryBtsViews(ENodebRangeContainer container)
        {
            var btss =
                _btsRepository.GetAllList(container.West, container.East, container.South, container.North)
                .Where(x => x.IsInUse)
                .ToList();
            var excludedBtss = from bts in btss
                               join id in container.ExcludedIds on bts.BtsId equals id
                               select bts;

            btss = btss.Except(excludedBtss).ToList();
            return(btss.Any() ? btss.MapTo <IEnumerable <CdmaBtsView> >() : new List <CdmaBtsView>());
        }
Esempio n. 4
0
        public IEnumerable <ENodebView> QueryENodebViews(ENodebRangeContainer container)
        {
            var eNodebs =
                _eNodebRepository.GetAllList(x => x.Longtitute >= container.West && x.Longtitute <= container.East &&
                                             x.Lattitute >= container.South && x.Lattitute <= container.North)
                .Where(x => x.IsInUse)
                .ToList();
            var excludedENodebs = from eNodeb in eNodebs
                                  join id in container.ExcludedIds on eNodeb.ENodebId equals id
                                  select eNodeb;

            eNodebs = eNodebs.Except(excludedENodebs).ToList();
            return(eNodebs.Any() ? eNodebs.MapTo <IEnumerable <ENodebView> >() : new List <ENodebView>());
        }
Esempio n. 5
0
 public IEnumerable<ENodebView> Post(ENodebRangeContainer container)
 {
     return _service.QueryENodebViews(container);
 }
Esempio n. 6
0
 public IEnumerable <ENodebView> Post(ENodebRangeContainer container)
 {
     return(_service.QueryENodebViews(container));
 }