Class FadTags
Template tag supplier for fad0 - fadq address block variables
Assembly: SoDataBase.dll
public class FadTags : TagContainer
Constructors
Construct the class, decide which format to use, and generate the data for all the lines
Declaration
public FadTags(IPersonInfo2 personInfo, IContactInfo2 contactInfo, TagContainer parent)
Parameters
Type |
Name |
Description |
IPersonInfo2 |
personInfo |
Person information to use
|
IContactInfo2 |
contactInfo |
Contact information to use
|
TagContainer |
parent |
Parent, used to get hold of inner tag values
|
Fields
Declaration
protected IContactInfo2 _contactInfo
Field Value
Declaration
protected TagContainer _parentVariables
Field Value
Properties
Declaration
[TemplateTag("fad1")]
public string Fad1 { get; }
Property Value
Declaration
[TemplateTag("fad2")]
public string Fad2 { get; }
Property Value
Declaration
[TemplateTag("fad3")]
public string Fad3 { get; }
Property Value
Declaration
[TemplateTag("fad4")]
public string Fad4 { get; }
Property Value
Declaration
[TemplateTag("fad5")]
public string Fad5 { get; }
Property Value
Declaration
[TemplateTag("fad6")]
public string Fad6 { get; }
Property Value
Declaration
[TemplateTag("fad7")]
public string Fad7 { get; }
Property Value
Declaration
[TemplateTag("fad8")]
public string Fad8 { get; }
Property Value
Declaration
[TemplateTag("fad9")]
public string Fad9 { get; }
Property Value
Declaration
[TemplateTag("fada")]
public string Fada { get; }
Property Value
Declaration
[TemplateTag("fadb")]
public string Fadb { get; }
Property Value
Declaration
[TemplateTag("fadc")]
public string Fadc { get; }
Property Value
Declaration
[TemplateTag("fadd")]
public string Fadd { get; }
Property Value
Declaration
[TemplateTag("fade")]
public string Fade { get; }
Property Value
Declaration
[TemplateTag("fadf")]
public string Fadf { get; }
Property Value
Declaration
[TemplateTag("fadg")]
public string Fadg { get; }
Property Value
Declaration
[TemplateTag("fadh")]
public string Fadh { get; }
Property Value
Declaration
[TemplateTag("fadi")]
public string Fadi { get; }
Property Value
Declaration
[TemplateTag("fadj")]
public string Fadj { get; }
Property Value
Declaration
[TemplateTag("fadk")]
public string Fadk { get; }
Property Value
Declaration
[TemplateTag("fadl")]
public string Fadl { get; }
Property Value
Declaration
[TemplateTag("fadm")]
public string Fadm { get; }
Property Value
Declaration
[TemplateTag("fadn")]
public string Fadn { get; }
Property Value
Declaration
[TemplateTag("fado")]
public string Fado { get; }
Property Value
Declaration
[TemplateTag("fadp")]
public string Fadp { get; }
Property Value
Declaration
[TemplateTag("fadq")]
public string Fadq { get; }
Property Value
Declaration
public override int Id { get; }
Property Value
Overrides
Declaration
protected virtual bool IsValid { get; }
Property Value
Methods
Analyze the given person and contact data to determine which address format we should use
Address format depends on what kind of address we have (street, postal, person); whether it's foreign or domestic;
and what layouts have been set for each of these combinations for the recipients' country
Declaration
protected virtual void DetermineFormat()
Generate the FAD data block by doing a recursive tag substitution followed by parsing of conditional elements
Declaration
protected virtual void GenerateFads()
Declaration
protected virtual AddressLayout GetAddressLayout(int addressType)
Parameters
Type |
Name |
Description |
Int32 |
addressType |
|
Returns
Declaration
protected virtual int GetAddressType()
Returns
Declaration
protected virtual int GetRecipientCountryId(int addressType)
Parameters
Type |
Name |
Description |
Int32 |
addressType |
|
Returns
Declaration
protected override void Init()
Overrides
Declaration
protected virtual bool UseForeign(int addressType)
Parameters
Type |
Name |
Description |
Int32 |
addressType |
|
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)