Class PersonContactExtenderHelper
Inheritance
PersonContactExtenderHelper
Assembly: SoDataBase.dll
Syntax
public class PersonContactExtenderHelper : Object
Constructors
PersonContactExtenderHelper(ExtensibleColumnsBase)
Declaration
public PersonContactExtenderHelper(ExtensibleColumnsBase parent)
Parameters
Fields
_colAddressId
Declaration
protected ArchiveColumnInfo _colAddressId
Field Value
_colCity
Declaration
protected ArchiveColumnInfo _colCity
Field Value
_colCounty
Declaration
protected ArchiveColumnInfo _colCounty
Field Value
_colLine1
Declaration
protected ArchiveColumnInfo _colLine1
Field Value
_colLine2
Declaration
protected ArchiveColumnInfo _colLine2
Field Value
_colLine3
Declaration
protected ArchiveColumnInfo _colLine3
Field Value
_colZip
Declaration
protected ArchiveColumnInfo _colZip
Field Value
Properties
AddressColumns
Provide an iterator that will give the address columns only
Declaration
public IEnumerable<ArchiveColumnInfo> AddressColumns { get; }
Property Value
Methods
AddAndInitializeExtensionProvider<ExtenderType>(ExtenderType, String, String)
Reflection of a similar method in ExtensibleColumnsBase, needed here to initialize extenders on behalf of our parent
Declaration
protected ExtenderType AddAndInitializeExtensionProvider<ExtenderType>(ExtenderType extender, string namePrefix, string displayNamePrefix)
where ExtenderType : IArchiveExtender
Parameters
Type |
Name |
Description |
ExtenderType |
extender |
|
String |
namePrefix |
|
String |
displayNamePrefix |
|
Returns
Type |
Description |
ExtenderType |
|
Type Parameters
Name |
Description |
ExtenderType |
|
GetFullName(SoDataReader, ArchiveRow, Boolean)
Get the full name according to formatting preferences, without contact component
Declaration
public ArchiveColumnData GetFullName(SoDataReader reader, ArchiveRow row, bool wantNavLinks)
Parameters
Returns
GetFullNameWithContact(SoDataReader, ArchiveRow, Boolean, ContactExtenderBase)
Get the full name according to formatting preferences, including the contact name and department
Declaration
public ArchiveColumnData GetFullNameWithContact(SoDataReader reader, ArchiveRow row, bool wantNavLinks, ContactExtenderBase contactExtender)
Parameters
Returns
GetNameAndDepartment(SoDataReader, ContactTableInfo, Boolean)
Declaration
public static ArchiveColumnData GetNameAndDepartment(SoDataReader reader, ContactTableInfo contactInfo, bool wantNavLinks)
Parameters
Returns
InitializeAddressExtenders()
Initialize the address extenders. Call from constructor
Declaration
public void InitializeAddressExtenders()
PopulateAddressColumns(ArchiveRow, Boolean, ColumnHelper)
Populate the requested address columns from various subextenders. Call from InnerPopulateRowFromReader.
Declaration
public void PopulateAddressColumns(ArchiveRow row, bool wantPersonAddress, ColumnHelper columnHelper)
Parameters
ProcessFullNameRestriction(ArchiveRestrictionInfo, ArchiveSelect)
Helper for processing fullname restriction
Declaration
public void ProcessFullNameRestriction(ArchiveRestrictionInfo restriction, ArchiveSelect targetQuery)
Parameters
SetDesiredAddressColumns(String[])
Fish out address columns from a set of desired columns, and do the prefixing magic needed. Call from SetDesiredColumns
Declaration
public bool SetDesiredAddressColumns(string[] columnIds)
Parameters
Type |
Name |
Description |
String[] |
columnIds |
|
Returns
Type |
Description |
Boolean |
true if at least one address column has been requested
|
SetFullNameOrderBy(ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo, ArchiveColumnInfo)
Declaration
public void SetFullNameOrderBy(ArchiveColumnInfo _colFullName, ArchiveColumnInfo _colFullNameWithContact, ArchiveColumnInfo _colFirstName, ArchiveColumnInfo _colMiddleName, ArchiveColumnInfo _colLastName, ArchiveColumnInfo _colPosition, ArchiveColumnInfo _colRank)
Parameters
SetPersonTableInfo(PersonTableInfo)
Declaration
public void SetPersonTableInfo(PersonTableInfo ourTable)
Parameters
Extension Methods
EnumUtil.MapEnums<From, To>(From)