Ejemplo n.º 1
0
 ///
 /// ------------------------------------------------------------------------------------------------
 /// Name		SRiPropertyDetail
 ///
 /// <summary>	Creates a new instance of the SRiPropertyDetail class.
 /// </summary>
 /// <param name="licase">		The LICase entity to pull details from.</param>
 ///
 /// <remarks>
 /// </remarks>
 /// ------------------------------------------------------------------------------------------------
 ///
 public SRiPropertyDetail(SRiLICaseMeta licase, SRiRecord record)
 {
     Title   = "LICENSING";
     Details = new SRiPropertyDetailsCollection();
     Details.Add("Reference", licase.LICase.RefVal);
     Details.Add("SRREC reference", record.RefVal);
     Details.Add("Type", licase.CNTypeDescription);
     Details.Add("License Plate", licase.LICase.PlateRef);
     Details.Add("Commend Date", licase.LICase.CommendDate);
     Details.Add("Expiry Date", licase.LICase.ExpiryDate);
     //
     foreach (var party in licase.LICase.LIParties)
     {
         if (!string.IsNullOrEmpty(party.FullName))
         {
             Details.Add(licase.PartyTypeDescription(party), party.FullName);
         }
     }
 }
Ejemplo n.º 2
0
 /// ------------------------------------------------------------------------------------------------
 #region Public Constructors
 /// ------------------------------------------------------------------------------------------------
 ///
 /// ------------------------------------------------------------------------------------------------
 /// Name		SRiPropertyDetail
 ///
 /// <summary>	Creates a new instance of the SRiPropertyDetail class.
 /// </summary>
 /// <param name="cpinfo">		The CPInfo entity to pull details from.</param>
 ///
 /// <remarks>
 /// </remarks>
 /// ------------------------------------------------------------------------------------------------
 ///
 public SRiPropertyDetail(SRiCPInfoMeta cpinfo, SRiRecord record)
 {
     Title   = "COMMERCIAL PREMISES";
     Details = new SRiPropertyDetailsCollection();
     Details.Add("Reference", cpinfo.CPInfo.RefVal);
     Details.Add("SRREC reference", record.RefVal);
     Details.Add("Occupier", cpinfo.CPInfo.Occupier);
     Details.Add("Contact", cpinfo.CPInfo.Contact);
     Details.Add("Main use of site", cpinfo.PremisesUseDescription);
     foreach (var fhrs in cpinfo.CPInfo.FHRSRecords)
     {
         if (!string.IsNullOrEmpty(fhrs.Rating) && fhrs.Assessed.HasValue)
         {
             Details.Add(string.Format("FHRS on {0}", fhrs.Assessed.ToDateString()), fhrs.Rating);
         }
     }
 }