Ejemplo n.º 1
0
        public TownENodebStat(Town town, IEnumerable<ENodeb> eNodebs, IRegionRepository regionRepository)
        {
            town.CloneProperties(this);
            TownId = town.Id;

            QueryRegionService service = new ByDistrictQueryRegionService(
                regionRepository.GetAll(), town.CityName, town.DistrictName);
            OptimizeRegion region = service.Query();
            RegionName = (region == null) ? "" : region.Region;
            TotalENodebs = eNodebs.Count(x => x.TownId == TownId);
        }
Ejemplo n.º 2
0
 private int GetMatchedTownId(BtsExcel btsExcel, Town town)
 {
     return (btsExcel.DistrictName == town.DistrictName && btsExcel.TownName == town.TownName) ? town.Id : -1;
 }