)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
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 Optical Fiber Network (OFN) 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 Optical Fiber Network (OFN) 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:     ///
   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 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:         ////////////////////////////////////////////////////////////////////////////
   39:         ////////////////////////////////////////////////////////////////////////////
   40:  
   41:         /// <summary>
   42:         ///
   43:         /// </summary>
   44:         public string ToSimpleTextString()
   45:         {
   46:             StringBuilder sb;
   47:  
   48:             sb = new StringBuilder();
   49:  
   50:             sb.AppendLine("Service: " + this.Report.Service);
   51:             //sb.AppendLine("ServiceType: " + this.Report.ServiceType);
   52:             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));
   53:             sb.AppendLine("AccessName: " + (this.Access != null ? this.Access.Name : string.Empty));
   54:             sb.AppendLine("Address: " + (this.Access != null ? Ia.Cl.Model.Html.Decode(this.Access.Address) : string.Empty));
   55:             sb.AppendLine("Contact: " + Ia.Cl.Model.Html.Decode(this.Report.Contact));
   56:             //sb.AppendLine("Last Staff/Domain: " + this.Report.ReportHistories.Last().UserId);
   57:  
   58:             /*
   59:             if (this.Report.ReportHistories != null && this.Report.ReportHistories.Count > 0)
   60:             {
   61:                 sb.AppendLine("Report: {report}" + this.Report.Id);
   62:             }
   63:             */
   64:  
   65:             return sb.ToString();
   66:         }
   67:  
   68:         ////////////////////////////////////////////////////////////////////////////
   69:         ////////////////////////////////////////////////////////////////////////////
   70:     }
   71:  
   72:     ////////////////////////////////////////////////////////////////////////////
   73:     ////////////////////////////////////////////////////////////////////////////
   74: }