)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » ReportAccessServiceRequest (Ia.Ftn.Cl.Models.Ui)

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

Report Access Service Request support class for Fixed Telecommunications Network (FTN) ui model.

    1: using System.Text;
    2:  
    3: namespace Ia.Ftn.Cl.Models.Ui
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     /// Report Access Service Request support class for Fixed Telecommunications Network (FTN) ui model.
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   13:     /// </remarks> 
   14:     public class ReportAccessServiceRequest
   15:     {
   16:         /// <summary/>
   17:         public ReportAccessServiceRequest() { }
   18:  
   19:         /// <summary/>
   20:         public Ia.Ftn.Cl.Models.Report Report { get; set; }
   21:  
   22:         /// <summary/>
   23:         public Ia.Ftn.Cl.Models.Access Access { get; set; }
   24:  
   25:         /// <summary/>
   26:         public Ia.Ftn.Cl.Models.ServiceRequest ServiceRequest { get; set; }
   27:  
   28:         ////////////////////////////////////////////////////////////////////////////
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public string ToSimpleTextString()
   35:         {
   36:             StringBuilder sb;
   37:  
   38:             sb = new StringBuilder();
   39:  
   40:             sb.AppendLine("Service: " + this.Report.Service);
   41:             //sb.AppendLine("ServiceType: " + this.Report.ServiceType);
   42:             sb.AppendLine("Action: " + ((this.Report.LastReportHistory != null) ? Ia.Cl.Models.Html.StripHtml(Ia.Ftn.Cl.Models.Data.Report.ActionDictionary[this.Report.LastReportHistory.Action].ToString()) : string.Empty));
   43:             sb.AppendLine("AccessName: " + (this.Access != null ? this.Access.Name : string.Empty));
   44:             sb.AppendLine("Address: " + (this.Access != null ? Ia.Cl.Models.Html.Decode(this.Access.Address) : string.Empty));
   45:             sb.AppendLine("Contact: " + Ia.Cl.Models.Html.Decode(this.Report.Contact));
   46:             //sb.AppendLine("Last Staff/Domain: " + this.Report.ReportHistories.Last().StaffIdentityUser.Id);
   47:  
   48:             /*
   49:             if (this.Report.ReportHistories != null && this.Report.ReportHistories.Count > 0)
   50:             {
   51:                 sb.AppendLine("Report: {report}" + this.Report.Id);
   52:             }
   53:             */
   54:  
   55:             return sb.ToString();
   56:         }
   57:  
   58:         ////////////////////////////////////////////////////////////////////////////
   59:         ////////////////////////////////////////////////////////////////////////////
   60:     }
   61:  
   62:     ////////////////////////////////////////////////////////////////////////////
   63:     ////////////////////////////////////////////////////////////////////////////
   64: }