public IEnumerable <StationCellView> QueryConstructionInformations(string searchTxt, double west, double east, double south, double north, string district, string town) { var btsList = _eNodebBaseRepository.GetAllList( x => x.Longtitute > west && x.Longtitute <east && x.Lattitute> south && x.Lattitute < north); return(QueryConstructionViews(searchTxt, district, town, btsList)); }
public IEnumerable <ENodebBaseView> QueryENodebBases(string searchText) { return(string.IsNullOrEmpty(searchText) ? new List <ENodebBaseView>() : _repository.GetAllList( x => (x.ENodebName.Contains(searchText) || x.ENodebSerial.Contains(searchText) || x.ProjectSerial.Contains(searchText) || x.StationNum.Contains(searchText) || x.StationName.Contains(searchText)) && x.IsInUse) .MapTo <IEnumerable <ENodebBaseView> >()); }
public IEnumerable <ConstructionView> QueryByStationNum(string stationNum) { var eNodebs = _baseRepository.GetAllList(x => x.StationNum == stationNum && x.IsInUse); return(eNodebs.Any() ? eNodebs.Select(x => _repository.GetAllList(c => c.ENodebId == x.ENodebId)) .Aggregate((a, b) => a.Concat(b).ToList()).MapTo <IEnumerable <ConstructionView> >() : new List <ConstructionView>()); }
public IEnumerable <IndoorDistributionView> QueryByStationNum(string stationNum) { var eNodebs = _eNodebBaseRepository.GetAllList(x => x.StationNum == stationNum); if (!eNodebs.Any()) { return(new List <IndoorDistributionView>()); } var cells = eNodebs.Select(x => _cellRepository.GetAllList(c => c.ENodebId == x.ENodebId && c.IndoorDistributionSerial != null)) .Aggregate((a, b) => a.Concat(b).ToList()); return(cells.Any() ? cells.Select(c => _repository.GetAllList(x => x.CellSerialNum == c.CellSerialNum && x.IsInUse)) .Aggregate((a, b) => a.Concat(b).ToList()).MapTo <IEnumerable <IndoorDistributionView> >() : new List <IndoorDistributionView>()); }