Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » Event

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

Event-Ont class for Next Generation Network (NGN) UI model.

   1:  using System;
   2:  using System.Web;
   3:  using System.Xml;
   4:  using System.Xml.Linq;
   5:  using System.IO;
   6:  using System.Configuration;
   7:  using System.Text;
   8:  using System.Text.RegularExpressions;
   9:  using System.Data;
  10:  using System.Data.SqlClient;
  11:  using System.Web.UI;
  12:  using System.Web.UI.WebControls;
  13:  using System.Collections;
  14:  using System.Reflection;
  15:   
  16:  namespace Ia.Ngn.Cl.Model.Ui
  17:  {
  18:      ////////////////////////////////////////////////////////////////////////////
  19:   
  20:      /// <summary publish="true">
  21:      /// Event-Ont class for Next Generation Network (NGN) UI model.
  22:      /// </summary>
  23:      /// 
  24:      /// <remarks> 
  25:      /// Copyright © 2006-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  26:      ///
  27:      /// 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
  28:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  29:      ///
  30:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  31:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  32:      /// 
  33:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  34:      /// 
  35:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  36:      /// </remarks> 
  37:      public partial class Event   {
  38:          ////////////////////////////////////////////////////////////////////////////
  39:   
  40:          /// <summary>
  41:          ///
  42:          /// </summary>
  43:          public Event() { }
  44:   
  45:          /// <summary/>
  46:          public long Id { get; set; }
  47:          /// <summary/>
  48:          public int TypeId { get; set; }
  49:          /// <summary/>
  50:          public string System { get; set; }
  51:          /// <summary/>
  52:          public string Class { get; set; }
  53:          /// <summary/>
  54:          public string Aid { get; set; }
  55:          /// <summary/>
  56:          public string Cause { get; set; }
  57:          /// <summary/>
  58:          public int Number { get; set; }
  59:          /// <summary/>
  60:          public string Detail { get; set; }
  61:          /// <summary/>
  62:          public string Severity { get; set; }
  63:          /// <summary/>
  64:          public string SeverityEffect { get; set; }
  65:          /// <summary/>
  66:          public DateTime EventTime { get; set; }
  67:          /// <summary/>
  68:          public DateTime? NodeTime { get; set; }
  69:          /// <summary/>
  70:          public DateTime Created { get; set; }
  71:   
  72:          /// <summary/>
  73:          public string OntId { get; set; }
  74:          /// <summary/>
  75:          public string Serial { get; set; }
  76:          /// <summary/>
  77:          public string AccessName { get; set; }
  78:   
  79:          ////////////////////////////////////////////////////////////////////////////
  80:   
  81:          /// <summary>
  82:          ///
  83:          /// </summary>
  84:          public override string ToString()
  85:          {
  86:              StringBuilder sb;
  87:   
  88:              sb = new StringBuilder();
  89:   
  90:              sb.AppendLine("Class: " + this.Class);
  91:              sb.AppendLine("System: " + this.System);
  92:              sb.AppendLine("Severity: " + this.Severity);
  93:              sb.AppendLine("SeverityEffect: " + this.SeverityEffect);
  94:              sb.AppendLine("Aid: " + this.Aid);
  95:              sb.AppendLine("Cause: " + this.Cause);
  96:              sb.AppendLine("Number: " + this.Number);
  97:              sb.AppendLine("Detail: " + this.Detail);
  98:              sb.AppendLine("Serial: " + this.Serial);
  99:              sb.AppendLine("AccessName: " + this.AccessName);
 100:              sb.AppendLine("EventTime: " + this.EventTime);
 101:              sb.AppendLine("NodeTime: " + this.NodeTime);
 102:              sb.AppendLine("Created: " + this.Created);
 103:   
 104:              return sb.ToString();
 105:          }
 106:   
 107:          ////////////////////////////////////////////////////////////////////////////
 108:   
 109:          /// <summary>
 110:          ///
 111:          /// </summary>
 112:          public string ToSimpleTextString()
 113:          {
 114:              StringBuilder sb;
 115:   
 116:              sb = new StringBuilder();
 117:   
 118:              sb.AppendLine("Class: " + this.Class);
 119:              sb.AppendLine("System: " + this.System);
 120:              //sb.AppendLine("Severity: " + this.Severity);
 121:              //sb.AppendLine("SeverityEffect: " + this.SeverityEffect);
 122:              sb.AppendLine("Aid: " + this.Aid);
 123:              sb.AppendLine("Cause: " + this.Cause);
 124:              //sb.AppendLine("Number: " + this.Number);
 125:              sb.AppendLine("Detail: " + this.Detail);
 126:              sb.AppendLine("Serial: " + this.Serial);
 127:              sb.AppendLine("AccessName: " + this.AccessName);
 128:              sb.AppendLine("EventTime: " + this.EventTime);
 129:              //sb.AppendLine("NodeTime: " + this.NodeTime);
 130:              //sb.AppendLine("Created: " + this.Created);
 131:   
 132:              return sb.ToString();
 133:          }
 134:   
 135:          ////////////////////////////////////////////////////////////////////////////    
 136:          ////////////////////////////////////////////////////////////////////////////    
 137:      }
 138:   
 139:      ////////////////////////////////////////////////////////////////////////////
 140:      ////////////////////////////////////////////////////////////////////////////   
 141:  }