)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Help (Ia.Ftn.Cl.Models.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.Models.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:     /// </remarks> 
   12:     public class Help
   13:     {
   14:         /// <summary/>
   15:         public enum TelegramString { NeedHelpSendCommandSlashHelp, NotAuthorized, FrameworkNotAuthorized };
   16:  
   17:         /// <summary/>
   18:         public enum MailString { MaintenanceFind, ProvisionAccess, MaintenanceLogTransactionAms };
   19:  
   20:         /// <summary/>
   21:         public Help() { }
   22:  
   23:         ////////////////////////////////////////////////////////////////////////////
   24:  
   25:         /// <summary>
   26:         ///
   27:         /// </summary>
   28:         public static string Text(MailString mailString)
   29:         {
   30:             string s;
   31:  
   32:             if (mailString == MailString.MaintenanceFind)
   33:             {
   34:                 s = @"";
   35:             }
   36:             else if (mailString == MailString.ProvisionAccess)
   37:             {
   38:                 s = @"
   39:  
   40:  
   41: Task: Using email to add newly provisioned access ONTs to FTN's FTN Database and FTN's customer department database
   42:  
   43: Procedure:
   44:  
   45: - Authorize your email to create access ONTs into FTN databases.
   46: - Add the subject line ""mail/provision/access/create"" to the email.
   47: - Copy the new access ONT list form your Excel file and past it as text in the body of plain text email.
   48: - Send the email to ftn.com.kw@gmail.com
   49: - You will receive an email indicating what access data was accepted.
   50:  
   51: Sample email:
   52:  
   53: To: ftn.com.kw@gmail.com
   54:  
   55: Subject: mail/provision/access/create
   56:  
   57: 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
   58: 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
   59: 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
   60: 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
   61: 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
   62: 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
   63:  
   64: ----------------------------
   65:  
   66: Task: Recieve a list of all access ONTs provisioned within the system for an area
   67:  
   68: Procedure:
   69:  
   70: - Authorize your email to read access ONTs into FTN databases.
   71: - Add the subject line ""mail/provision/access/read/SAA"" to the email.
   72: - Send the email to ftn.com.kw@gmail.com
   73: - You will receive an email with a list of all access data within the system.
   74:  
   75: Sample email:
   76:  
   77: To: ftn.com.kw@gmail.com
   78:  
   79: Subject: mail/provision/access/read/SAA
   80:  
   81: ----------------------------
   82:  
   83: Task: Delete a list of access ONTs
   84:  
   85: Procedure:
   86:  
   87: - Authorize your email to create access ONTs into FTN databases.
   88: - Add the subject line ""mail/provision/access/delete"" to the email.
   89: - List the access ONTs that you want to delete  in the body of plain text email with every entry in its own line.
   90: - Send the email to ftn.com.kw@gmail.com
   91: - You will receive an email indicating what accesses were deleted.
   92:  
   93: Sample email:
   94:  
   95: To: ftn.com.kw@gmail.com
   96:  
   97: Subject: mail/provision/access/delete
   98:  
   99: SDQ.704.007
  100: SDQ.705.025
  101:  
  102: ----------------------------
  103:  
  104: ";
  105:             }
  106:             else if (mailString == MailString.MaintenanceLogTransactionAms)
  107:             {
  108:                 s = @"
  109:  
  110:  
  111: Task: Using email to insert the records of an Nokia AMS transaction file into FTN database
  112:  
  113: Procedure:
  114:  
  115: - You need to authorize the email that is allowed to send Nokia AMS transaction file.
  116: - Add the subject line ""mail/maintenance/log/transaction/ams/insert"" to the email.
  117: - Attach transaction file to email and send the email to ftn.com.kw@gmail.com
  118: - You will receive an email indicating status of insert.
  119:  
  120: Sample email:
  121:  
  122: To: ftn.com.kw@gmail.com
  123: Subject: mail/maintenance/log/transaction/ams/insert
  124: Attachment: *.* (AMS transaction file)
  125:  
  126: ";
  127:             }
  128:             else s = string.Empty;
  129:  
  130:             return s;
  131:         }
  132:  
  133:         ////////////////////////////////////////////////////////////////////////////
  134:  
  135:         /// <summary>
  136:         ///
  137:         /// </summary>
  138:         public static string Text(string opcode)
  139:         {
  140:             string s;
  141:  
  142:             s = string.Empty;
  143:  
  144:             if (opcode.Contains("mail/"))
  145:             {
  146:                 #region mail
  147:  
  148:                 #endregion
  149:             }
  150:             else if (opcode.Contains("telegram/"))
  151:             {
  152:                 #region telegram
  153:  
  154:                 if (opcode.Contains("telegram/field-tnmd-supplier") || opcode.Contains("telegram/default"))
  155:                 {
  156:                     s = @"أرسل لي رسالة شخصية برقم هاتف أو جهاز مثل 23632222 أو 201.1.ZAH ...إلخ، وسأرد عليك برسالة شخصية خاصة تحتوي على كل المعلومات المتعلقة بالرقم الذي أرسلته. أي رسالة غير خاصة، من داخل المجموعة، وتبدأ بعلامة / سأعتبرها رسالة خاصة لي وأرد عليك بشكل خاص.
  157:  
  158: تستطيع أيضاً الحصول على معلومات تحتاجها بإرسال أي من الأوامر التالية:
  159:  
  160: /tnmd - TNMD list
  161: /maintenance - Maintenance list
  162: /system_monitor - System Monitor
  163: /service_request_today - Service requests from today
  164: /help - Help
  165: ";
  166:                     /*
  167: 
  168: /qrn - QRN maintenance list
  169: /ard - ARD maintenance list
  170: /jhb - JHB maintenance list
  171: /jls - JLS maintenance list
  172: /rkk - RKK maintenance list
  173: /sur - SUR maintenance list
  174: /mgf - MGF maintenance list
  175: /slb - SLB maintenance list
  176: /msf - MSF maintenance list
  177: /khp - KHP maintenance list
  178: /khr - KHR maintenance list
  179: /rsl - RSL maintenance list
  180: /nokia - Nokia report list
  181: /huawei - Huawei report list
  182: 
  183: 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.
  184: 
  185: You can also get the data you need by sending any of the commands below:
  186: 
  187:                      */
  188:                 }
  189:                 else
  190:                 {
  191:  
  192:                 }
  193:  
  194:                 #endregion
  195:             }
  196:             else
  197:             {
  198:  
  199:             }
  200:  
  201:             return s;
  202:         }
  203:  
  204:         ////////////////////////////////////////////////////////////////////////////
  205:  
  206:         /// <summary>
  207:         ///
  208:         /// </summary>
  209:         public static string Text(TelegramString telegramString)
  210:         {
  211:             string s;
  212:  
  213:             if (telegramString == TelegramString.NeedHelpSendCommandSlashHelp)
  214:             {
  215:                 s = @"/help مساعدة؟ أرسل الأمر";
  216:  
  217:                 //s = @"Help? Send the command /help";
  218:             }
  219:             else if (telegramString == TelegramString.NotAuthorized)
  220:             {
  221:                 s = @"التطبيق غير مخول باجابتك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  222:  
  223:                 // 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
  224:             }
  225:             else if (telegramString == TelegramString.FrameworkNotAuthorized)
  226:             {
  227:                 s = @"التطبيق غير مخول بإجابتك فالرقم أو الجهاز لا ينتمي لنطاق عملك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  228:  
  229:                 // 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
  230:             }
  231:             else s = string.Empty;
  232:  
  233:             return s;
  234:         }
  235:  
  236:         ////////////////////////////////////////////////////////////////////////////
  237:         ////////////////////////////////////////////////////////////////////////////
  238:     }
  239:  
  240:     ////////////////////////////////////////////////////////////////////////////
  241:     ////////////////////////////////////////////////////////////////////////////
  242: }