예제 #1
0
 public static string GetDropType(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetPairAssignment().DropType;
         case FacilityType.FiberFacility: return args.GetFiberPlantData().DropType;
         default: return string.Empty;
     }
 }
예제 #2
0
 public static string GetCustomerPremisePhoneNumber(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetPairAssignment().LineCardTN;
         case FacilityType.FiberFacility: return args.GetTelephoneNumber();
         default: return string.Empty;
     }
 }
예제 #3
0
 public static string GetCustomerPremiseMaxDataSpeed(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetCopperPlantData().MaxAttainableSpeed;
         case FacilityType.FiberFacility: return args.GetFiberPlantData().MaxAttainableSpeed;
         default: return string.Empty;
     }
 }
예제 #4
0
 public static string GetOltDestinationId(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().DestinationId;
 }
예제 #5
0
 public static string GetFiberTerminalPortNumber(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().TerminalPort;
 }
예제 #6
0
 public static string GetFiberTerminalAddress(FacilityDataRetrievalArgument args)
 {
     return GetTerminalAddress(args.GetFiberPlantData().TerminalAddress);
 }
예제 #7
0
 public static string GetDslamHsiPort(FacilityDataRetrievalArgument args)
 {
     return args.GetPairAssignment().HsiPort;
 }
예제 #8
0
 public static string GetCustomerPremiseDataSpeed(FacilityDataRetrievalArgument args)
 {
     return args.GetProvisionedSpeed();
 }
예제 #9
0
 public static string GetOntVoiceSourceId(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().VoiceSourceId;
 }
예제 #10
0
        public static string GetOntUnitAddress(FacilityDataRetrievalArgument args)
        {
            var assignment = new OntPortAssignmentsDto().Assignment;
            if (args.GetFiberPlantData().OntPortAssignments != null)
            {
                assignment = (args.GetFiberPlantData().OntPortAssignments.FirstOrDefault() ?? new OntPortAssignmentsDto()).Assignment;
            }

            return GetUnderscoreSeparatedValueByIndex(assignment, 0);
        }
예제 #11
0
 public static string GetOntSerialNumber(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().ONTSerialNumber;
 }
예제 #12
0
 public static string GetCopperTerminalDropType(FacilityDataRetrievalArgument args)
 {
     return args.GetPairAssignment().DropType;
 }
예제 #13
0
 public static string GetOntModel(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().ONTModel;
 }
예제 #14
0
 public static string GetOntDataProvisioning(FacilityDataRetrievalArgument args)
 {
     if (args.GetFiberPlantData().OntPortAssignments == null)
     {
         return new OntPortAssignmentsDto().PortType;
     }
     else
     {
         return (args.GetFiberPlantData().OntPortAssignments.FirstOrDefault() ?? new OntPortAssignmentsDto()).PortType;
     }
 }
예제 #15
0
 public static string GetOltOfficeCode(FacilityDataRetrievalArgument args)
 {
     return GetUnderscoreSeparatedValueByIndex(args.GetFiberPlantData().CentralOfficeCode, 0);
 }
예제 #16
0
 public static string GetTerminalCableSegment(FacilityDataRetrievalArgument args)
 {
     return args.GetTerminalAssignment().CableSegment;
 }
예제 #17
0
 public static string GetTerminalId(FacilityDataRetrievalArgument args)
 {
     return args.GetTerminalAssignment().TerminalName;
 }
예제 #18
0
 public static string GetPreviousTerminal(FacilityDataRetrievalArgument args)
 {
     return args.GetTerminalAssignment().PreviousTerminal;
 }
예제 #19
0
        public static string GetVpiVci(FacilityDataRetrievalArgument args)
        {
            var assignment = args.GetPairAssignment();

            switch (args.GetFacilityType())
            {
                case FacilityType.CopperFacility: return string.Format("{0}/{1}", assignment.VPI, assignment.VCI);
                case FacilityType.FiberFacility:
                {
                    var portAssignment = new OntPortAssignmentsDto().Assignment;
                    if (args.GetFiberPlantData().OntPortAssignments != null)
                    {
                        portAssignment = (args.GetFiberPlantData().OntPortAssignments.FirstOrDefault()
                                           ?? new OntPortAssignmentsDto()).Assignment;
                    }
                    return GetUnderscoreSeparatedValueByIndex(portAssignment, 1);
                }
                default: return string.Empty;
            }
        }
예제 #20
0
 public static string GetSwitchLrn(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetCopperPlantData().SwitchLrn;
         case FacilityType.FiberFacility: return args.GetFiberPlantData().SwitchLrn;
         default: return string.Empty;
     }
 }
예제 #21
0
 public static string GetCustomerPremiseAddress(FacilityDataRetrievalArgument args)
 {
     return GetAddress(args.GetServiceAddress());
 }
예제 #22
0
 public static string GetSwitchOfficeCode(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetCopperPlantData().SwitchOfficeCode;
         case FacilityType.FiberFacility: return GetUnderscoreSeparatedValueByIndex(args.GetFiberPlantData().CentralOfficeCode, 0);
         default: return string.Empty;
     }
 }
예제 #23
0
 public static string GetDslamClli(FacilityDataRetrievalArgument args)
 {
     return args.GetCopperPlantData().DslamClli;
 }
예제 #24
0
 public static string GetTerminalAddress(FacilityDataRetrievalArgument args)
 {
     return GetTerminalAddress(args.GetTerminalAssignment().TerminalAddress);
 }
예제 #25
0
 public static string GetDslamOfficeCode(FacilityDataRetrievalArgument args)
 {
     return args.GetCopperPlantData().DslamOfficeCode;
 }
예제 #26
0
 public static string GetTerminalBindingPost(FacilityDataRetrievalArgument args)
 {
     return args.GetTerminalAssignment().ToBindingPost;
 }
예제 #27
0
 public static string GetFiberTerminalDropType(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().DropType;
 }
예제 #28
0
        public static string GetTerminalCablePair(FacilityDataRetrievalArgument args)
        {
            var terminal = args.GetTerminalAssignment();

            return string.Format("{0}/{1}", terminal.CableName, terminal.PairNumber);
        }
예제 #29
0
 public static string GetGwrClli(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return GetUnderscoreSeparatedValueByIndex(args.GetCopperPlantData().ServiceRouterClli, 0);
         case FacilityType.FiberFacility: return GetUnderscoreSeparatedValueByIndex(args.GetFiberPlantData().ServiceRouterClli, 0);
         default: return string.Empty;
     }
 }
예제 #30
0
 public static string GetOltClli(FacilityDataRetrievalArgument args)
 {
     return args.GetFiberPlantData().OltClli;
 }