예제 #1
0
 public EntranceFacility(Building address, int lata, decimal custIndPerc, decimal custHybridIndPerc, decimal switchIndPerc,
     decimal ipNetIndPerc, decimal netOtherIndPerc, decimal noProdIndPerc, int sdpTrailNum, int lsefTrailNum,
     int hsefTrailNum, int nniTrailNum, decimal lsefUtil, decimal hsefUtil, decimal nniUtil,
     decimal lsefTrendSlope, decimal hsefTrendSlope, decimal nniTrendSlope)
 {
     this.Address = address;
     this.Lata = lata;
     this.CustIndPerc = custIndPerc;
     this.CustHybridIndPerc = custHybridIndPerc;
     this.SwitchIndPerc = switchIndPerc;
     this.IpNetIndPerc = ipNetIndPerc;
     this.NetOtherIndPerc = netOtherIndPerc;
     this.NoProdIndPerc = noProdIndPerc;
     this.NumTrails = sdpTrailNum;
     this.NumLowSpeedShared = lsefTrailNum;
     this.NumHighSpeedShared = hsefTrailNum;
     this.NumNni = nniTrailNum;
     this.LowSpeedSharedUtilization = lsefUtil;
     this.HighSpeedSharedUtilization = hsefUtil;
     this.NniUtilization = nniUtil;
     this.HsefTrending = this.NumHighSpeedShared == 0 ?
                         TrendSlope.NONE : hsefTrendSlope == 0 ?
                         TrendSlope.FLAT : hsefTrendSlope > 0 ? TrendSlope.UP : TrendSlope.DOWN;
     this.LsefTrending = this.NumLowSpeedShared == 0 ?
                         TrendSlope.NONE : lsefTrendSlope == 0 ?
                         TrendSlope.FLAT : lsefTrendSlope > 0 ? TrendSlope.UP : TrendSlope.DOWN;
     this.NniTrending = this.NumNni == 0 ?
                         TrendSlope.NONE : nniTrendSlope == 0 ?
                         TrendSlope.FLAT : nniTrendSlope > 0 ? TrendSlope.UP : TrendSlope.DOWN;
 }
예제 #2
0
 public EntranceFacility(
     Building address,
     string legacy,
     string trailName,
     int? rfaid,
     string vendor,
     string ecckt,
     bool highSpeed,
     int usedSlots,
     int totalSlots,
     int ranking,
     bool aOrdering
     )
 {
     this.Address = address;
         this.Legacy = legacy;
         this.TrailName = trailName;
         this.RFAID = rfaid;
         this.Vendor = vendor;
         this.ECCKT = ecckt;
         this.HighSpeed = highSpeed;
         this.UsedSlots = usedSlots;
         this.TotalSlots = totalSlots;
         this.Ranking = ranking;
         this.AOrdering = aOrdering;
 }
예제 #3
0
 public EntranceFacility(Building address, 
     int lata,
     decimal custIndPerc,
     decimal custHybridIndPerc,
     decimal switchIndPerc,
     decimal ipNetIndPerc,
     decimal netOtherIndPerc,
     decimal noProdIndPerc,
     int sdpTrailNum,
     int lsefTrailNum,
     int hsefTrailNum,
     int nniTrailNum,
     decimal lsefUtil,
     decimal hsefUtil,
     decimal nniUtil,
     string nodeName,
     string lifecycleStatus,
     string facilityType,
     string recordOwner,
     string primaryHomingGateway,
     string ilecClli,
     decimal lsefTrendSlope,
     decimal hsefTrendSlope,
     decimal nniTrendSlope)
     : this(address, lata, custIndPerc, custHybridIndPerc, switchIndPerc, ipNetIndPerc, netOtherIndPerc, noProdIndPerc,
                 sdpTrailNum, lsefTrailNum, hsefTrailNum, nniTrailNum, lsefUtil, hsefUtil, nniUtil, lsefTrendSlope, hsefTrendSlope, nniTrendSlope)
 {
     this.IlecColo = new IlecColo(nodeName, lifecycleStatus, facilityType, recordOwner, primaryHomingGateway, ilecClli);
 }
예제 #4
0
        public IList<Building> getBuildingCllis(string search)
        {
            IList<Building> clliCodes = new List<Building>();
            try {
                var c = (from clli in dc.GetTable<ADDRESSES_VW>()
                             where clli.AddressCLLI != null
                                && clli.Zside_Latitude != null
                                && clli.Zside_Longitude != null
                                && clli.AddressCLLI.StartsWith(search)
                             select clli).Distinct().OrderBy(a => a.AddressCLLI).ToList();
                string clliString = "";
                foreach(var a in c) {
                    if (!a.AddressCLLI.Equals(clliString)) {
                        Building b = new Building(a.AddressId);
                        b.City = a.Zside_City;
                        b.CLLI = a.AddressCLLI;
                        b.Country = a.Zside_Country;
                        b.LatLng = new LatLng((decimal)a.Zside_Latitude, (decimal)a.Zside_Longitude);
                        b.PostalCode = a.Zside_PostalCode;
                        b.Premise = a.Zside_Premise;
                        b.State = a.Zside_State;
                        b.Street = a.Zside_Street;

                        clliCodes.Add(b);
                        clliString = a.AddressCLLI;
                    }
                }
            } catch (SqlException se) {
                MainFactory.getLogSvc().logError("Index", MainFactory.getCurrentMethod(), "gbc-01", se.Message + "\n" + se.StackTrace);
            }
            return clliCodes;
        }