Show / Hide Table of Contents

Class ContactInfoProvider

Implementation of IContactInfo; create through factory (see remarks)

Inheritance
Object
ContactPersonInfoProviderBase
ContactInfoProvider
Implements
IContactInfo2
IContactInfo
Inherited Members
ContactPersonInfoProviderBase.Initialize()
ContactPersonInfoProviderBase.GetFormattedNumber(CountryRow, String)
ContactPersonInfoProviderBase.HomeCountryId
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities.Providers
Assembly: SoDataBase.dll
Syntax
public class ContactInfoProvider : ContactPersonInfoProviderBase, IContactInfo2, IContactInfo
Remarks

To create an instance of ContactInfoProvider, use

var info = ClassFactory.Create<IContactInfo>(cont);

where cont is a Contact, to use an already-loaded entity object (that may also contain unsaved data); or where cont is an int that is a contactId, which will cause database fetches. The factory methods at the bottom of this class will handle both cases.

If you are in the Cpp world, or otherwise have unsaved data that you would want to use without incurring the overhead of an entity object, instantiate a SimpleContactInfo instead, fully populate it, and pass that to the factory.

Properties

AddressLine1

Declaration
public string AddressLine1 { get; }
Property Value
Type Description
String

Business

Declaration
public string Business { get; }
Property Value
Type Description
String

Category

Declaration
public string Category { get; }
Property Value
Type Description
String

Code

Declaration
public string Code { get; }
Property Value
Type Description
String

Contact

Declaration
public Contact Contact { get; }
Property Value
Type Description
Contact

ContactId

Declaration
public int ContactId { get; }
Property Value
Type Description
Int32

Country

Declaration
public string Country { get; }
Property Value
Type Description
String

Country2

Declaration
public string Country2 { get; }
Property Value
Type Description
String

CountryCode

Declaration
public string CountryCode { get; }
Property Value
Type Description
String

CountryEnglish

Declaration
public string CountryEnglish { get; }
Property Value
Type Description
String

CountryId

Declaration
public int CountryId { get; }
Property Value
Type Description
Int32

County

Declaration
public string County { get; }
Property Value
Type Description
String

CountyZipUK

Declaration
public string CountyZipUK { get; }
Property Value
Type Description
String

Department

Declaration
public string Department { get; }
Property Value
Type Description
String

EMail

Declaration
public string EMail { get; }
Property Value
Type Description
String

EMailId

Declaration
public int EMailId { get; }
Property Value
Type Description
Int32

Fax

Declaration
public string Fax { get; }
Property Value
Type Description
String

FaxId

Declaration
public int FaxId { get; }
Property Value
Type Description
Int32

FaxStripped

Declaration
public string FaxStripped { get; }
Property Value
Type Description
String

LineFeedAustraliaUK

Declaration
public string LineFeedAustraliaUK { get; }
Property Value
Type Description
String

LineFeedGermany

Declaration
public string LineFeedGermany { get; }
Property Value
Type Description
String

Name

Declaration
public string Name { get; }
Property Value
Type Description
String

Number

Declaration
public string Number { get; }
Property Value
Type Description
String

OrganisationNumber

Declaration
public string OrganisationNumber { get; }
Property Value
Type Description
String

OurContact

Declaration
public string OurContact { get; }
Property Value
Type Description
String

Phone

Declaration
public string Phone { get; }
Property Value
Type Description
String

PhoneId

Declaration
public int PhoneId { get; }
Property Value
Type Description
Int32

PostalAddressCity

Declaration
public string PostalAddressCity { get; }
Property Value
Type Description
String

PostalAddressCityFull

Declaration
public string PostalAddressCityFull { get; }
Property Value
Type Description
String

PostalAddressCounty

Declaration
public string PostalAddressCounty { get; }
Property Value
Type Description
String

PostalAddressLine1

Declaration
public string PostalAddressLine1 { get; }
Property Value
Type Description
String

PostalAddressLine1And3

Declaration
public string PostalAddressLine1And3 { get; }
Property Value
Type Description
String

PostalAddressLine2

Declaration
public string PostalAddressLine2 { get; }
Property Value
Type Description
String

PostalAddressLine3

Declaration
public string PostalAddressLine3 { get; }
Property Value
Type Description
String

PostalAddressPrefix

Declaration
public string PostalAddressPrefix { get; }
Property Value
Type Description
String

PostalAddressState

Declaration
public string PostalAddressState { get; }
Property Value
Type Description
String

PostalAddressZip

Declaration
public string PostalAddressZip { get; }
Property Value
Type Description
String

PostalAddressZipCity

Declaration
public string PostalAddressZipCity { get; }
Property Value
Type Description
String

PostCode

Postcode. For German addresses, don't add zip prefix

Declaration
public string PostCode { get; }
Property Value
Type Description
String

StreetAddressCity

Declaration
public string StreetAddressCity { get; }
Property Value
Type Description
String

StreetAddressCityFull

Declaration
public string StreetAddressCityFull { get; }
Property Value
Type Description
String

StreetAddressLine1

Declaration
public string StreetAddressLine1 { get; }
Property Value
Type Description
String

StreetAddressLine2

Declaration
public string StreetAddressLine2 { get; }
Property Value
Type Description
String

StreetAddressLine3

Declaration
public string StreetAddressLine3 { get; }
Property Value
Type Description
String

StreetAddressState

Declaration
public string StreetAddressState { get; }
Property Value
Type Description
String

StreetAddressZip

Declaration
public string StreetAddressZip { get; }
Property Value
Type Description
String

StreetAddressZipGerman

Declaration
public string StreetAddressZipGerman { get; }
Property Value
Type Description
String

SupportPersonId

Declaration
public int SupportPersonId { get; }
Property Value
Type Description
Int32

SupportPersonName

Declaration
public string SupportPersonName { get; }
Property Value
Type Description
String

Web

Declaration
public string Web { get; }
Property Value
Type Description
String

WebId

Declaration
public int WebId { get; }
Property Value
Type Description
Int32

ZipCity

Declaration
public string ZipCity { get; }
Property Value
Type Description
String

Methods

GetInternationalAddress(Int32)

Declaration
[Obsolete("FAD international addresses are handled through a separate system, see FadTags.cs", true)]
public string GetInternationalAddress(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo
Returns
Type Description
String

GetUserDefinedDecimal(Int32)

Return a user defined value of type decimal

Declaration
public string GetUserDefinedDecimal(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedDecimal(String)

Get the decimal udef value based on the prog.id name of the udef field.

Declaration
public double GetUserDefinedDecimal(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Double

double value of field, or NAN if field not found

GetUserDefinedInt(Int32)

Return a user defined value of type int

Declaration
public string GetUserDefinedInt(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedInt(String)

Get the int udef value based on the prog.id name of the udef field.

Declaration
public int GetUserDefinedInt(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Int32

int value of field, or MINVALUE if field not found

GetUserDefinedString(Int32)

Return a user defined value of type string

Declaration
public string GetUserDefinedString(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

Value of specified field

GetUserDefinedString(String)

Get the string udef value based on the prog.id name of the udef field.

Declaration
public string GetUserDefinedString(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
String

string value of field, or NULL if field not found

Implements

IContactInfo2
IContactInfo

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top