شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » EmsOnt

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

Huawei's EMS Ont Entity Framework class for Next Generation Network (NGN) UI model.

   1:  using System;
   2:  using System.ComponentModel.DataAnnotations.Schema;
   3:  using System.Text;
   4:   
   5:  namespace Ia.Ngn.Cl.Model.Ui.Huawei
   6:  {
   7:      ////////////////////////////////////////////////////////////////////////////
   8:   
   9:      /// <summary publish="true">
  10:      /// Huawei's EMS Ont Entity Framework class for Next Generation Network (NGN) UI model.
  11:      /// </summary>
  12:      /// 
  13:      /// <remarks> 
  14:      /// Copyright © 2006-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  15:      ///
  16:      /// 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
  17:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  18:      ///
  19:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  20:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  21:      /// 
  22:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  23:      /// 
  24:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  25:      /// </remarks> 
  26:      public partial class EmsOnt
  27:      {
  28:          ////////////////////////////////////////////////////////////////////////////
  29:   
  30:          /// <summary>
  31:          ///
  32:          /// </summary>
  33:          public EmsOnt() { }
  34:   
  35:          ////////////////////////////////////////////////////////////////////////////
  36:   
  37:          /// <summary>
  38:          ///
  39:          /// </summary>
  40:          public string Id { get; set; }
  41:   
  42:          ////////////////////////////////////////////////////////////////////////////
  43:   
  44:          /// <summary>
  45:          ///
  46:          /// </summary>
  47:          public int DID { get; set; }
  48:   
  49:          ////////////////////////////////////////////////////////////////////////////
  50:   
  51:          /// <summary>
  52:          ///
  53:          /// </summary>
  54:          public int FN { get; set; }
  55:   
  56:          ////////////////////////////////////////////////////////////////////////////
  57:   
  58:          /// <summary>
  59:          ///
  60:          /// </summary>
  61:          public int SN { get; set; }
  62:   
  63:          ////////////////////////////////////////////////////////////////////////////
  64:   
  65:          /// <summary>
  66:          ///
  67:          /// </summary>
  68:          public int PN { get; set; }
  69:   
  70:          ////////////////////////////////////////////////////////////////////////////
  71:   
  72:          /// <summary>
  73:          ///
  74:          /// </summary>
  75:          public int ONTID { get; set; }
  76:   
  77:          ////////////////////////////////////////////////////////////////////////////
  78:   
  79:          /// <summary>
  80:          ///
  81:          /// </summary>
  82:          public string NAME { get; set; }
  83:   
  84:          ////////////////////////////////////////////////////////////////////////////
  85:   
  86:          /// <summary>
  87:          ///
  88:          /// </summary>
  89:          public string ALIAS { get; set; }
  90:   
  91:          ////////////////////////////////////////////////////////////////////////////
  92:   
  93:          /// <summary>
  94:          ///
  95:          /// </summary>
  96:          public string CAPABPROF { get; set; }
  97:   
  98:          ////////////////////////////////////////////////////////////////////////////
  99:   
 100:          /// <summary>
 101:          ///
 102:          /// </summary>
 103:          public string VENDORID { get; set; }
 104:   
 105:          ////////////////////////////////////////////////////////////////////////////
 106:   
 107:          /// <summary>
 108:          ///
 109:          /// </summary>
 110:          public string EQUIPMENTID { get; set; }
 111:   
 112:          ////////////////////////////////////////////////////////////////////////////
 113:   
 114:          /// <summary>
 115:          ///
 116:          /// </summary>
 117:          public string MAINSOFTVERSION { get; set; }
 118:   
 119:          ////////////////////////////////////////////////////////////////////////////
 120:   
 121:          /// <summary>
 122:          ///
 123:          /// </summary>
 124:          public string AUTH { get; set; }
 125:   
 126:          ////////////////////////////////////////////////////////////////////////////
 127:   
 128:          /// <summary>
 129:          ///
 130:          /// </summary>
 131:          public string SERIALNUM { get; set; }
 132:   
 133:          ////////////////////////////////////////////////////////////////////////////
 134:   
 135:          /// <summary>
 136:          ///
 137:          /// </summary>
 138:          public string DEV { get; set; }
 139:   
 140:          ////////////////////////////////////////////////////////////////////////////
 141:   
 142:          /// <summary>
 143:          ///
 144:          /// </summary>
 145:          public int VLAN { get; set; }
 146:   
 147:          ////////////////////////////////////////////////////////////////////////////
 148:   
 149:          /// <summary>
 150:          ///
 151:          /// </summary>
 152:          public string IP { get; set; }
 153:   
 154:          ////////////////////////////////////////////////////////////////////////////
 155:   
 156:          /// <summary>
 157:          ///
 158:          /// </summary>
 159:          public string GATE { get; set; }
 160:   
 161:          ////////////////////////////////////////////////////////////////////////////
 162:   
 163:          /// <summary>
 164:          ///
 165:          /// </summary>
 166:          public string ROUTEIP { get; set; }
 167:   
 168:          ////////////////////////////////////////////////////////////////////////////
 169:   
 170:          /// <summary>
 171:          ///
 172:          /// </summary>
 173:          public string VAPROF { get; set; }
 174:   
 175:          ////////////////////////////////////////////////////////////////////////////
 176:   
 177:          /// <summary>
 178:          ///
 179:          /// </summary>
 180:          public DateTime Created { get; set; }
 181:   
 182:          ////////////////////////////////////////////////////////////////////////////
 183:   
 184:          /// <summary>
 185:          ///
 186:          /// </summary>
 187:          public DateTime Updated { get; set; }
 188:   
 189:          ////////////////////////////////////////////////////////////////////////////
 190:   
 191:          /// <summary>
 192:          ///
 193:          /// </summary>
 194:          public virtual Ia.Ngn.Cl.Model.Access Access { get; set; }
 195:   
 196:          ////////////////////////////////////////////////////////////////////////////
 197:   
 198:          /// <summary>
 199:          ///
 200:          /// </summary>
 201:          [NotMapped]
 202:          public Ia.Ngn.Cl.Model.Business.Huawei.Ont.EquipmentType EquipmentType
 203:          {
 204:              get
 205:              {
 206:                  return Ia.Ngn.Cl.Model.Business.Huawei.Ont.EquipmentTypeFromString(this.EQUIPMENTID);
 207:              }
 208:          }
 209:   
 210:          ////////////////////////////////////////////////////////////////////////////
 211:   
 212:          /// <summary>
 213:          ///
 214:          /// </summary>
 215:          [NotMapped]
 216:          public Ia.Ngn.Cl.Model.Business.Huawei.Ont.FamilyType FamilyType
 217:          {
 218:              get
 219:              {
 220:                  return Ia.Ngn.Cl.Model.Business.Huawei.Ont.FamilyTypeFromEquipmentType(this.EquipmentType);
 221:              }
 222:          }
 223:   
 224:          ////////////////////////////////////////////////////////////////////////////
 225:          ////////////////////////////////////////////////////////////////////////////
 226:   
 227:          /// <summary>
 228:          ///
 229:          /// </summary>
 230:          public string ToSimpleTextString()
 231:          {
 232:              StringBuilder sb;
 233:   
 234:              sb = new StringBuilder();
 235:   
 236:              //sb.AppendLine("Vendor: " + Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Huawei.Name);
 237:              sb.AppendLine("AccessName: " + ((this.Access != null) ? this.Access.Name : string.Empty));
 238:              sb.AppendLine("EquipmentType: " + this.EquipmentType);
 239:              sb.AppendLine("FamilyType: " + this.FamilyType);
 240:              sb.AppendLine("DID: " + this.DID);
 241:              sb.AppendLine("FN: " + this.FN);
 242:              sb.AppendLine("SN: " + this.SN);
 243:              sb.AppendLine("PN: " + this.PN);
 244:              sb.AppendLine("ONTID: " + this.ONTID);
 245:              sb.AppendLine("NAME: " + this.NAME);
 246:              sb.AppendLine("ALIAS: " + this.ALIAS);
 247:              sb.AppendLine("CAPABPROF: " + this.CAPABPROF);
 248:              sb.AppendLine("VENDORID: " + this.VENDORID);
 249:              sb.AppendLine("EQUIPMENTID: " + this.EQUIPMENTID);
 250:              sb.AppendLine("MAINSOFTVERSION: " + this.MAINSOFTVERSION);
 251:              sb.AppendLine("AUTH: " + this.AUTH);
 252:              sb.AppendLine("SERIALNUM: " + this.SERIALNUM);
 253:              sb.AppendLine("DEV: " + this.DEV);
 254:              sb.AppendLine("VLAN: " + this.VLAN);
 255:              sb.AppendLine("IP: " + this.IP);
 256:              sb.AppendLine("GATE: " + this.GATE);
 257:              sb.AppendLine("ROUTEIP: " + this.ROUTEIP);
 258:              sb.AppendLine("VAPROF: " + this.VAPROF);
 259:   
 260:              return sb.ToString();
 261:          }
 262:   
 263:          ////////////////////////////////////////////////////////////////////////////
 264:          ////////////////////////////////////////////////////////////////////////////
 265:      }
 266:   
 267:      ////////////////////////////////////////////////////////////////////////////
 268:      ////////////////////////////////////////////////////////////////////////////
 269:  }