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

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

Service Request Service Entity Framework class for Fixed Telecommunications Network (FTN) UI model.

    1: using System;
    2: using System.Runtime.Serialization;
    3: using System.Text;
    4:  
    5: namespace Ia.Ftn.Cl.Model.Ui
    6: {
    7:     ////////////////////////////////////////////////////////////////////////////
    8:  
    9:     /// <summary publish="true">
   10:     /// Service Request Service Entity Framework class for Fixed Telecommunications Network (FTN) UI model.
   11:     /// </summary>
   12:     /// 
   13:     /// <remarks> 
   14:     /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   15:     ///
   16:     /// 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
   17:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   18:     ///
   19:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   20:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   21:     /// 
   22:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   23:     /// 
   24:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   25:     /// </remarks> 
   26:     [DataContract(IsReference = true, Namespace = "kw.com.ia.ftn.api", Name = "ServiceRequestService")]
   27:     public class ServiceRequestService
   28:     {
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public ServiceRequestService()
   35:         {
   36:  
   37:         }
   38:  
   39:         ////////////////////////////////////////////////////////////////////////////
   40:  
   41:         /// <summary>
   42:         ///
   43:         /// </summary>
   44:         [DataMember(Name = "id")]
   45:         public string Id { get; set; }
   46:  
   47:         ////////////////////////////////////////////////////////////////////////////
   48:  
   49:         /// <summary>
   50:         ///
   51:         /// </summary>
   52:         [DataMember(Name = "service")]
   53:         public string Service { get; set; }
   54:  
   55:         ////////////////////////////////////////////////////////////////////////////
   56:  
   57:         /// <summary>
   58:         ///
   59:         /// </summary>
   60:         [DataMember(Name = "serial")]
   61:         public int Serial { get; set; }
   62:  
   63:         ////////////////////////////////////////////////////////////////////////////
   64:  
   65:         /// <summary>
   66:         ///
   67:         /// </summary>
   68:         [DataMember(Name = "serviceType")]
   69:         public int ServiceType { get; set; }
   70:  
   71:         ////////////////////////////////////////////////////////////////////////////
   72:  
   73:         /// <summary>
   74:         ///
   75:         /// </summary>
   76:         [DataMember(Name = "type")]
   77:         public int Type { get; set; }
   78:  
   79:         ////////////////////////////////////////////////////////////////////////////
   80:  
   81:         /// <summary>
   82:         ///
   83:         /// </summary>
   84:         [DataMember(Name = "provisioned")]
   85:         public bool Provisioned { get; set; }
   86:  
   87:         ////////////////////////////////////////////////////////////////////////////
   88:  
   89:         /// <summary>
   90:         ///
   91:         /// </summary>
   92:         [DataMember(Name = "accessName")]
   93:         public string AccessName { get; set; }
   94:  
   95:         ////////////////////////////////////////////////////////////////////////////
   96:  
   97:         /// <summary>
   98:         ///
   99:         /// </summary>
  100:         [DataMember(Name = "callWaiting")]
  101:         public bool CallWaiting { get; set; }
  102:  
  103:         ////////////////////////////////////////////////////////////////////////////
  104:  
  105:         /// <summary>
  106:         ///
  107:         /// </summary>
  108:         [DataMember(Name = "callForwarding")]
  109:         public bool CallForwarding { get; set; }
  110:  
  111:         ////////////////////////////////////////////////////////////////////////////
  112:  
  113:         /// <summary>
  114:         ///
  115:         /// </summary>
  116:         [DataMember(Name = "alarmCall")]
  117:         public bool AlarmCall { get; set; }
  118:  
  119:         ////////////////////////////////////////////////////////////////////////////
  120:  
  121:         /// <summary>
  122:         ///
  123:         /// </summary>
  124:         [DataMember(Name = "internationalCallingUserControlled")]
  125:         public bool InternationalCallingUserControlled { get; set; }
  126:  
  127:         ////////////////////////////////////////////////////////////////////////////
  128:  
  129:         /// <summary>
  130:         ///
  131:         /// </summary>
  132:         [DataMember(Name = "internationalCalling")]
  133:         public bool InternationalCalling { get; set; }
  134:  
  135:         ////////////////////////////////////////////////////////////////////////////
  136:  
  137:         /// <summary>
  138:         ///
  139:         /// </summary>
  140:         [DataMember(Name = "callerId")]
  141:         public bool CallerId { get; set; }
  142:  
  143:         ////////////////////////////////////////////////////////////////////////////
  144:  
  145:         /// <summary>
  146:         ///
  147:         /// </summary>
  148:         [DataMember(Name = "conferenceCall")]
  149:         public bool ConferenceCall { get; set; }
  150:  
  151:         ////////////////////////////////////////////////////////////////////////////
  152:  
  153:         /// <summary>
  154:         ///
  155:         /// </summary>
  156:         [DataMember(Name = "callBarring")]
  157:         public bool CallBarring { get; set; }
  158:  
  159:         ////////////////////////////////////////////////////////////////////////////
  160:  
  161:         /// <summary>
  162:         ///
  163:         /// </summary>
  164:         [DataMember(Name = "serviceSuspension")]
  165:         public bool ServiceSuspension { get; set; }
  166:  
  167:         ////////////////////////////////////////////////////////////////////////////
  168:  
  169:         /// <summary>
  170:         ///
  171:         /// </summary>
  172:         [DataMember(Name = "abbriviatedCalling")]
  173:         public bool AbbriviatedCalling { get; set; }
  174:  
  175:  
  176:         ////////////////////////////////////////////////////////////////////////////
  177:  
  178:         /// <summary>
  179:         ///
  180:         /// </summary>
  181:         public virtual Ia.Ftn.Cl.Model.Access Access { get; set; }
  182:  
  183:         ////////////////////////////////////////////////////////////////////////////
  184:  
  185:         /// <summary>
  186:         ///
  187:         /// </summary>
  188:         [DataMember(Name = "lastRequestDateTime")]
  189:         public DateTime LastRequestDateTime { get; set; }
  190:  
  191:         ////////////////////////////////////////////////////////////////////////////
  192:  
  193:         /// <summary>
  194:         ///
  195:         /// </summary>
  196:         [DataMember(Name = "created")]
  197:         public DateTime Created { get; set; }
  198:  
  199:         ////////////////////////////////////////////////////////////////////////////
  200:  
  201:         /// <summary>
  202:         ///
  203:         /// </summary>
  204:         [DataMember(Name = "updated")]
  205:         public DateTime Updated { get; set; }
  206:  
  207:         ////////////////////////////////////////////////////////////////////////////
  208:         ////////////////////////////////////////////////////////////////////////////
  209:  
  210:         /// <summary>
  211:         ///
  212:         /// </summary>
  213:         public string ToSimpleTextString()
  214:         {
  215:             StringBuilder sb;
  216:  
  217:             sb = new StringBuilder();
  218:  
  219:             sb.AppendLine("Service: " + this.Service);
  220:             sb.AppendLine("Serial: " + this.Serial);
  221:             //sb.AppendLine("ServiceType: " + Ia.Ftn.Cl.Model.Data.ServiceRequest.ServiceSortedList[this.ServiceType].ToString());
  222:             //sb.AppendLine("Type: " + this.Type);
  223:             sb.AppendLine("Provisioned: " + Ia.Cl.Models.Default.YesNoText(this.Provisioned));
  224:             sb.AppendLine("AccessName: " + ((this.Access != null) ? this.Access.Name : string.Empty));
  225:  
  226:             sb.AppendLine("CallWaiting: " + Ia.Cl.Models.Default.YesNoText(this.CallWaiting));
  227:             sb.AppendLine("CallForwarding: " + Ia.Cl.Models.Default.YesNoText(this.CallForwarding));
  228:             sb.AppendLine("AlarmCall: " + Ia.Cl.Models.Default.YesNoText(this.AlarmCall));
  229:             sb.AppendLine("InternationalCallingUserControlled: " + Ia.Cl.Models.Default.YesNoText(this.InternationalCallingUserControlled));
  230:             sb.AppendLine("InternationalCalling: " + Ia.Cl.Models.Default.YesNoText(this.InternationalCalling));
  231:             sb.AppendLine("CallerId: " + Ia.Cl.Models.Default.YesNoText(this.CallerId));
  232:             sb.AppendLine("ConferenceCall: " + Ia.Cl.Models.Default.YesNoText(this.ConferenceCall));
  233:             sb.AppendLine("CallBarring: " + Ia.Cl.Models.Default.YesNoText(this.AbbriviatedCalling));
  234:             sb.AppendLine("ServiceSuspension: " + Ia.Cl.Models.Default.YesNoText(this.CallBarring));
  235:             sb.AppendLine("AbbriviatedCalling: " + Ia.Cl.Models.Default.YesNoText(this.ServiceSuspension));
  236:             sb.AppendLine("LastRequestDateTime: " + this.LastRequestDateTime.ToString("yyyy-MM-dd HH:mm"));
  237:  
  238:             return sb.ToString();
  239:         }
  240:  
  241:         ////////////////////////////////////////////////////////////////////////////
  242:         ////////////////////////////////////////////////////////////////////////////
  243:     }
  244:  
  245:     ////////////////////////////////////////////////////////////////////////////
  246:     ////////////////////////////////////////////////////////////////////////////
  247: }