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

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

Help class for Next Generation Network (NGN) data model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Web;
   5:  using System.Web.Security;
   6:  using System.ComponentModel.DataAnnotations.Schema;
   7:   
   8:  namespace Ia.Ngn.Cl.Model.Data
   9:  {
  10:      ////////////////////////////////////////////////////////////////////////////
  11:   
  12:      /// <summary publish="true">
  13:      /// Help class for Next Generation Network (NGN) data model.
  14:      /// </summary>
  15:      /// 
  16:      /// <remarks> 
  17:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  18:      ///
  19:      /// 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
  20:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  21:      ///
  22:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  23:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  24:      /// 
  25:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  26:      /// 
  27:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  28:      /// </remarks> 
  29:      public partial class Help
  30:      {
  31:          /// <summary/>
  32:          public Help() { }
  33:   
  34:          ////////////////////////////////////////////////////////////////////////////
  35:   
  36:          /// <summary>
  37:          ///
  38:          /// </summary>
  39:          public static string Text(string opcode)
  40:          {
  41:              string s;
  42:   
  43:              s = string.Empty;
  44:   
  45:              if (opcode.Contains("mail/"))
  46:              {
  47:                  #region mail
  48:   
  49:                  if (opcode.Contains("mail/maintenance/find"))
  50:                  {
  51:                      s = @"";
  52:                  }
  53:                  else if (opcode.Contains("mail/provision/access"))
  54:                  {
  55:   
  56:                      s = @"
  57:   
  58:   
  59:  Task: Using email to add newly provisioned access ONTs to NGN's OFN Database and MOC's customer department database
  60:   
  61:  Procedure:
  62:   
  63:  - Authorize your email to create access ONTs into MOC databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  64:  - Add the subject line ""mail/provision/access/create"" to the email.
  65:  - Copy the new access ONT list form your Excel file and past it as text in the body of plain text email.
  66:  - Send the email to ofn.gov.kw@gmail.com
  67:  - You will receive an email indicating what access data was accepted.
  68:   
  69:  Sample email:
  70:   
  71:  To: ofn.gov.kw@gmail.com
  72:   
  73:  Subject: mail/provision/access/create
  74:   
  75:  105    704    SDQ.704.007    SDQ.704.007    N/A    SDQ    3    N/A    309    193    N/A    48575443E6B3007D    10.150.0.103    N/A    N/A
  76:  106    705    SDQ.705.025    SDQ.705.025    N/A    SDQ    3    N/A    307    160    N/A    485754437401DC83    10.150.0.153    N/A    N/A
  77:  107    705    SDQ.705.026    SDQ.705.026    N/A    SDQ    3    N/A    307    158    N/A    485754437404D983    10.150.0.154    N/A    N/A
  78:  108    706    SDQ.706.022    SDQ.706.022    N/A    SDQ    3    N/A    308    184    N/A    4857544374058483    10.150.0.162    N/A    N/A
  79:  109    709    SDQ.709.015    SDQ.709.015    N/A    SDQ    3    N/A    305    130    N/A    485754437405A883    10.150.1.15    N/A    N/A
  80:  110    811    SDQ.811.003    SDQ.811.003    N/A    SDQ    5    N/A    507    104    N/A    4857544374068083    10.150.8.3    DR. OWLID    66666221
  81:   
  82:  ----------------------------
  83:   
  84:  Task: Recieve a list of all access ONTs provisioned within the system for an area
  85:   
  86:  Procedure:
  87:   
  88:  - Authorize your email to read access ONTs into MOC databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  89:  - Add the subject line ""mail/provision/access/read/SAA"" to the email.
  90:  - Send the email to ofn.gov.kw@gmail.com
  91:  - You will receive an email with a list of all access data within the system.
  92:   
  93:  Sample email:
  94:   
  95:  To: ofn.gov.kw@gmail.com
  96:   
  97:  Subject: mail/provision/access/read/SAA
  98:   
  99:  ----------------------------
 100:   
 101:  Task: Delete a list of access ONTs
 102:   
 103:  Procedure:
 104:   
 105:  - Authorize your email to create access ONTs into MOC databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
 106:  - Add the subject line ""mail/provision/access/delete"" to the email.
 107:  - List the access ONTs that you want to delete  in the body of plain text email with every entry in its own line.
 108:  - Send the email to ofn.gov.kw@gmail.com
 109:  - You will receive an email indicating what accesses were deleted.
 110:   
 111:  Sample email:
 112:   
 113:  To: ofn.gov.kw@gmail.com
 114:   
 115:  Subject: mail/provision/access/delete
 116:   
 117:  SDQ.704.007
 118:  SDQ.705.025
 119:   
 120:  ----------------------------
 121:   
 122:  For more information, contact Jasem (info@ia.com.kw)
 123:   
 124:  ";
 125:                  }
 126:                  else if (opcode.Contains("mail/maintenance/log/transaction/ams"))
 127:                  {
 128:   
 129:                      s = @"
 130:   
 131:   
 132:  Task: Using email to insert the records of an AMS transaction file into NGN database
 133:   
 134:  Procedure:
 135:   
 136:  - You need to authorize the email that is allowed to send AMS transaction file. You can authorize your email by contacting Jasem (info@ia.com.kw)
 137:  - Add the subject line ""mail/maintenance/log/transaction/ams/insert"" to the email.
 138:  - Attach transaction file to email and send the email to ofn.gov.kw@gmail.com
 139:  - You will receive an email indicating status of insert.
 140:   
 141:  Sample email:
 142:   
 143:  To: ofn.gov.kw@gmail.com
 144:  Subject: mail/maintenance/log/transaction/ams/insert
 145:  Attachment: *.* (AMS transaction file)
 146:   
 147:   
 148:   
 149:   
 150:   
 151:   
 152:  For more information, contact Jasem (info@ia.com.kw)
 153:   
 154:  ";
 155:                  }
 156:                  else
 157:                  {
 158:   
 159:                  }
 160:                  #endregion
 161:              }
 162:              else if (opcode.Contains("telegram/"))
 163:              {
 164:                  #region telegram
 165:   
 166:                  if (opcode.Contains("telegram/field-tnmd-supplier"))
 167:                  {
 168:                      s = @"You can get the data you need by sending any of the commands below:
 169:   
 170:  /tnmd - TNMD list
 171:  /field - Field technician list
 172:  /help - Help
 173:  ";
 174:                  }
 175:                  else if (opcode.Contains("telegram/default"))
 176:                  {
 177:                      s = @"Send me a message with any string that represents any of the following information: number (e.g. ""25212254""), or access name (""SLA.82.13""), ...etc. The search result will provide all data related to the input.
 178:   
 179:  /find - Search for information related to string
 180:   
 181:  You can also get the data you need by sending any of the commands below:
 182:   
 183:  /find - Search for information related to string
 184:  /tnmd - TNMD list
 185:  /field - Field technician list
 186:  /statistics - Statistics
 187:  /nokia - Nokia report list
 188:  /huawei - Huawei report list
 189:  /request - Service request list
 190:  /help - Help
 191:  ";
 192:                  }
 193:                  else
 194:                  {
 195:   
 196:                  }
 197:   
 198:                  #endregion
 199:              }
 200:              else
 201:              {
 202:   
 203:              }
 204:   
 205:              return s;
 206:          }
 207:   
 208:          ////////////////////////////////////////////////////////////////////////////
 209:          ////////////////////////////////////////////////////////////////////////////
 210:      }
 211:   
 212:      ////////////////////////////////////////////////////////////////////////////
 213:      ////////////////////////////////////////////////////////////////////////////
 214:  }