Show / Hide Table of Contents

Class PersonInfoProvider

Implementation of IPersonInfo; create through factory (see remarks)

Inheritance
Object
ContactPersonInfoProviderBase
PersonInfoProvider
Implements
IPersonInfo2
IPersonInfo
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 PersonInfoProvider : ContactPersonInfoProviderBase, IPersonInfo2, IPersonInfo
Remarks

To create an instance of PersonInfoProvider, use

var info = ClassFactory.Create<IPersonInfo>(pers);

where pers is a Person, to use an already-loaded entity object (that may also contain unsaved data); or where pers is an int that is a personId, 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 SimplePersonInfo instead, fully populate it, and pass that to the factory.

Properties

AssociateId

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

Chat

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

ChatId

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

ChatProtocol

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

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

CountryId

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

DateOfBirth

Declaration
public string DateOfBirth { 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

FirstName

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

LastName

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

LineFeedGermany

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

MiddleName

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

MiddleName2

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

MobilePhone

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

MobilePhoneId

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

MrMrs

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

Nomailing

Declaration
public bool Nomailing { get; }
Property Value
Type Description
Boolean

OfficePhone

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

OfficePhoneId

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

Pager

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

PagerId

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

Person

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

PersonId

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

PersonNumber

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

Position

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

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

PostalAddressLine1Extended

Declaration
public string PostalAddressLine1Extended { 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

PostalAddressState

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

PostalAddressStateAmericaCanadaAustralia

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

PostalAddressZip

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

PreferredLanguageId

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

PrivatePhone

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

PrivatePhoneId

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

Retired

Declaration
public bool Retired { get; }
Property Value
Type Description
Boolean

Salutation

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

ServiceContactId

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

ServiceContactName

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

ServicePriority

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

Title

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

Url

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

UrlId

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

UsePersonAddress

Declaration
public bool UsePersonAddress { get; }
Property Value
Type Description
Boolean

Voip

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

VoipId

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

VoipService

Declaration
public string VoipService { 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

IPersonInfo2
IPersonInfo

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