شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة ش.ش.و.

Integrated Applications Programming Company

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) entity model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.ComponentModel.DataAnnotations;
   4:  using System.ComponentModel.DataAnnotations.Schema;
   5:   
   6:  namespace Ia.Ngn.Cl.Model
   7:  {
   8:      ////////////////////////////////////////////////////////////////////////////
   9:   
  10:      /// <summary publish="true">
  11:      /// Service Request Service Entity Framework class for Next Generation Network (NGN) entity model.
  12:      /// </summary>
  13:      /// 
  14:      /// <remarks> 
  15:      /// Copyright © 2006-2019 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
  16:      ///
  17:      /// 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
  18:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  19:      ///
  20:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  21:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  22:      /// 
  23:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  24:      /// 
  25:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  26:      /// </remarks> 
  27:      public partial class ServiceRequestService //: ITriggerable
  28:      {
  29:          /// <summary/>
  30:          public ServiceRequestService()
  31:          {
  32:              //this.Triggers().Inserting += entry => { TriggeredInstanceQueue.Enqueue(entry.Entity); };
  33:              //this.Triggers().Updating += entry => { TriggeredInstanceQueue.Enqueue(entry.Entity); };
  34:              //this.Triggers().Deleting += entry => { TriggeredInstanceQueue.Enqueue(entry.Entity); };
  35:          }
  36:   
  37:          /// <summary/>
  38:          [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  39:          public string Id { get; set; }
  40:   
  41:          /// <summary/>
  42:          public string Service { get; set; }
  43:   
  44:          /// <summary/>
  45:          public int Serial { get; set; }
  46:   
  47:          /// <summary/>
  48:          public int ServiceType { get; set; }
  49:   
  50:          /// <summary/>
  51:          public int Type { get; set; }
  52:   
  53:          /// <summary/>
  54:          public bool Provisioned { get; set; }
  55:   
  56:          /// <summary/>
  57:          public int AreaCode { get; set; }
  58:   
  59:          /// <summary/>
  60:          public bool CallWaiting { get; set; }
  61:   
  62:          /// <summary/>
  63:          public bool CallForwarding { get; set; }
  64:   
  65:          /// <summary/>
  66:          public bool AlarmCall { get; set; }
  67:   
  68:          /// <summary/>
  69:          public bool InternationalCallingUserControlled { get; set; }
  70:   
  71:          /// <summary/>
  72:          public bool InternationalCalling { get; set; }
  73:   
  74:          /// <summary/>
  75:          public bool CallerId { get; set; }
  76:   
  77:          /// <summary/>
  78:          public bool WakeupCall { get; set; }
  79:   
  80:          /// <summary/>
  81:          public bool ConferenceCall { get; set; }
  82:   
  83:          /// <summary/>
  84:          public bool CallBarring { get; set; }
  85:   
  86:          /// <summary/>
  87:          public bool ServiceSuspension { get; set; }
  88:   
  89:          /// <summary/>
  90:          public int ServiceSuspensionTypeId { get; set; }
  91:   
  92:          /// <summary/>
  93:          public bool AbbriviatedCalling { get; set; }
  94:   
  95:          /// <summary/>
  96:          public bool CallForwardingUnconditional { get; set; }
  97:   
  98:          /// <summary/>
  99:          public bool CallingLineIdentificationRestriction { get; set; }
 100:   
 101:          /// <summary/>
 102:          public bool ConnectedLineIdentificationRestriction { get; set; }
 103:   
 104:          /// <summary/>
 105:          public bool WakeUp { get; set; }
 106:   
 107:          /// <summary/>
 108:          public bool CallForwardingByTime { get; set; }
 109:   
 110:          /// <summary/>
 111:          public bool MutlimediaInformationPresentation { get; set; }
 112:   
 113:          /// <summary/>
 114:          public bool SelectiveOutgoingCallBarring { get; set; }
 115:   
 116:          /// <summary/>
 117:          public bool DialNumberCallOutAllow { get; set; }
 118:   
 119:          /// <summary/>
 120:          public bool DoNotDisturb { get; set; }
 121:   
 122:          /// <summary/>
 123:          public bool OutgoingCallBarring { get; set; }
 124:   
 125:          /// <summary/>
 126:          public bool TemporaryLine { get; set; }
 127:   
 128:          /// <summary/>
 129:          public bool CodecControl { get; set; }
 130:   
 131:          /// <summary/>
 132:          public bool SelectiveIncomingCallBarring { get; set; }
 133:   
 134:          /// <summary/>
 135:          public bool SelectiveCallForwarding { get; set; }
 136:   
 137:          /// <summary/>
 138:          public bool DialNumberCallOutBarring { get; set; }
 139:   
 140:          /// <summary/>
 141:          public bool CallForwardingBasedonBlackList { get; set; }
 142:   
 143:          /// <summary/>
 144:          public bool CallForwardingBusy { get; set; }
 145:   
 146:          /// <summary/>
 147:          public bool CallForwardingNoReply { get; set; }
 148:   
 149:          /// <summary/>
 150:          public bool CallForwardingOffline { get; set; }
 151:   
 152:          /// <summary/>
 153:          public bool CallForwardingOnUserNotReachable { get; set; }
 154:   
 155:          /// <summary/>
 156:          public bool CallForwardingNoReplyinCallWaiting { get; set; }
 157:   
 158:          /// <summary/>
 159:          public bool MultiRinging { get; set; }
 160:   
 161:          /// <summary/>
 162:          public bool ConvergentInterPersonalService { get; set; }
 163:   
 164:          /// <summary/>
 165:          public bool CallForwardingBySequence { get; set; }
 166:   
 167:          /// <summary/>
 168:          public bool UserNumberChange { get; set; }
 169:   
 170:          /// <summary/>
 171:          public bool BlackNumberData { get; set; }
 172:   
 173:          /// <summary/>
 174:          public bool WhiteNumberData { get; set; }
 175:   
 176:          /// <summary/>
 177:          public bool OwedRestriction { get; set; }
 178:   
 179:          /// <summary/>
 180:          public bool Strategy { get; set; }
 181:   
 182:          /// <summary/>
 183:          public bool GreenNumberData { get; set; }
 184:   
 185:          /// <summary/>
 186:          public bool RedNumberData { get; set; }
 187:   
 188:          /// <summary/>
 189:          public bool BarringOfAllOutgoingCalls { get; set; }
 190:   
 191:          /// <summary/>
 192:          public bool BarringOfAllOutgoingInternationalCalls { get; set; }
 193:   
 194:          /// <summary/>
 195:          public bool BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry { get; set; }
 196:   
 197:          /// <summary/>
 198:          public bool BarringOfAllIncomingCalls { get; set; }
 199:   
 200:          /// <summary/>
 201:          public bool BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry { get; set; }
 202:   
 203:          /// <summary/>
 204:          public bool SpeedDial { get; set; }
 205:   
 206:          /// <summary/>
 207:          public bool GreenCall { get; set; }
 208:   
 209:          /// <summary/>
 210:          public bool SetDataUpgrade { get; set; }
 211:   
 212:          /// <summary/>
 213:          public bool AutoConsole { get; set; }
 214:   
 215:          /// <summary/>
 216:          public bool NightService { get; set; }
 217:   
 218:          /// <summary/>
 219:          public bool BackupNumber { get; set; }
 220:   
 221:          /// <summary/>
 222:          public bool Absence { get; set; }
 223:   
 224:          /// <summary/>
 225:          public bool AuthorizedCodeForStdIdd { get; set; }
 226:   
 227:          /// <summary/>
 228:          public bool Hotline { get; set; }
 229:   
 230:          /// <summary/>
 231:          public bool CetMaliciousCommunicationIdentification { get; set; }
 232:   
 233:          /// <summary/>
 234:          public bool MissCallNotify { get; set; }
 235:   
 236:          /// <summary/>
 237:          public bool SubscriptionStatus { get; set; }
 238:   
 239:          /// <summary/>
 240:          public bool UsbDongleOneKeyService { get; set; }
 241:   
 242:          /// <summary/>
 243:          public bool IRoamingInboundSingleImsiMultiMsisdn { get; set; }
 244:   
 245:          /// <summary/>
 246:          public bool IRoamingOutboundSingleImsiMultiMsisdn { get; set; }
 247:   
 248:          /// <summary/>
 249:          public bool NpaSplit { get; set; }
 250:   
 251:          /// <summary/>
 252:          public bool AllCallForwardingGroup { get; set; }
 253:   
 254:          /// <summary/>
 255:          public bool ConditionalCallForwardingGroup { get; set; }
 256:   
 257:          /// <summary/>
 258:          public bool GeneralOrigIdentificationRestriction { get; set; }
 259:   
 260:          /// <summary/>
 261:          public bool MultimediaOfOrigIdRestriction { get; set; }
 262:   
 263:          /// <summary/>
 264:          public bool TerminatingIdentityRestriction { get; set; }
 265:   
 266:          /// <summary/>
 267:          public bool DistinctiveRing { get; set; }
 268:   
 269:          /// <summary/>
 270:          public bool VisitedNetworkImpu { get; set; }
 271:   
 272:          /// <summary/>
 273:          public bool SeasonalSuspend { get; set; }
 274:   
 275:          /// <summary/>
 276:          public bool NumberInvalidation { get; set; }
 277:   
 278:          /// <summary/>
 279:          public bool IroamingServiceProvision { get; set; }
 280:   
 281:          /// <summary/>
 282:          public bool IptvCallerId { get; set; }
 283:   
 284:          /// <summary/>
 285:          public bool IptvVideoCall { get; set; }
 286:   
 287:          /// <summary/>
 288:          public bool NumberPortability { get; set; }
 289:   
 290:          /// <summary/>
 291:          public bool SecretaryService { get; set; }
 292:   
 293:          /// <summary/>
 294:          public bool SalesBlock { get; set; }
 295:   
 296:          /// <summary/>
 297:          public bool FilterCriteria { get; set; }
 298:   
 299:          /// <summary/>
 300:          public bool CallerInformation { get; set; }
 301:   
 302:          /// <summary/>
 303:          public bool PresenceStatus { get; set; }
 304:   
 305:          /// <summary/>
 306:          public bool OneNumberService { get; set; }
 307:   
 308:          /// <summary/>
 309:          public bool AssociationList { get; set; }
 310:   
 311:          /// <summary/>
 312:          public int Pin { get; set; }
 313:   
 314:          /// <summary/>
 315:          [ForeignKey("Access_Id")]
 316:          public virtual Access Access { get; set; }
 317:   
 318:          /// <summary/>
 319:          public virtual ICollection<ServiceRequest> ServiceRequests { get; set; }
 320:   
 321:          /// <summary/>
 322:          public DateTime LastRequestDateTime { get; set; }
 323:   
 324:          /// <summary/>
 325:          public DateTime Created { get; set; }
 326:   
 327:          /// <summary/>
 328:          public DateTime Updated { get; set; }
 329:   
 330:          /// <summary/>
 331:          public System.Guid UserId { get; set; }
 332:   
 333:          /// <summary/>
 334:          [NotMapped]
 335:          public static Queue<ServiceRequestService> TriggeredInstanceQueue = new Queue<ServiceRequestService>();
 336:   
 337:          ////////////////////////////////////////////////////////////////////////////
 338:   
 339:          /// <summary>
 340:          /// 
 341:          /// </summary>
 342:          public static bool operator ==(ServiceRequestService obj1, ServiceRequestService obj2)
 343:          {
 344:              if (ReferenceEquals(obj1, obj2))
 345:              {
 346:                  return true;
 347:              }
 348:   
 349:              if (obj1 is null)
 350:              {
 351:                  return false;
 352:              }
 353:              if (obj2 is null)
 354:              {
 355:                  return false;
 356:              }
 357:   
 358:              return (obj1.Id == obj2.Id &&
 359:              obj1.Service == obj2.Service &&
 360:              obj1.Serial == obj2.Serial &&
 361:              obj1.Provisioned == obj2.Provisioned &&
 362:              obj1.CallWaiting == obj2.CallWaiting &&
 363:              obj1.InternationalCallingUserControlled == obj2.InternationalCallingUserControlled &&
 364:              obj1.CallerId == obj2.CallerId &&
 365:              obj1.CallForwarding == obj2.CallForwarding &&
 366:              obj1.CallBarring == obj2.CallBarring &&
 367:              obj1.ConferenceCall == obj2.ConferenceCall &&
 368:              obj1.AbbriviatedCalling == obj2.AbbriviatedCalling &&
 369:              obj1.InternationalCalling == obj2.InternationalCalling &&
 370:              obj1.AlarmCall == obj2.AlarmCall &&
 371:              obj1.WakeupCall == obj2.WakeupCall &&
 372:              obj1.BarringOfAllOutgoingCalls == obj2.BarringOfAllOutgoingCalls &&
 373:              obj1.BarringOfAllIncomingCalls == obj2.BarringOfAllIncomingCalls);
 374:          }
 375:   
 376:          ////////////////////////////////////////////////////////////////////////////
 377:   
 378:          /// <summary>
 379:          /// 
 380:          /// </summary>
 381:          public static bool operator !=(ServiceRequestService obj1, ServiceRequestService obj2)
 382:          {
 383:              return !(obj1 == obj2);
 384:          }
 385:   
 386:          ////////////////////////////////////////////////////////////////////////////
 387:   
 388:          /// <summary>
 389:          /// 
 390:          /// </summary>
 391:          public bool Equals(ServiceRequestService obj1)
 392:          {
 393:              if (obj1 is null)
 394:              {
 395:                  return false;
 396:              }
 397:              if (ReferenceEquals(this, obj1))
 398:              {
 399:                  return true;
 400:              }
 401:   
 402:              return (obj1.Id == Id &&
 403:              obj1.Service == Service &&
 404:              obj1.Serial == Serial &&
 405:              obj1.Provisioned == Provisioned &&
 406:              obj1.CallWaiting == CallWaiting &&
 407:              obj1.InternationalCallingUserControlled == InternationalCallingUserControlled &&
 408:              obj1.CallerId == CallerId &&
 409:              obj1.CallForwarding == CallForwarding &&
 410:              obj1.CallBarring == CallBarring &&
 411:              obj1.ConferenceCall == ConferenceCall &&
 412:              obj1.AbbriviatedCalling == AbbriviatedCalling &&
 413:              obj1.InternationalCalling == InternationalCalling &&
 414:              obj1.AlarmCall == AlarmCall &&
 415:              obj1.WakeupCall == WakeupCall &&
 416:              obj1.BarringOfAllOutgoingCalls == BarringOfAllOutgoingCalls &&
 417:              obj1.BarringOfAllIncomingCalls == BarringOfAllIncomingCalls);
 418:          }
 419:   
 420:          ////////////////////////////////////////////////////////////////////////////
 421:   
 422:          /// <summary>
 423:          /// 
 424:          /// </summary>
 425:          public override bool Equals(object obj)
 426:          {
 427:              if (obj is null)
 428:              {
 429:                  return false;
 430:              }
 431:              if (ReferenceEquals(this, obj))
 432:              {
 433:                  return true;
 434:              }
 435:   
 436:              return obj.GetType() == GetType() && Equals((ServiceRequestService)obj);
 437:          }
 438:   
 439:          ////////////////////////////////////////////////////////////////////////////
 440:   
 441:          /// <summary>
 442:          /// 
 443:          /// </summary>
 444:          public override int GetHashCode()
 445:          {
 446:              unchecked
 447:              {
 448:                  int hashCode = Id.GetHashCode();
 449:                  hashCode = (hashCode * 397) ^ Service.GetHashCode();
 450:                  hashCode = (hashCode * 397) ^ Serial.GetHashCode();
 451:                  hashCode = (hashCode * 397) ^ Provisioned.GetHashCode();
 452:                  hashCode = (hashCode * 397) ^ CallWaiting.GetHashCode();
 453:                  hashCode = (hashCode * 397) ^ InternationalCallingUserControlled.GetHashCode();
 454:                  hashCode = (hashCode * 397) ^ CallerId.GetHashCode();
 455:                  hashCode = (hashCode * 397) ^ CallForwarding.GetHashCode();
 456:                  hashCode = (hashCode * 397) ^ CallBarring.GetHashCode();
 457:                  hashCode = (hashCode * 397) ^ ConferenceCall.GetHashCode();
 458:                  hashCode = (hashCode * 397) ^ AbbriviatedCalling.GetHashCode();
 459:                  hashCode = (hashCode * 397) ^ InternationalCalling.GetHashCode();
 460:                  hashCode = (hashCode * 397) ^ AlarmCall.GetHashCode();
 461:                  hashCode = (hashCode * 397) ^ WakeupCall.GetHashCode();
 462:                  hashCode = (hashCode * 397) ^ BarringOfAllOutgoingCalls.GetHashCode();
 463:                  hashCode = (hashCode * 397) ^ BarringOfAllIncomingCalls.GetHashCode();
 464:                  return hashCode;
 465:              }
 466:          }
 467:   
 468:          ////////////////////////////////////////////////////////////////////////////
 469:   
 470:          /// <summary>
 471:          ///
 472:          /// </summary>
 473:          public bool Update(ServiceRequestService updatedServiceRequestService)
 474:          {
 475:              // below: this will not update Id, Created
 476:              bool updated;
 477:   
 478:              updated = false;
 479:   
 480:              if (this.Service != updatedServiceRequestService.Service) { this.Service = updatedServiceRequestService.Service; updated = true; }
 481:              if (this.Serial != updatedServiceRequestService.Serial) { this.Serial = updatedServiceRequestService.Serial; updated = true; }
 482:              if (this.ServiceType != updatedServiceRequestService.ServiceType) { this.ServiceType = updatedServiceRequestService.ServiceType; updated = true; }
 483:              if (this.Type != updatedServiceRequestService.Type) { this.Type = updatedServiceRequestService.Type; updated = true; }
 484:              if (this.Provisioned != updatedServiceRequestService.Provisioned) { this.Provisioned = updatedServiceRequestService.Provisioned; updated = true; }
 485:              if (this.AreaCode != updatedServiceRequestService.AreaCode) { this.AreaCode = updatedServiceRequestService.AreaCode; updated = true; }
 486:              if (this.CallWaiting != updatedServiceRequestService.CallWaiting) { this.CallWaiting = updatedServiceRequestService.CallWaiting; updated = true; }
 487:              if (this.CallForwarding != updatedServiceRequestService.CallForwarding) { this.CallForwarding = updatedServiceRequestService.CallForwarding; updated = true; }
 488:   
 489:              if (this.AlarmCall != updatedServiceRequestService.AlarmCall) { this.AlarmCall = updatedServiceRequestService.AlarmCall; updated = true; }
 490:              if (this.WakeupCall != updatedServiceRequestService.WakeupCall) { this.WakeupCall = updatedServiceRequestService.WakeupCall; updated = true; }
 491:   
 492:              if (this.CallBarring != updatedServiceRequestService.CallBarring) { this.CallBarring = updatedServiceRequestService.CallBarring; updated = true; }
 493:              if (this.InternationalCallingUserControlled != updatedServiceRequestService.InternationalCallingUserControlled) { this.InternationalCallingUserControlled = updatedServiceRequestService.InternationalCallingUserControlled; updated = true; }
 494:              if (this.InternationalCalling != updatedServiceRequestService.InternationalCalling) { this.InternationalCalling = updatedServiceRequestService.InternationalCalling; updated = true; }
 495:              if (this.CallerId != updatedServiceRequestService.CallerId) { this.CallerId = updatedServiceRequestService.CallerId; updated = true; }
 496:              if (this.ConferenceCall != updatedServiceRequestService.ConferenceCall) { this.ConferenceCall = updatedServiceRequestService.ConferenceCall; updated = true; }
 497:              if (this.ServiceSuspensionTypeId != updatedServiceRequestService.ServiceSuspensionTypeId) { this.ServiceSuspensionTypeId = updatedServiceRequestService.ServiceSuspensionTypeId; updated = true; }
 498:              if (this.AbbriviatedCalling != updatedServiceRequestService.AbbriviatedCalling) { this.AbbriviatedCalling = updatedServiceRequestService.AbbriviatedCalling; updated = true; }
 499:              if (this.CallForwardingUnconditional != updatedServiceRequestService.CallForwardingUnconditional) { this.CallForwardingUnconditional = updatedServiceRequestService.CallForwardingUnconditional; updated = true; }
 500:              if (this.CallingLineIdentificationRestriction != updatedServiceRequestService.CallingLineIdentificationRestriction) { this.CallingLineIdentificationRestriction = updatedServiceRequestService.CallingLineIdentificationRestriction; updated = true; }
 501:              if (this.ConnectedLineIdentificationRestriction != updatedServiceRequestService.ConnectedLineIdentificationRestriction) { this.ConnectedLineIdentificationRestriction = updatedServiceRequestService.ConnectedLineIdentificationRestriction; updated = true; }
 502:              if (this.WakeUp != updatedServiceRequestService.WakeUp) { this.WakeUp = updatedServiceRequestService.WakeUp; updated = true; }
 503:              if (this.CallForwardingByTime != updatedServiceRequestService.CallForwardingByTime) { this.CallForwardingByTime = updatedServiceRequestService.CallForwardingByTime; updated = true; }
 504:              if (this.MutlimediaInformationPresentation != updatedServiceRequestService.MutlimediaInformationPresentation) { this.MutlimediaInformationPresentation = updatedServiceRequestService.MutlimediaInformationPresentation; updated = true; }
 505:              if (this.SelectiveOutgoingCallBarring != updatedServiceRequestService.SelectiveOutgoingCallBarring) { this.SelectiveOutgoingCallBarring = updatedServiceRequestService.SelectiveOutgoingCallBarring; updated = true; }
 506:              if (this.DialNumberCallOutAllow != updatedServiceRequestService.DialNumberCallOutAllow) { this.DialNumberCallOutAllow = updatedServiceRequestService.DialNumberCallOutAllow; updated = true; }
 507:              if (this.DoNotDisturb != updatedServiceRequestService.DoNotDisturb) { this.DoNotDisturb = updatedServiceRequestService.DoNotDisturb; updated = true; }
 508:              if (this.OutgoingCallBarring != updatedServiceRequestService.OutgoingCallBarring) { this.OutgoingCallBarring = updatedServiceRequestService.OutgoingCallBarring; updated = true; }
 509:              if (this.TemporaryLine != updatedServiceRequestService.TemporaryLine) { this.TemporaryLine = updatedServiceRequestService.TemporaryLine; updated = true; }
 510:              if (this.CodecControl != updatedServiceRequestService.CodecControl) { this.CodecControl = updatedServiceRequestService.CodecControl; updated = true; }
 511:              if (this.SelectiveIncomingCallBarring != updatedServiceRequestService.SelectiveIncomingCallBarring) { this.SelectiveIncomingCallBarring = updatedServiceRequestService.SelectiveIncomingCallBarring; updated = true; }
 512:              if (this.SelectiveCallForwarding != updatedServiceRequestService.SelectiveCallForwarding) { this.SelectiveCallForwarding = updatedServiceRequestService.SelectiveCallForwarding; updated = true; }
 513:              if (this.DialNumberCallOutBarring != updatedServiceRequestService.DialNumberCallOutBarring) { this.DialNumberCallOutBarring = updatedServiceRequestService.DialNumberCallOutBarring; updated = true; }
 514:              if (this.CallForwardingBasedonBlackList != updatedServiceRequestService.CallForwardingBasedonBlackList) { this.CallForwardingBasedonBlackList = updatedServiceRequestService.CallForwardingBasedonBlackList; updated = true; }
 515:              if (this.CallForwardingBusy != updatedServiceRequestService.CallForwardingBusy) { this.CallForwardingBusy = updatedServiceRequestService.CallForwardingBusy; updated = true; }
 516:              if (this.CallForwardingNoReply != updatedServiceRequestService.CallForwardingNoReply) { this.CallForwardingNoReply = updatedServiceRequestService.CallForwardingNoReply; updated = true; }
 517:              if (this.CallForwardingOffline != updatedServiceRequestService.CallForwardingOffline) { this.CallForwardingOffline = updatedServiceRequestService.CallForwardingOffline; updated = true; }
 518:              if (this.CallForwardingOnUserNotReachable != updatedServiceRequestService.CallForwardingOnUserNotReachable) { this.CallForwardingOnUserNotReachable = updatedServiceRequestService.CallForwardingOnUserNotReachable; updated = true; }
 519:              if (this.CallForwardingNoReplyinCallWaiting != updatedServiceRequestService.CallForwardingNoReplyinCallWaiting) { this.CallForwardingNoReplyinCallWaiting = updatedServiceRequestService.CallForwardingNoReplyinCallWaiting; updated = true; }
 520:              if (this.MultiRinging != updatedServiceRequestService.MultiRinging) { this.MultiRinging = updatedServiceRequestService.MultiRinging; updated = true; }
 521:              if (this.ConvergentInterPersonalService != updatedServiceRequestService.ConvergentInterPersonalService) { this.ConvergentInterPersonalService = updatedServiceRequestService.ConvergentInterPersonalService; updated = true; }
 522:              if (this.CallForwardingBySequence != updatedServiceRequestService.CallForwardingBySequence) { this.CallForwardingBySequence = updatedServiceRequestService.CallForwardingBySequence; updated = true; }
 523:              if (this.UserNumberChange != updatedServiceRequestService.UserNumberChange) { this.UserNumberChange = updatedServiceRequestService.UserNumberChange; updated = true; }
 524:              if (this.BlackNumberData != updatedServiceRequestService.BlackNumberData) { this.BlackNumberData = updatedServiceRequestService.BlackNumberData; updated = true; }
 525:              if (this.WhiteNumberData != updatedServiceRequestService.WhiteNumberData) { this.WhiteNumberData = updatedServiceRequestService.WhiteNumberData; updated = true; }
 526:              if (this.OwedRestriction != updatedServiceRequestService.OwedRestriction) { this.OwedRestriction = updatedServiceRequestService.OwedRestriction; updated = true; }
 527:              if (this.Strategy != updatedServiceRequestService.Strategy) { this.Strategy = updatedServiceRequestService.Strategy; updated = true; }
 528:              if (this.GreenNumberData != updatedServiceRequestService.GreenNumberData) { this.GreenNumberData = updatedServiceRequestService.GreenNumberData; updated = true; }
 529:              if (this.RedNumberData != updatedServiceRequestService.RedNumberData) { this.RedNumberData = updatedServiceRequestService.RedNumberData; updated = true; }
 530:              if (this.BarringOfAllOutgoingCalls != updatedServiceRequestService.BarringOfAllOutgoingCalls) { this.BarringOfAllOutgoingCalls = updatedServiceRequestService.BarringOfAllOutgoingCalls; updated = true; }
 531:              if (this.BarringOfAllOutgoingInternationalCalls != updatedServiceRequestService.BarringOfAllOutgoingInternationalCalls) { this.BarringOfAllOutgoingInternationalCalls = updatedServiceRequestService.BarringOfAllOutgoingInternationalCalls; updated = true; }
 532:              if (this.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry != updatedServiceRequestService.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry) { this.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry = updatedServiceRequestService.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry; updated = true; }
 533:              if (this.BarringOfAllIncomingCalls != updatedServiceRequestService.BarringOfAllIncomingCalls) { this.BarringOfAllIncomingCalls = updatedServiceRequestService.BarringOfAllIncomingCalls; updated = true; }
 534:              if (this.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry != updatedServiceRequestService.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry) { this.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry = updatedServiceRequestService.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry; updated = true; }
 535:              if (this.SpeedDial != updatedServiceRequestService.SpeedDial) { this.SpeedDial = updatedServiceRequestService.SpeedDial; updated = true; }
 536:              if (this.GreenCall != updatedServiceRequestService.GreenCall) { this.GreenCall = updatedServiceRequestService.GreenCall; updated = true; }
 537:              if (this.SetDataUpgrade != updatedServiceRequestService.SetDataUpgrade) { this.SetDataUpgrade = updatedServiceRequestService.SetDataUpgrade; updated = true; }
 538:              if (this.AutoConsole != updatedServiceRequestService.AutoConsole) { this.AutoConsole = updatedServiceRequestService.AutoConsole; updated = true; }
 539:              if (this.NightService != updatedServiceRequestService.NightService) { this.NightService = updatedServiceRequestService.NightService; updated = true; }
 540:              if (this.BackupNumber != updatedServiceRequestService.BackupNumber) { this.BackupNumber = updatedServiceRequestService.BackupNumber; updated = true; }
 541:              if (this.Absence != updatedServiceRequestService.Absence) { this.Absence = updatedServiceRequestService.Absence; updated = true; }
 542:              if (this.AuthorizedCodeForStdIdd != updatedServiceRequestService.AuthorizedCodeForStdIdd) { this.AuthorizedCodeForStdIdd = updatedServiceRequestService.AuthorizedCodeForStdIdd; updated = true; }
 543:              if (this.Hotline != updatedServiceRequestService.Hotline) { this.Hotline = updatedServiceRequestService.Hotline; updated = true; }
 544:              if (this.CetMaliciousCommunicationIdentification != updatedServiceRequestService.CetMaliciousCommunicationIdentification) { this.CetMaliciousCommunicationIdentification = updatedServiceRequestService.CetMaliciousCommunicationIdentification; updated = true; }
 545:              if (this.MissCallNotify != updatedServiceRequestService.MissCallNotify) { this.MissCallNotify = updatedServiceRequestService.MissCallNotify; updated = true; }
 546:              if (this.SubscriptionStatus != updatedServiceRequestService.SubscriptionStatus) { this.SubscriptionStatus = updatedServiceRequestService.SubscriptionStatus; updated = true; }
 547:              if (this.UsbDongleOneKeyService != updatedServiceRequestService.UsbDongleOneKeyService) { this.UsbDongleOneKeyService = updatedServiceRequestService.UsbDongleOneKeyService; updated = true; }
 548:              if (this.IRoamingInboundSingleImsiMultiMsisdn != updatedServiceRequestService.IRoamingInboundSingleImsiMultiMsisdn) { this.IRoamingInboundSingleImsiMultiMsisdn = updatedServiceRequestService.IRoamingInboundSingleImsiMultiMsisdn; updated = true; }
 549:              if (this.IRoamingOutboundSingleImsiMultiMsisdn != updatedServiceRequestService.IRoamingOutboundSingleImsiMultiMsisdn) { this.IRoamingOutboundSingleImsiMultiMsisdn = updatedServiceRequestService.IRoamingOutboundSingleImsiMultiMsisdn; updated = true; }
 550:              if (this.NpaSplit != updatedServiceRequestService.NpaSplit) { this.NpaSplit = updatedServiceRequestService.NpaSplit; updated = true; }
 551:              if (this.AllCallForwardingGroup != updatedServiceRequestService.AllCallForwardingGroup) { this.AllCallForwardingGroup = updatedServiceRequestService.AllCallForwardingGroup; updated = true; }
 552:              if (this.ConditionalCallForwardingGroup != updatedServiceRequestService.ConditionalCallForwardingGroup) { this.ConditionalCallForwardingGroup = updatedServiceRequestService.ConditionalCallForwardingGroup; updated = true; }
 553:              if (this.GeneralOrigIdentificationRestriction != updatedServiceRequestService.GeneralOrigIdentificationRestriction) { this.GeneralOrigIdentificationRestriction = updatedServiceRequestService.GeneralOrigIdentificationRestriction; updated = true; }
 554:              if (this.MultimediaOfOrigIdRestriction != updatedServiceRequestService.MultimediaOfOrigIdRestriction) { this.MultimediaOfOrigIdRestriction = updatedServiceRequestService.MultimediaOfOrigIdRestriction; updated = true; }
 555:              if (this.TerminatingIdentityRestriction != updatedServiceRequestService.TerminatingIdentityRestriction) { this.TerminatingIdentityRestriction = updatedServiceRequestService.TerminatingIdentityRestriction; updated = true; }
 556:              if (this.DistinctiveRing != updatedServiceRequestService.DistinctiveRing) { this.DistinctiveRing = updatedServiceRequestService.DistinctiveRing; updated = true; }
 557:              if (this.VisitedNetworkImpu != updatedServiceRequestService.VisitedNetworkImpu) { this.VisitedNetworkImpu = updatedServiceRequestService.VisitedNetworkImpu; updated = true; }
 558:              if (this.SeasonalSuspend != updatedServiceRequestService.SeasonalSuspend) { this.SeasonalSuspend = updatedServiceRequestService.SeasonalSuspend; updated = true; }
 559:              if (this.NumberInvalidation != updatedServiceRequestService.NumberInvalidation) { this.NumberInvalidation = updatedServiceRequestService.NumberInvalidation; updated = true; }
 560:              if (this.IroamingServiceProvision != updatedServiceRequestService.IroamingServiceProvision) { this.IroamingServiceProvision = updatedServiceRequestService.IroamingServiceProvision; updated = true; }
 561:              if (this.IptvCallerId != updatedServiceRequestService.IptvCallerId) { this.IptvCallerId = updatedServiceRequestService.IptvCallerId; updated = true; }
 562:              if (this.IptvVideoCall != updatedServiceRequestService.IptvVideoCall) { this.IptvVideoCall = updatedServiceRequestService.IptvVideoCall; updated = true; }
 563:              if (this.NumberPortability != updatedServiceRequestService.NumberPortability) { this.NumberPortability = updatedServiceRequestService.NumberPortability; updated = true; }
 564:              if (this.SecretaryService != updatedServiceRequestService.SecretaryService) { this.SecretaryService = updatedServiceRequestService.SecretaryService; updated = true; }
 565:              if (this.SalesBlock != updatedServiceRequestService.SalesBlock) { this.SalesBlock = updatedServiceRequestService.SalesBlock; updated = true; }
 566:              if (this.FilterCriteria != updatedServiceRequestService.FilterCriteria) { this.FilterCriteria = updatedServiceRequestService.FilterCriteria; updated = true; }
 567:              if (this.CallerInformation != updatedServiceRequestService.CallerInformation) { this.CallerInformation = updatedServiceRequestService.CallerInformation; updated = true; }
 568:              if (this.PresenceStatus != updatedServiceRequestService.PresenceStatus) { this.PresenceStatus = updatedServiceRequestService.PresenceStatus; updated = true; }
 569:              if (this.OneNumberService != updatedServiceRequestService.OneNumberService) { this.OneNumberService = updatedServiceRequestService.OneNumberService; updated = true; }
 570:              if (this.AssociationList != updatedServiceRequestService.AssociationList) { this.AssociationList = updatedServiceRequestService.AssociationList; updated = true; }
 571:              if (this.Pin != updatedServiceRequestService.Pin) { this.Pin = updatedServiceRequestService.Pin; updated = true; }
 572:   
 573:              // below: ServiceSuspension is updated individually
 574:              // if (this.ServiceSuspension != updatedServiceRequestService.ServiceSuspension) { this.ServiceSuspension = updatedServiceRequestService.ServiceSuspension; updated = true; }
 575:   
 576:              // important: ServiceRequestService.Update() will only update stored.Access if it is null, or (stored.userId == Guid.Empty && update.Id > stored.Id)
 577:              // this is important to enable manual staff update.
 578:              if (this.Access == null && updatedServiceRequestService.Access != null) { this.Access = updatedServiceRequestService.Access; updated = true; }
 579:              else if (this.Access != null && updatedServiceRequestService.Access != null && this.Access.Id != updatedServiceRequestService.Access.Id && this.UserId == Guid.Empty /*&& long.Parse(updatedServiceRequestService.Id) > long.Parse(this.Id)*/) { this.Access = updatedServiceRequestService.Access; updated = true; }
 580:   
 581:              // important: I will not update this.UserId if update.UserId is Guid.Empty so that I don't override staff this.UserId. I need this to be valid for this.Access test above
 582:              if (this.UserId != updatedServiceRequestService.UserId && updatedServiceRequestService.UserId != Guid.Empty) { this.UserId = updatedServiceRequestService.UserId; updated = true; }
 583:   
 584:              //if (this.ServiceRequests != updatedServiceRequestService.ServiceRequests) { this.ServiceRequests = updatedServiceRequestService.ServiceRequests; updated = true; }
 585:   
 586:              if (this.LastRequestDateTime != updatedServiceRequestService.LastRequestDateTime) { this.LastRequestDateTime = updatedServiceRequestService.LastRequestDateTime; updated = true; }
 587:   
 588:              if (updated) this.Updated = DateTime.UtcNow.AddHours(3);
 589:   
 590:              return updated;
 591:          }
 592:   
 593:          ////////////////////////////////////////////////////////////////////////////
 594:   
 595:          /// <summary>
 596:          /// Copy value from another ServiceRequestService
 597:          /// </summary>
 598:          public void Copy(ServiceRequestService sourceServiceRequestService)
 599:          {
 600:              // below: this will not ...
 601:   
 602:              this.Id = sourceServiceRequestService.Id;
 603:              this.Service = sourceServiceRequestService.Service;
 604:              this.Serial = sourceServiceRequestService.Serial;
 605:              this.ServiceType = sourceServiceRequestService.ServiceType;
 606:              this.Type = sourceServiceRequestService.Type;
 607:              this.Provisioned = sourceServiceRequestService.Provisioned;
 608:              this.AreaCode = sourceServiceRequestService.AreaCode;
 609:   
 610:              this.CallWaiting = sourceServiceRequestService.CallWaiting;
 611:              this.CallForwarding = sourceServiceRequestService.CallForwarding;
 612:   
 613:              this.AlarmCall = sourceServiceRequestService.AlarmCall;
 614:              this.WakeupCall = sourceServiceRequestService.WakeupCall;
 615:   
 616:              this.CallBarring = sourceServiceRequestService.CallBarring;
 617:              this.InternationalCallingUserControlled = sourceServiceRequestService.InternationalCallingUserControlled;
 618:              this.InternationalCalling = sourceServiceRequestService.InternationalCalling;
 619:              this.CallerId = sourceServiceRequestService.CallerId;
 620:              this.ConferenceCall = sourceServiceRequestService.ConferenceCall;
 621:              this.ServiceSuspensionTypeId = sourceServiceRequestService.ServiceSuspensionTypeId;
 622:              this.AbbriviatedCalling = sourceServiceRequestService.AbbriviatedCalling;
 623:              this.CallForwardingUnconditional = sourceServiceRequestService.CallForwardingUnconditional;
 624:              this.CallingLineIdentificationRestriction = sourceServiceRequestService.CallingLineIdentificationRestriction;
 625:              this.ConnectedLineIdentificationRestriction = sourceServiceRequestService.ConnectedLineIdentificationRestriction;
 626:              this.WakeUp = sourceServiceRequestService.WakeUp;
 627:              this.CallForwardingByTime = sourceServiceRequestService.CallForwardingByTime;
 628:              this.MutlimediaInformationPresentation = sourceServiceRequestService.MutlimediaInformationPresentation;
 629:              this.SelectiveOutgoingCallBarring = sourceServiceRequestService.SelectiveOutgoingCallBarring;
 630:              this.DialNumberCallOutAllow = sourceServiceRequestService.DialNumberCallOutAllow;
 631:              this.DoNotDisturb = sourceServiceRequestService.DoNotDisturb;
 632:              this.OutgoingCallBarring = sourceServiceRequestService.OutgoingCallBarring;
 633:              this.TemporaryLine = sourceServiceRequestService.TemporaryLine;
 634:              this.CodecControl = sourceServiceRequestService.CodecControl;
 635:              this.SelectiveIncomingCallBarring = sourceServiceRequestService.SelectiveIncomingCallBarring;
 636:              this.SelectiveCallForwarding = sourceServiceRequestService.SelectiveCallForwarding;
 637:              this.DialNumberCallOutBarring = sourceServiceRequestService.DialNumberCallOutBarring;
 638:              this.CallForwardingBasedonBlackList = sourceServiceRequestService.CallForwardingBasedonBlackList;
 639:              this.CallForwardingBusy = sourceServiceRequestService.CallForwardingBusy;
 640:              this.CallForwardingNoReply = sourceServiceRequestService.CallForwardingNoReply;
 641:              this.CallForwardingOffline = sourceServiceRequestService.CallForwardingOffline;
 642:              this.CallForwardingOnUserNotReachable = sourceServiceRequestService.CallForwardingOnUserNotReachable;
 643:              this.CallForwardingNoReplyinCallWaiting = sourceServiceRequestService.CallForwardingNoReplyinCallWaiting;
 644:              this.MultiRinging = sourceServiceRequestService.MultiRinging;
 645:              this.ConvergentInterPersonalService = sourceServiceRequestService.ConvergentInterPersonalService;
 646:              this.CallForwardingBySequence = sourceServiceRequestService.CallForwardingBySequence;
 647:              this.UserNumberChange = sourceServiceRequestService.UserNumberChange;
 648:              this.BlackNumberData = sourceServiceRequestService.BlackNumberData;
 649:              this.WhiteNumberData = sourceServiceRequestService.WhiteNumberData;
 650:              this.OwedRestriction = sourceServiceRequestService.OwedRestriction;
 651:              this.Strategy = sourceServiceRequestService.Strategy;
 652:              this.GreenNumberData = sourceServiceRequestService.GreenNumberData;
 653:              this.RedNumberData = sourceServiceRequestService.RedNumberData;
 654:              this.BarringOfAllOutgoingCalls = sourceServiceRequestService.BarringOfAllOutgoingCalls;
 655:              this.BarringOfAllOutgoingInternationalCalls = sourceServiceRequestService.BarringOfAllOutgoingInternationalCalls;
 656:              this.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry = sourceServiceRequestService.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry;
 657:              this.BarringOfAllIncomingCalls = sourceServiceRequestService.BarringOfAllIncomingCalls;
 658:              this.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry = sourceServiceRequestService.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry;
 659:              this.SpeedDial = sourceServiceRequestService.SpeedDial;
 660:              this.GreenCall = sourceServiceRequestService.GreenCall;
 661:              this.SetDataUpgrade = sourceServiceRequestService.SetDataUpgrade;
 662:              this.AutoConsole = sourceServiceRequestService.AutoConsole;
 663:              this.NightService = sourceServiceRequestService.NightService;
 664:              this.BackupNumber = sourceServiceRequestService.BackupNumber;
 665:              this.Absence = sourceServiceRequestService.Absence;
 666:              this.AuthorizedCodeForStdIdd = sourceServiceRequestService.AuthorizedCodeForStdIdd;
 667:              this.Hotline = sourceServiceRequestService.Hotline;
 668:              this.CetMaliciousCommunicationIdentification = sourceServiceRequestService.CetMaliciousCommunicationIdentification;
 669:              this.MissCallNotify = sourceServiceRequestService.MissCallNotify;
 670:              this.SubscriptionStatus = sourceServiceRequestService.SubscriptionStatus;
 671:              this.UsbDongleOneKeyService = sourceServiceRequestService.UsbDongleOneKeyService;
 672:              this.IRoamingInboundSingleImsiMultiMsisdn = sourceServiceRequestService.IRoamingInboundSingleImsiMultiMsisdn;
 673:              this.IRoamingOutboundSingleImsiMultiMsisdn = sourceServiceRequestService.IRoamingOutboundSingleImsiMultiMsisdn;
 674:              this.NpaSplit = sourceServiceRequestService.NpaSplit;
 675:              this.AllCallForwardingGroup = sourceServiceRequestService.AllCallForwardingGroup;
 676:              this.ConditionalCallForwardingGroup = sourceServiceRequestService.ConditionalCallForwardingGroup;
 677:              this.GeneralOrigIdentificationRestriction = sourceServiceRequestService.GeneralOrigIdentificationRestriction;
 678:              this.MultimediaOfOrigIdRestriction = sourceServiceRequestService.MultimediaOfOrigIdRestriction;
 679:              this.TerminatingIdentityRestriction = sourceServiceRequestService.TerminatingIdentityRestriction;
 680:              this.DistinctiveRing = sourceServiceRequestService.DistinctiveRing;
 681:              this.VisitedNetworkImpu = sourceServiceRequestService.VisitedNetworkImpu;
 682:              this.SeasonalSuspend = sourceServiceRequestService.SeasonalSuspend;
 683:              this.NumberInvalidation = sourceServiceRequestService.NumberInvalidation;
 684:              this.IroamingServiceProvision = sourceServiceRequestService.IroamingServiceProvision;
 685:              this.IptvCallerId = sourceServiceRequestService.IptvCallerId;
 686:              this.IptvVideoCall = sourceServiceRequestService.IptvVideoCall;
 687:              this.NumberPortability = sourceServiceRequestService.NumberPortability;
 688:              this.SecretaryService = sourceServiceRequestService.SecretaryService;
 689:              this.SalesBlock = sourceServiceRequestService.SalesBlock;
 690:              this.FilterCriteria = sourceServiceRequestService.FilterCriteria;
 691:              this.CallerInformation = sourceServiceRequestService.CallerInformation;
 692:              this.PresenceStatus = sourceServiceRequestService.PresenceStatus;
 693:              this.OneNumberService = sourceServiceRequestService.OneNumberService;
 694:              this.AssociationList = sourceServiceRequestService.AssociationList;
 695:              this.Pin = sourceServiceRequestService.Pin;
 696:   
 697:              this.LastRequestDateTime = sourceServiceRequestService.LastRequestDateTime;
 698:   
 699:              // ServiceSuspection is updated individually using a seperate function
 700:              // this.ServiceSuspension = srs.ServiceSuspension;
 701:   
 702:              this.UserId = sourceServiceRequestService.UserId;
 703:          }
 704:   
 705:          ////////////////////////////////////////////////////////////////////////////
 706:          ////////////////////////////////////////////////////////////////////////////
 707:      }
 708:   
 709:      ////////////////////////////////////////////////////////////////////////////
 710:      ////////////////////////////////////////////////////////////////////////////
 711:  }