)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Skip Navigation LinksHome » Code Library » SubParty

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

SubParty Entity Framework class for Optical Fiber Network (OFN) ui model.

    1: using System;
    2: using System.Text;
    3:  
    4: namespace Ia.Ngn.Cl.Model.Ui.Nokia
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// SubParty Entity Framework class for Optical Fiber Network (OFN) ui model.
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright � 2014-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     ///
   15:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   16:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   17:     ///
   18:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   19:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   20:     /// 
   21:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   22:     /// 
   23:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   24:     /// </remarks> 
   25:     public class SubParty
   26:     {
   27:         ////////////////////////////////////////////////////////////////////////////
   28:  
   29:         /// <summary>
   30:         ///
   31:         /// </summary>
   32:         public SubParty() { }
   33:  
   34:         ////////////////////////////////////////////////////////////////////////////
   35:  
   36:         /// <summary>
   37:         ///
   38:         /// </summary>
   39:         public string Id { get; set; }
   40:  
   41:         ////////////////////////////////////////////////////////////////////////////
   42:  
   43:         /// <summary>
   44:         ///
   45:         /// </summary>
   46:         public string PartyId { get; set; }
   47:  
   48:         ////////////////////////////////////////////////////////////////////////////
   49:  
   50:         /// <summary>
   51:         ///
   52:         /// </summary>
   53:         public int PrimaryPUIDCPEProfileNumber { get; set; }
   54:  
   55:         ////////////////////////////////////////////////////////////////////////////
   56:  
   57:         /// <summary>
   58:         ///
   59:         /// </summary>
   60:         public string DisplayName { get; set; }
   61:  
   62:         ////////////////////////////////////////////////////////////////////////////
   63:  
   64:         /// <summary>
   65:         ///
   66:         /// </summary>
   67:         public string Category { get; set; }
   68:  
   69:         ////////////////////////////////////////////////////////////////////////////
   70:  
   71:         /// <summary>
   72:         ///
   73:         /// </summary>
   74:         public string AssocOtasRealm { get; set; }
   75:  
   76:         ////////////////////////////////////////////////////////////////////////////
   77:  
   78:         /// <summary>
   79:         ///
   80:         /// </summary>
   81:         public bool ServiceSuspension { get; set; }
   82:  
   83:         ////////////////////////////////////////////////////////////////////////////
   84:  
   85:         /// <summary>
   86:         ///
   87:         /// </summary>
   88:         public DateTime Created { get; set; }
   89:  
   90:         ////////////////////////////////////////////////////////////////////////////
   91:  
   92:         /// <summary>
   93:         ///
   94:         /// </summary>
   95:         public DateTime Updated { get; set; }
   96:  
   97:         ////////////////////////////////////////////////////////////////////////////
   98:         ////////////////////////////////////////////////////////////////////////////
   99:  
  100:         /// <summary>
  101:         ///
  102:         /// </summary>
  103:         public string ToSimpleTextString()
  104:         {
  105:             StringBuilder sb;
  106:  
  107:             sb = new StringBuilder();
  108:  
  109:             //sb.AppendLine("Vendor: " + Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Nokia.Name);
  110:             sb.AppendLine("PartyId: " + this.PartyId);
  111:             sb.AppendLine("SIP?: " + Ia.Cl.Model.Default.YesNoText(Ia.Ngn.Cl.Model.Business.Nokia.SubParty.IsSip(this.PrimaryPUIDCPEProfileNumber)));
  112:             sb.AppendLine("DisplayName: " + this.DisplayName);
  113:             sb.AppendLine("Category: " + this.Category);
  114:             //sb.AppendLine("AssocOtasRealm: " + this.AssocOtasRealm);
  115:             sb.AppendLine("ServiceSuspension: " + Ia.Cl.Model.Default.YesNoText(this.ServiceSuspension));
  116:  
  117:             return sb.ToString();
  118:         }
  119:  
  120:         ////////////////////////////////////////////////////////////////////////////
  121:         ////////////////////////////////////////////////////////////////////////////
  122:     }
  123:  
  124:     ////////////////////////////////////////////////////////////////////////////
  125:     ////////////////////////////////////////////////////////////////////////////
  126: }