Started adding ability to copy postal codes between installations
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
<Compile Include="Types\BasicExceptionLog.cs" />
|
||||
<Compile Include="Types\BasicExternalActivity.cs" />
|
||||
<Compile Include="Types\BasicFinancialValidation.cs" />
|
||||
<Compile Include="Types\BasicPostalCode.cs" />
|
||||
<Compile Include="Types\Governance\BasicMeeting.cs" />
|
||||
<Compile Include="Config.cs" />
|
||||
<Compile Include="Diagnostics\Logging.cs" />
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Activizr.Basic.Types
|
||||
{
|
||||
[Serializable]
|
||||
public class BasicPostalCode
|
||||
{
|
||||
public BasicPostalCode(string postalCode, string cityName, string countryCode)
|
||||
{
|
||||
this.PostalCode = postalCode.Replace(" ", "");
|
||||
this.CityName = cityName;
|
||||
this.CountryCode = countryCode;
|
||||
}
|
||||
|
||||
public BasicPostalCode(BasicPostalCode original)
|
||||
: this(original.PostalCode, original.CityName, original.CountryCode)
|
||||
{
|
||||
}
|
||||
|
||||
public string PostalCode { get; private set; } // any whitespace removed
|
||||
public string CityName { get; protected set; }
|
||||
public string CountryCode { get; protected set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user