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

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » ReportAccessServiceRequest

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

Report Access Service Request support class for Next Generation Network (NGN) ui model.

   1:  using System.Text;
   2:   
   3:  namespace Ia.Ngn.Cl.Model.Ui
   4:  {
   5:      ////////////////////////////////////////////////////////////////////////////
   6:   
   7:      /// <summary publish="true">
   8:      /// Report Access Service Request support class for Next Generation Network (NGN) ui model.
   9:      /// </summary>
  10:      /// 
  11:      /// <remarks> 
  12:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  13:      ///
  14:      /// 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
  15:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  16:      ///
  17:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  18:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  19:      /// 
  20:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  21:      /// 
  22:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  23:      /// </remarks> 
  24:      public partial class ReportAccessServiceRequest
  25:      {
  26:          /// <summary/>
  27:          public ReportAccessServiceRequest() { }
  28:   
  29:          /// <summary/>
  30:          public Ia.Ngn.Cl.Model.Report Report { get; set; }
  31:   
  32:          /// <summary/>
  33:          public Ia.Ngn.Cl.Model.Access Access { get; set; }
  34:   
  35:          /// <summary/>
  36:          public Ia.Ngn.Cl.Model.ServiceRequest ServiceRequest { get; set; }
  37:   
  38:          /// <summary/>
  39:          public int Port { get; set; }
  40:   
  41:          ////////////////////////////////////////////////////////////////////////////
  42:          ////////////////////////////////////////////////////////////////////////////
  43:   
  44:          /// <summary>
  45:          ///
  46:          /// </summary>
  47:          public string ToSimpleTextString()
  48:          {
  49:              StringBuilder sb;
  50:   
  51:              sb = new StringBuilder();
  52:   
  53:              sb.AppendLine("Service: " + this.Report.Service);
  54:              //sb.AppendLine("ServiceType: " + this.Report.ServiceType);
  55:              sb.AppendLine("Port: " + this.Port.ToString());
  56:              sb.AppendLine("Action: " + ((this.Report.LastReportHistory != null) ? Ia.Cl.Model.Html.StripHtml(Ia.Ngn.Cl.Model.Data.Report.ActionDictionary[this.Report.LastReportHistory.Action].ToString()) : string.Empty));
  57:              sb.AppendLine("AccessName: " + (this.Access != null ? this.Access.Name : string.Empty));
  58:              sb.AppendLine("Address: " + (this.Access != null ? Ia.Cl.Model.Html.Decode(this.Access.Address) : string.Empty));
  59:              sb.AppendLine("Contact: " + Ia.Cl.Model.Html.Decode(this.Report.Contact));
  60:              //sb.AppendLine("Last Staff/Domain: " + this.Report.ReportHistories.Last().UserId);
  61:   
  62:              return sb.ToString();
  63:          }
  64:   
  65:          ////////////////////////////////////////////////////////////////////////////
  66:          ////////////////////////////////////////////////////////////////////////////
  67:      }
  68:   
  69:      ////////////////////////////////////////////////////////////////////////////
  70:      ////////////////////////////////////////////////////////////////////////////
  71:  }