)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
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:     ///
   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 };
   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 s = string.Empty;
  139:  
  140:             return s;
  141:         }
  142:  
  143:         ////////////////////////////////////////////////////////////////////////////
  144:  
  145:         /// <summary>
  146:         ///
  147:         /// </summary>
  148:         public static string Text(string opcode)
  149:         {
  150:             string s;
  151:  
  152:             s = string.Empty;
  153:  
  154:             if (opcode.Contains("mail/"))
  155:             {
  156:                 #region mail
  157:  
  158:                 #endregion
  159:             }
  160:             else if (opcode.Contains("telegram/"))
  161:             {
  162:                 #region telegram
  163:  
  164:                 if (opcode.Contains("telegram/field-tnmd-supplier") || opcode.Contains("telegram/default"))
  165:                 {
  166:                     s = @"أرسل لي رسالة شخصية برقم هاتف أو جهاز مثل 23632222 أو 201.1.ZAH ...إلخ، وسأرد عليك برسالة شخصية خاصة تحتوي على كل المعلومات المتعلقة بالرقم الذي أرسلته. أي رسالة غير خاصة، من داخل المجموعة، وتبدأ بعلامة / سأعتبرها رسالة خاصة لي وأرد عليك بشكل خاص.
  167:  
  168: تستطيع أيضاً الحصول على معلومات تحتاجها بإرسال أي من الأوامر التالية:
  169:  
  170: /tnmd - TNMD list
  171: /maintenance - Maintenance list
  172: /system_monitor - System Monitor
  173: /service_request_today - Service requests from today
  174: /help - Help
  175: ";
  176:                     /*
  177: 
  178: /qrn - QRN maintenance list
  179: /ard - ARD maintenance list
  180: /jhb - JHB maintenance list
  181: /jls - JLS maintenance list
  182: /rkk - RKK maintenance list
  183: /sur - SUR maintenance list
  184: /mgf - MGF maintenance list
  185: /slb - SLB maintenance list
  186: /msf - MSF maintenance list
  187: /khp - KHP maintenance list
  188: /khr - KHR maintenance list
  189: /rsl - RSL maintenance list
  190: /nokia - Nokia report list
  191: /huawei - Huawei report list
  192: 
  193: 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.
  194: 
  195: You can also get the data you need by sending any of the commands below:
  196: 
  197:                      */
  198:                 }
  199:                 else
  200:                 {
  201:  
  202:                 }
  203:  
  204:                 #endregion
  205:             }
  206:             else
  207:             {
  208:  
  209:             }
  210:  
  211:             return s;
  212:         }
  213:  
  214:         ////////////////////////////////////////////////////////////////////////////
  215:  
  216:         /// <summary>
  217:         ///
  218:         /// </summary>
  219:         public static string Text(TelegramString telegramString)
  220:         {
  221:             string s;
  222:  
  223:             if (telegramString == TelegramString.NeedHelpSendCommandSlashHelp)
  224:             {
  225:                 s = @"/help مساعدة؟ أرسل الأمر";
  226:  
  227:                 //s = @"Help? Send the command /help";
  228:             }
  229:             else if (telegramString == TelegramString.NotAuthorized)
  230:             {
  231:                 s = @"التطبيق غير مخول باجابتك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  232:  
  233:                 // 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
  234:             }
  235:             else if (telegramString == TelegramString.FrameworkNotAuthorized)
  236:             {
  237:                 s = @"التطبيق غير مخول بإجابتك فالرقم أو الجهاز لا ينتمي لنطاق عملك. للحصول على تصريح اتصل بإدارة شبكة الألياف الضوئية في وزارة المواصلات";
  238:  
  239:                 // 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
  240:             }
  241:             else s = string.Empty;
  242:  
  243:             return s;
  244:         }
  245:  
  246:         ////////////////////////////////////////////////////////////////////////////
  247:         ////////////////////////////////////////////////////////////////////////////
  248:     }
  249:  
  250:     ////////////////////////////////////////////////////////////////////////////
  251:     ////////////////////////////////////////////////////////////////////////////
  252: }