)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Help (Ia.Ftn.Cl.Model.Data)

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

Help class for Fixed Telecommunications Network (FTN) data model.

    1: namespace Ia.Ftn.Cl.Model.Data
    2: {
    3:     ////////////////////////////////////////////////////////////////////////////
    4:  
    5:     /// <summary publish="true">
    6:     /// Help class for Fixed Telecommunications Network (FTN) data model.
    7:     /// </summary>
    8:     /// 
    9:     /// <remarks> 
   10:     /// Copyright © 2006-2019 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   11:     ///
   12:     /// 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
   13:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   14:     ///
   15:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   16:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   17:     /// 
   18:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   19:     /// 
   20:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   21:     /// </remarks> 
   22:     public class Help
   23:     {
   24:         /// <summary/>
   25:         public enum TelegramString { NeedHelpSendCommandSlashHelp, NotAuthorized, FrameworkNotAuthorized };
   26:  
   27:         /// <summary/>
   28:         public enum MailString { MaintenanceFind, ProvisionAccess, MaintenanceLogTransactionAms, MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration };
   29:  
   30:         /// <summary/>
   31:         public Help() { }
   32:  
   33:         ////////////////////////////////////////////////////////////////////////////
   34:  
   35:         /// <summary>
   36:         ///
   37:         /// </summary>
   38:         public static string Text(MailString mailString)
   39:         {
   40:             string s;
   41:  
   42:             if (mailString == MailString.MaintenanceFind)
   43:             {
   44:                 s = @"";
   45:             }
   46:             else if (mailString == MailString.ProvisionAccess)
   47:             {
   48:                 s = @"
   49:  
   50:  
   51: Task: Using email to add newly provisioned access ONTs to FTN's FTN Database and FTN's customer department database
   52:  
   53: Procedure:
   54:  
   55: - Authorize your email to create access ONTs into FTN databases.
   56: - Add the subject line ""mail/provision/access/create"" to the email.
   57: - Copy the new access ONT list form your Excel file and past it as text in the body of plain text email.
   58: - Send the email to ftn.com.kw@gmail.com
   59: - You will receive an email indicating what access data was accepted.
   60:  
   61: Sample email:
   62:  
   63: To: ftn.com.kw@gmail.com
   64:  
   65: Subject: mail/provision/access/create
   66:  
   67: 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
   68: 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
   69: 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
   70: 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
   71: 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
   72: 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
   73:  
   74: ----------------------------
   75:  
   76: Task: Recieve a list of all access ONTs provisioned within the system for an area
   77:  
   78: Procedure:
   79:  
   80: - Authorize your email to read access ONTs into FTN databases.
   81: - Add the subject line ""mail/provision/access/read/SAA"" to the email.
   82: - Send the email to ftn.com.kw@gmail.com
   83: - You will receive an email with a list of all access data within the system.
   84:  
   85: Sample email:
   86:  
   87: To: ftn.com.kw@gmail.com
   88:  
   89: Subject: mail/provision/access/read/SAA
   90:  
   91: ----------------------------
   92:  
   93: Task: Delete a list of access ONTs
   94:  
   95: Procedure:
   96:  
   97: - Authorize your email to create access ONTs into FTN databases.
   98: - Add the subject line ""mail/provision/access/delete"" to the email.
   99: - List the access ONTs that you want to delete  in the body of plain text email with every entry in its own line.
  100: - Send the email to ftn.com.kw@gmail.com
  101: - You will receive an email indicating what accesses were deleted.
  102:  
  103: Sample email:
  104:  
  105: To: ftn.com.kw@gmail.com
  106:  
  107: Subject: mail/provision/access/delete
  108:  
  109: SDQ.704.007
  110: SDQ.705.025
  111:  
  112: ----------------------------
  113:  
  114: ";
  115:             }
  116:             else if (mailString == MailString.MaintenanceLogTransactionAms)
  117:             {
  118:                 s = @"
  119:  
  120:  
  121: Task: Using email to insert the records of an Nokia AMS transaction file into FTN database
  122:  
  123: Procedure:
  124:  
  125: - You need to authorize the email that is allowed to send Nokia AMS transaction file.
  126: - Add the subject line ""mail/maintenance/log/transaction/ams/insert"" to the email.
  127: - Attach transaction file to email and send the email to ftn.com.kw@gmail.com
  128: - You will receive an email indicating status of insert.
  129:  
  130: Sample email:
  131:  
  132: To: ftn.com.kw@gmail.com
  133: Subject: mail/maintenance/log/transaction/ams/insert
  134: Attachment: *.* (AMS transaction file)
  135:  
  136: ";
  137:             }
  138:             else if (mailString == MailString.MailProvisionMigrationMocGponPhaseIiHomeConnectionAndMigration)
  139:             {
  140:                 s = @"
  141:  
  142:  
  143: Task: Using email to insert the records of a GPON Phase II Home Connection and Migration file into FTN database
  144:  
  145: Procedure:
  146:  
  147: - You need to authorize the email that is allowed to send GPON Phase II Home Connection and Migration file.
  148: - Add the subject line ""mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert"" to the email.
  149: - Attach migration file to email and send the email to ftn.com.kw@gmail.com
  150: - You will receive an email indicating status of insert.
  151:  
  152: Sample email:
  153:  
  154: To: ftn.com.kw@gmail.com
  155: Subject: mail/provision/migration/moc-gpon-phase-ii-home-connection-and-migration/insert
  156: Attachment: *.* (GPON Phase II Home Connection and Migration file)
  157:  
  158: ";
  159:             }
  160:             else s = string.Empty;
  161:  
  162:             return s;
  163:         }
  164:  
  165:         ////////////////////////////////////////////////////////////////////////////
  166:  
  167:         /// <summary>
  168:         ///
  169:         /// </summary>
  170:         public static string Text(string opcode)
  171:         {
  172:             string s;
  173:  
  174:             s = string.Empty;
  175:  
  176:             if (opcode.Contains("mail/"))
  177:             {
  178:                 #region mail
  179:  
  180:                 #endregion
  181:             }
  182:             else if (opcode.Contains("telegram/"))
  183:             {
  184:                 #region telegram
  185:  
  186:                 if (opcode.Contains("telegram/field-tnmd-supplier") || opcode.Contains("telegram/default"))
  187:                 {
  188:                     s = @"أرسل لي رسالة شخصية برقم هاتف أو جهاز مثل 23632222 أو 201.1.ZAH ...إلخ، وسأرد عليك برسالة شخصية خاصة تحتوي على كل المعلومات المتعلقة بالرقم الذي أرسلته. أي رسالة غير خاصة، من داخل المجموعة، وتبدأ بعلامة / سأعتبرها رسالة خاصة لي وأرد عليك بشكل خاص.
  189:  
  190: تستطيع أيضاً الحصول على معلومات تحتاجها بإرسال أي من الأوامر التالية:
  191:  
  192: /tnmd - TNMD list
  193: /maintenance - Maintenance list
  194: /system_monitor - System Monitor
  195: /service_request_today - Service requests from today
  196: /help - Help
  197: ";
  198:                     /*
  199: 
  200: /qrn - QRN maintenance list
  201: /ard - ARD maintenance list
  202: /jhb - JHB maintenance list
  203: /jls - JLS maintenance list
  204: /rkk - RKK maintenance list
  205: /sur - SUR maintenance list
  206: /mgf - MGF maintenance list
  207: /slb - SLB maintenance list
  208: /msf - MSF maintenance list
  209: /khp - KHP maintenance list
  210: /khr - KHR maintenance list
  211: /rsl - RSL maintenance list
  212: /nokia - Nokia report list
  213: /huawei - Huawei report list
  214: 
  215: 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.
  216: 
  217: You can also get the data you need by sending any of the commands below:
  218: 
  219:                      */
  220:                 }
  221:                 else
  222:                 {
  223:  
  224:                 }
  225:  
  226:                 #endregion
  227:             }
  228:             else
  229:             {
  230:  
  231:             }
  232:  
  233:             return s;
  234:         }
  235:  
  236:         ////////////////////////////////////////////////////////////////////////////
  237:  
  238:         /// <summary>
  239:         ///
  240:         /// </summary>
  241:         public static string Text(TelegramString telegramString)
  242:         {
  243:             string s;
  244:  
  245:             if (telegramString == TelegramString.NeedHelpSendCommandSlashHelp)
  246:             {
  247:                 s = @"/help مساعدة؟ أرسل الأمر";
  248:  
  249:                 //s = @"Help? Send the command /help";
  250:             }
  251:             else if (telegramString == TelegramString.NotAuthorized)
  252:             {
  253:                 s = @"التطبيق غير مخول باجابتك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  254:  
  255:                 // The bot is not authorized to reply to this message. For authorization please contact the Fixed Telecommunications Network's Operations Support System Department in the Ministry of Communications and Information Technology
  256:             }
  257:             else if (telegramString == TelegramString.FrameworkNotAuthorized)
  258:             {
  259:                 s = @"التطبيق غير مخول بإجابتك فالرقم أو الجهاز لا ينتمي لنطاق عملك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  260:  
  261:                 // 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 Fixed Telecommunications Network Department in the Ministry of Communications and Information Technology
  262:             }
  263:             else s = string.Empty;
  264:  
  265:             return s;
  266:         }
  267:  
  268:         ////////////////////////////////////////////////////////////////////////////
  269:         ////////////////////////////////////////////////////////////////////////////
  270:     }
  271:  
  272:     ////////////////////////////////////////////////////////////////////////////
  273:     ////////////////////////////////////////////////////////////////////////////
  274: }