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

Integrated Applications Programming Company

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-2019 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 enum TelegramString { NeedHelpSendCommandSlashHelp, NotAuthorized, FrameworkNotAuthorized };
  33:   
  34:          /// <summary/>
  35:          public enum MailString { MaintenanceFind, ProvisionAccess, MaintenanceLogTransactionAms, MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration };
  36:   
  37:          /// <summary/>
  38:          public Help() { }
  39:   
  40:          ////////////////////////////////////////////////////////////////////////////
  41:   
  42:          /// <summary>
  43:          ///
  44:          /// </summary>
  45:          public static string Text(MailString mailString)
  46:          {
  47:              string s;
  48:              
  49:              if (mailString == MailString.MaintenanceFind)
  50:              {
  51:                  s = @"";
  52:              }
  53:              else if (mailString == MailString.ProvisionAccess)
  54:              {
  55:                  s = @"
  56:   
  57:   
  58:  Task: Using email to add newly provisioned access ONTs to NGN's OFN Database and NGN's customer department database
  59:   
  60:  Procedure:
  61:   
  62:  - Authorize your email to create access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  63:  - Add the subject line ""mail/provision/access/create"" to the email.
  64:  - Copy the new access ONT list form your Excel file and past it as text in the body of plain text email.
  65:  - Send the email to ofn.gov.kw@gmail.com
  66:  - You will receive an email indicating what access data was accepted.
  67:   
  68:  Sample email:
  69:   
  70:  To: ofn.gov.kw@gmail.com
  71:   
  72:  Subject: mail/provision/access/create
  73:   
  74:  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
  75:  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
  76:  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
  77:  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
  78:  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
  79:  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
  80:   
  81:  ----------------------------
  82:   
  83:  Task: Recieve a list of all access ONTs provisioned within the system for an area
  84:   
  85:  Procedure:
  86:   
  87:  - Authorize your email to read access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
  88:  - Add the subject line ""mail/provision/access/read/SAA"" to the email.
  89:  - Send the email to ofn.gov.kw@gmail.com
  90:  - You will receive an email with a list of all access data within the system.
  91:   
  92:  Sample email:
  93:   
  94:  To: ofn.gov.kw@gmail.com
  95:   
  96:  Subject: mail/provision/access/read/SAA
  97:   
  98:  ----------------------------
  99:   
 100:  Task: Delete a list of access ONTs
 101:   
 102:  Procedure:
 103:   
 104:  - Authorize your email to create access ONTs into NGN databases. You can authorize your email by contacting Jasem (info@ia.com.kw)
 105:  - Add the subject line ""mail/provision/access/delete"" to the email.
 106:  - List the access ONTs that you want to delete  in the body of plain text email with every entry in its own line.
 107:  - Send the email to ofn.gov.kw@gmail.com
 108:  - You will receive an email indicating what accesses were deleted.
 109:   
 110:  Sample email:
 111:   
 112:  To: ofn.gov.kw@gmail.com
 113:   
 114:  Subject: mail/provision/access/delete
 115:   
 116:  SDQ.704.007
 117:  SDQ.705.025
 118:   
 119:  ----------------------------
 120:   
 121:  For more information, contact Jasem (info@ia.com.kw)
 122:   
 123:  ";
 124:              }
 125:              else if (mailString == MailString.MaintenanceLogTransactionAms)
 126:              {
 127:                  s = @"
 128:   
 129:   
 130:  Task: Using email to insert the records of an AMS transaction file into NGN database
 131:   
 132:  Procedure:
 133:   
 134:  - 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)
 135:  - Add the subject line ""mail/maintenance/log/transaction/ams/insert"" to the email.
 136:  - Attach transaction file to email and send the email to ofn.gov.kw@gmail.com
 137:  - You will receive an email indicating status of insert.
 138:   
 139:  Sample email:
 140:   
 141:  To: ofn.gov.kw@gmail.com
 142:  Subject: mail/maintenance/log/transaction/ams/insert
 143:  Attachment: *.* (AMS transaction file)
 144:   
 145:   
 146:   
 147:   
 148:   
 149:   
 150:  For more information, contact Jasem (info@ia.com.kw)
 151:   
 152:  ";
 153:              }
 154:              else if (mailString == MailString.MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration)
 155:              {
 156:                  s = @"
 157:   
 158:   
 159:  Task: Using email to insert the records of a GPON Phase II Home Connection and Migration file into NGN database
 160:   
 161:  Procedure:
 162:   
 163:  - You need to authorize the email that is allowed to send GPON Phase II Home Connection and Migration file. You can authorize your email by contacting Jasem (info@ia.com.kw)
 164:  - Add the subject line ""mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert"" to the email.
 165:  - Attach migration file to email and send the email to ofn.gov.kw@gmail.com
 166:  - You will receive an email indicating status of insert.
 167:   
 168:  Sample email:
 169:   
 170:  To: ofn.gov.kw@gmail.com
 171:  Subject: mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert
 172:  Attachment: *.* (GPON Phase II Home Connection and Migration file)
 173:   
 174:   
 175:   
 176:   
 177:   
 178:   
 179:  For more information, contact Jasem (info@ia.com.kw)
 180:   
 181:  ";
 182:              }
 183:              else s = string.Empty;
 184:   
 185:              return s;
 186:          }
 187:   
 188:          ////////////////////////////////////////////////////////////////////////////
 189:   
 190:          /// <summary>
 191:          ///
 192:          /// </summary>
 193:          public static string Text(string opcode)
 194:          {
 195:              string s;
 196:   
 197:              s = string.Empty;
 198:   
 199:              if (opcode.Contains("mail/"))
 200:              {
 201:                  #region mail
 202:   
 203:                  #endregion
 204:              }
 205:              else if (opcode.Contains("telegram/"))
 206:              {
 207:                  #region telegram
 208:   
 209:                  if (opcode.Contains("telegram/field-tnmd-supplier") || opcode.Contains("telegram/default"))
 210:                  {
 211:                      s = @"أرسل لي رسالة شخصية برقم هاتف أو صندوق مثل 23632222 أو 201.1.ZAH ...إلخ، وسأرد عليك برسالة شخصية خاصة تحتوي على كل المعلومات المتعلقة بالرقم الذي أرسلته. أي رسالة غير خاصة، من داخل المجموعة، وتبدأ بعلامة / سأعتبرها رسالة خاصة لي وأرد عليك بشكل خاص.
 212:   
 213:  تستطيع أيضاً الحصول على معلومات تحتاجها بإرسال أي من الأوامر التالية:
 214:   
 215:  /tnmd - TNMD list
 216:  /maintenance - Maintenance list
 217:  /qrn - QRN maintenance list
 218:  /ard - ARD maintenance list
 219:  /jhb - JHB maintenance list
 220:  /jls - JLS maintenance list
 221:  /rkk - RKK maintenance list
 222:  /sur - SUR maintenance list
 223:  /mgf - MGF maintenance list
 224:  /slb - SLB maintenance list
 225:  /msf - MSF maintenance list
 226:  /khp - KHP maintenance list
 227:  /khr - KHR maintenance list
 228:  /rsl - RSL maintenance list
 229:  /nokia - Nokia report list
 230:  /huawei - Huawei report list
 231:  /network_design_document - Network Design Document
 232:  /service_request_today - Service requests from today
 233:  /help - Help
 234:  ";
 235:                      /*
 236:  
 237:  Send me a command message that starts with a slash / followed by any string that represents a number or access name like /23632222 ...etc. The search result will provide all data related to the input. I will also conceder any group message that starts with / as private and will answer you directly on it.
 238:  
 239:  You can also get the data you need by sending any of the commands below:
 240:  
 241:                       */
 242:                  }
 243:                  else
 244:                  {
 245:   
 246:                  }
 247:   
 248:                  #endregion
 249:              }
 250:              else
 251:              {
 252:   
 253:              }
 254:   
 255:              return s;
 256:          }
 257:   
 258:          ////////////////////////////////////////////////////////////////////////////
 259:   
 260:          /// <summary>
 261:          ///
 262:          /// </summary>
 263:          public static string Text(TelegramString telegramString)
 264:          {
 265:              string s;
 266:   
 267:              if (telegramString == TelegramString.NeedHelpSendCommandSlashHelp)
 268:              {
 269:                  s = @"/help مساعدة؟ أرسل الأمر";
 270:   
 271:                  //s = @"Help? Send the command /help";
 272:              }
 273:              else if (telegramString == TelegramString.NotAuthorized)
 274:              {
 275:                  s = @"التطبيق غير مخول باجابتك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة شؤون الخدمات";
 276:   
 277:                  // The bot is not authorized to reply to this message. For authorization please contact the Optical Fiber Network Department in the Ministry of Service Affairs
 278:              }
 279:              else if (telegramString == TelegramString.FrameworkNotAuthorized)
 280:              {
 281:                  s = @"التطبيق غير مخول بإجابتك فالرقم أو الصندوق لا ينتمي لنطاق عملك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة شؤون الخدمات";
 282:   
 283:                  // The bot is not authorized to reply to this message because the number or access does not belong to your site authority domain. For authorization please contact the Optical Fiber Network Department in the Ministry of Service Affairs
 284:              }
 285:              else s = string.Empty;
 286:   
 287:              return s;
 288:          }
 289:   
 290:          ////////////////////////////////////////////////////////////////////////////
 291:          ////////////////////////////////////////////////////////////////////////////
 292:      }
 293:   
 294:      ////////////////////////////////////////////////////////////////////////////
 295:      ////////////////////////////////////////////////////////////////////////////
 296:  }