)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » ServiceRequestOnt (Ia.Ftn.Cl.Models.Business)

Public general use code classes and xml files that we've compiled and used over the years:

Service Request Ont support class of Fixed Telecommunications Network (FTN) business model.

    1:  
    2: using System;
    3:  
    4: namespace Ia.Ftn.Cl.Models.Business
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// Service Request Ont support class of Fixed Telecommunications Network (FTN) business model.
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright © 2006-2022 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     /// </remarks> 
   15:     public class ServiceRequestOnt
   16:     {
   17:         /// <summary/>
   18:         public static string IsolatedOltId = "00000"; // note oltId is network-site-router-odf-olt number
   19:  
   20:         /// <summary/>
   21:         public ServiceRequestOnt() { }
   22:  
   23:         ////////////////////////////////////////////////////////////////////////////
   24:  
   25:         /// <summary>
   26:         ///
   27:         /// </summary>
   28:         public static string ServiceRequestOntId(string accessId)
   29:         {
   30:  
   31:             return accessId;
   32:         }
   33:  
   34:         ////////////////////////////////////////////////////////////////////////////
   35:  
   36:         /// <summary>
   37:         ///
   38:         /// </summary>
   39:         public static string ServiceRequestOntId(int oltId, int ponNumber, int ontNumber)
   40:         {
   41:             var id = Ia.Ftn.Cl.Models.Business.Access.AccessId(oltId, ponNumber, ontNumber);
   42:  
   43:             return id;
   44:         }
   45:  
   46:         ////////////////////////////////////////////////////////////////////////////
   47:  
   48:         /// <summary>
   49:         ///
   50:         /// </summary>
   51:         public static string ServiceRequestOntIsolatedId(string areaSymbol, int ponNumber, int ontNumber)
   52:         {
   53:             var id = Ia.Ftn.Cl.Models.Business.ServiceRequestOnt.IsolatedOltId + areaSymbol.ToLower() + ponNumber.ToString().PadLeft(4, '0') + ontNumber.ToString().PadLeft(3, '0');
   54:  
   55:             return id;
   56:         }
   57:  
   58:         ////////////////////////////////////////////////////////////////////////////    
   59:         ////////////////////////////////////////////////////////////////////////////    
   60:     }
   61:  
   62:     ////////////////////////////////////////////////////////////////////////////
   63:     ////////////////////////////////////////////////////////////////////////////
   64: }