Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » ServiceRequestService

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

Service Request Service Entity Framework class for Next Generation Network (NGN) UI model.

   1:  using System;
   2:  using System.Collections;
   3:  using System.Collections.Generic;
   4:  using System.Linq;
   5:  using System.ComponentModel.DataAnnotations;
   6:  using System.ComponentModel.DataAnnotations.Schema;
   7:  using System.Data;
   8:  using System.Data.Entity;
   9:  using EntityFramework.Triggers;
  10:  using System.Runtime.Serialization;
  11:  using System.Text;
  12:   
  13:  namespace Ia.Ngn.Cl.Model.Ui
  14:  {
  15:      ////////////////////////////////////////////////////////////////////////////
  16:   
  17:      /// <summary publish="true">
  18:      /// Service Request Service Entity Framework class for Next Generation Network (NGN) UI model.
  19:      /// </summary>
  20:      /// 
  21:      /// <remarks> 
  22:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  23:      ///
  24:      /// 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
  25:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  26:      ///
  27:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  28:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  29:      /// 
  30:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  31:      /// 
  32:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  33:      /// </remarks> 
  34:      [DataContract(IsReference = true, Namespace = "kw.com.ia.ngn.api", Name = "ServiceRequestService")]
  35:      public partial class ServiceRequestService
  36:      {
  37:          ////////////////////////////////////////////////////////////////////////////
  38:   
  39:          /// <summary>
  40:          ///
  41:          /// </summary>
  42:          public ServiceRequestService()
  43:          {
  44:   
  45:          }
  46:   
  47:          ////////////////////////////////////////////////////////////////////////////
  48:   
  49:          /// <summary>
  50:          ///
  51:          /// </summary>
  52:          [DataMember(Name = "id")]
  53:          public string Id { get; set; }
  54:   
  55:          ////////////////////////////////////////////////////////////////////////////
  56:   
  57:          /// <summary>
  58:          ///
  59:          /// </summary>
  60:          [DataMember(Name = "service")]
  61:          public string Service { 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.Ngn.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("ServiceType: " + Ia.Ngn.Cl.Model.Data.ServiceRequest.ServiceSortedList[this.ServiceType].ToString());
 221:              //sb.AppendLine("Type: " + this.Type);
 222:              sb.AppendLine("Provisioned: " + Ia.Cl.Model.Default.YesNoText(this.Provisioned));
 223:              sb.AppendLine("AccessName: " + ((this.Access != null) ? this.Access.Name : string.Empty));
 224:   
 225:              sb.AppendLine("CallWaiting: " + Ia.Cl.Model.Default.YesNoText(this.CallWaiting));
 226:              sb.AppendLine("CallForwarding: " + Ia.Cl.Model.Default.YesNoText(this.CallForwarding));
 227:              sb.AppendLine("AlarmCall: " + Ia.Cl.Model.Default.YesNoText(this.AlarmCall));
 228:              sb.AppendLine("InternationalCallingUserControlled: " + Ia.Cl.Model.Default.YesNoText(this.InternationalCallingUserControlled));
 229:              sb.AppendLine("InternationalCalling: " + Ia.Cl.Model.Default.YesNoText(this.InternationalCalling));
 230:              sb.AppendLine("CallerId: " + Ia.Cl.Model.Default.YesNoText(this.CallerId));
 231:              sb.AppendLine("ConferenceCall: " + Ia.Cl.Model.Default.YesNoText(this.ConferenceCall));
 232:              sb.AppendLine("CallBarring: " + Ia.Cl.Model.Default.YesNoText(this.AbbriviatedCalling));
 233:              sb.AppendLine("ServiceSuspension: " + Ia.Cl.Model.Default.YesNoText(this.CallBarring));
 234:              sb.AppendLine("AbbriviatedCalling: " + Ia.Cl.Model.Default.YesNoText(this.ServiceSuspension));
 235:              sb.AppendLine("LastRequestDateTime: " + this.LastRequestDateTime.ToString("yyyy-MM-dd HH:mm"));
 236:   
 237:              return sb.ToString();
 238:          }
 239:   
 240:          ////////////////////////////////////////////////////////////////////////////
 241:          ////////////////////////////////////////////////////////////////////////////
 242:      }
 243:   
 244:      ////////////////////////////////////////////////////////////////////////////
 245:      ////////////////////////////////////////////////////////////////////////////
 246:  }