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

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

ServiceAddress Framework class for Next Generation Network (NGN) business model.

   1:  using System;
   2:  using System.Collections;
   3:  using System.Collections.Generic;
   4:  using System.Linq;
   5:  using System.Web;
   6:  using System.Web.Security;
   7:  using System.ComponentModel.DataAnnotations;
   8:  using System.ComponentModel.DataAnnotations.Schema;
   9:  using System.Text.RegularExpressions;
  10:   
  11:  namespace Ia.Ngn.Cl.Model.Business
  12:  {
  13:      ////////////////////////////////////////////////////////////////////////////
  14:   
  15:      /// <summary publish="true">
  16:      /// ServiceAddress Framework class for Next Generation Network (NGN) business model.
  17:      /// </summary>
  18:      /// 
  19:      /// <remarks> 
  20:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  21:      ///
  22:      /// 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
  23:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  24:      ///
  25:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  26:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  27:      /// 
  28:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  29:      /// 
  30:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  31:      /// </remarks> 
  32:      public partial class ServiceAddress
  33:      {
  34:          /// <summary/>
  35:          public ServiceAddress() { }
  36:   
  37:          /// <summary/>
  38:          public string Service { get; set; }
  39:          /// <summary/>
  40:          public int AreaId { get; set; }
  41:          /// <summary/>
  42:          public string Block { get; set; }
  43:          /// <summary/>
  44:          public string Street { get; set; }
  45:          /// <summary/>
  46:          public string Boulevard { get; set; }
  47:          /// <summary/>
  48:          public string PremisesOld { get; set; }
  49:          /// <summary/>
  50:          public string PremisesNew { get; set; }
  51:          /// <summary/>
  52:          public string Paci { get; set; }
  53:   
  54:          /// <summary/>
  55:          public string Address
  56:          {
  57:              get
  58:              {
  59:                  string address;
  60:   
  61:                  address = (from kna in Ia.Ngn.Cl.Model.Data.Service.KuwaitNgnAreaList where kna.Id == this.AreaId select kna.Name).SingleOrDefault();
  62:   
  63:                  address += ", block " + this.Block + ", street " + this.Street + ", old p. " + this.PremisesOld + ", new p. " + this.PremisesNew;
  64:   
  65:                  return address;
  66:              }
  67:          }
  68:   
  69:          ////////////////////////////////////////////////////////////////////////////
  70:      }
  71:   
  72:      ////////////////////////////////////////////////////////////////////////////
  73:      ////////////////////////////////////////////////////////////////////////////
  74:  }