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

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