Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
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;
   2:  using System.Collections;
   3:  using System.Collections.Generic;
   4:  using System.Linq;
   5:  using System.Web;
   6:  using System.ComponentModel.DataAnnotations;
   7:  using System.ComponentModel.DataAnnotations.Schema;
   8:  using System.Data;
   9:  using System.Text;
  10:   
  11:  namespace Ia.Ngn.Cl.Model.Ui
  12:  {
  13:      ////////////////////////////////////////////////////////////////////////////
  14:   
  15:      /// <summary publish="true">
  16:      /// Report Access Service Request support class for Next Generation Network (NGN) ui 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 ReportAccessServiceRequest
  33:      {
  34:          /// <summary/>
  35:          public ReportAccessServiceRequest() { }
  36:   
  37:          /// <summary/>
  38:          public Ia.Ngn.Cl.Model.Report Report { get; set; }
  39:   
  40:          /// <summary/>
  41:          public Ia.Ngn.Cl.Model.Access Access { get; set; }
  42:   
  43:          /// <summary/>
  44:          public Ia.Ngn.Cl.Model.ServiceRequest ServiceRequest { get; set; }
  45:   
  46:          /// <summary/>
  47:          public int FlatTermId { get; set; }
  48:   
  49:          ////////////////////////////////////////////////////////////////////////////
  50:          ////////////////////////////////////////////////////////////////////////////
  51:   
  52:          /// <summary>
  53:          ///
  54:          /// </summary>
  55:          public string ToSimpleTextString()
  56:          {
  57:              StringBuilder sb;
  58:   
  59:              sb = new StringBuilder();
  60:   
  61:              sb.AppendLine("Service: " + this.Report.Service);
  62:              //sb.AppendLine("ServiceType: " + this.Report.ServiceType);
  63:              sb.AppendLine("FlatTermID: " + this.FlatTermId.ToString());
  64:              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));
  65:              sb.AppendLine("AccessName: " + this.Access.Name);
  66:              sb.AppendLine("Address: " + Ia.Cl.Model.Html.Decode(this.Access.Address));
  67:              sb.AppendLine("Contact: " + Ia.Cl.Model.Html.Decode(this.Report.Contact));
  68:              //sb.AppendLine("Last Staff/Domain: " + this.Report.ReportHistories.Last().UserId);
  69:   
  70:              return sb.ToString();
  71:          }
  72:   
  73:          ////////////////////////////////////////////////////////////////////////////
  74:          ////////////////////////////////////////////////////////////////////////////
  75:      }
  76:   
  77:      ////////////////////////////////////////////////////////////////////////////
  78:      ////////////////////////////////////////////////////////////////////////////
  79:  }