Class PersonListItem
PersonListItem contains the attributes for the person list item used in PersonList.
Inherited Members
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.dll
Syntax
public sealed class PersonListItem : ListItemBase<PersonList.PersonListQuery>
Constructors
PersonListItem(PersonListQuery, SoDataReader)
Default constructor
Declaration
public PersonListItem(PersonList.PersonListQuery query, SoDataReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonList.PersonListQuery | query | |
| SoDataReader | reader |
Properties
ActiveErpLinks
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public int ActiveErpLinks { get; }
Property Value
| Type | Description |
|---|---|
| int |
AssociateId
Associate id for the person
Declaration
public int AssociateId { get; }
Property Value
| Type | Description |
|---|---|
| int |
AssociateName
Associate name for the person
Declaration
public string AssociateName { get; }
Property Value
| Type | Description |
|---|---|
| string |
CategoryName
Persons category name - may be inherited from Contact
Declaration
public string CategoryName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContactCountryId
Country for persons contact (company)
Declaration
public int ContactCountryId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ContactDepartment
Department of persons contact (company)
Declaration
public string ContactDepartment { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContactFax
Faxnumber for persons contact (company)
Declaration
public string ContactFax { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContactId
The contact the contact person is registered on. This is required.
Declaration
public int ContactId { get; }
Property Value
| Type | Description |
|---|---|
| int |
ContactName
Name of persons Contact (company)
Declaration
public string ContactName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContactOrgNr
Org.nr for persons contact (company)
Declaration
public string ContactOrgNr { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContactPhone
Phonenumber for persons contact (company)
Declaration
public string ContactPhone { get; }
Property Value
| Type | Description |
|---|---|
| string |
CountryId
Country ID for person
Declaration
public int CountryId { get; }
Property Value
| Type | Description |
|---|---|
| int |
CustomerLanguageId
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public int CustomerLanguageId { get; }
Property Value
| Type | Description |
|---|---|
| int |
DirectPhone
Persons direct phone number
Declaration
public string DirectPhone { get; }
Property Value
| Type | Description |
|---|---|
| string |
EmailAddress
Persons email address
Declaration
public string EmailAddress { get; }
Property Value
| Type | Description |
|---|---|
| string |
EmailAddressName
Persons email address
Declaration
public string EmailAddressName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Fax
Persons direct fax number
Declaration
public string Fax { get; }
Property Value
| Type | Description |
|---|---|
| string |
FirstName
The persons first name.
Declaration
public string FirstName { get; }
Property Value
| Type | Description |
|---|---|
| string |
FullName
The persons full name.
Declaration
public string FullName { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasInfo
Does the person list items any text in the info field?
Declaration
public bool HasInfo { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasInterests
Determine if person has any registered interests
Declaration
public bool HasInterests { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Info
Addidional infomation associated with person
Declaration
public string Info { get; }
Property Value
| Type | Description |
|---|---|
| string |
Kanafname
Kana first name, used in Japanese versions only
Declaration
public string Kanafname { get; }
Property Value
| Type | Description |
|---|---|
| string |
Kanalname
Kana last name, used in Japanese versions only
Declaration
public string Kanalname { get; }
Property Value
| Type | Description |
|---|---|
| string |
LastName
The persons last name
Declaration
public string LastName { get; }
Property Value
| Type | Description |
|---|---|
| string |
MiddleName
The persons middle name
Declaration
public string MiddleName { get; }
Property Value
| Type | Description |
|---|---|
| string |
MobilePhone
Persons mobile phone number
Declaration
public string MobilePhone { get; }
Property Value
| Type | Description |
|---|---|
| string |
MrMrs
The persons Mr Mrs field
Declaration
public string MrMrs { get; }
Property Value
| Type | Description |
|---|---|
| string |
NumberOfInterests
Number of interests registered on person
Declaration
public int NumberOfInterests { get; }
Property Value
| Type | Description |
|---|---|
| int |
PersonId
The unique identifier for the person (Person_Id)
Declaration
public int PersonId { get; }
Property Value
| Type | Description |
|---|---|
| int |
PersonNumber
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public string PersonNumber { get; }
Property Value
| Type | Description |
|---|---|
| string |
Position
Persons position
Declaration
public string Position { get; }
Property Value
| Type | Description |
|---|---|
| string |
Post1
Postal address, used in Japanese versions only
Declaration
public string Post1 { get; }
Property Value
| Type | Description |
|---|---|
| string |
Post2
Postal address, used in Japanese versions only
Declaration
public string Post2 { get; }
Property Value
| Type | Description |
|---|---|
| string |
Post3
Postal address, used in Japanese versions only
Declaration
public string Post3 { get; }
Property Value
| Type | Description |
|---|---|
| string |
Retired
Is the person marked as Retired?
Declaration
public short Retired { get; }
Property Value
| Type | Description |
|---|---|
| short |
SortRank
Display sort sequence; person with rank 1 has special role in selections (rank is unique within each contact and starts on 1).
Declaration
public short SortRank { get; }
Property Value
| Type | Description |
|---|---|
| short |
SupportAssociateId
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public int SupportAssociateId { get; }
Property Value
| Type | Description |
|---|---|
| int |
TicketPriorityId
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public int TicketPriorityId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Title
The Contact person dialog has a title field that may be used to register the person’s professional title.
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| string |
UsePersonAddress
Use this persons address as mailing address
Declaration
public short UsePersonAddress { get; }
Property Value
| Type | Description |
|---|---|
| short |
Methods
GetPersonListItemAsync(int, CancellationToken)
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public static Task<PersonListItem> GetPersonListItemAsync(int personId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | personId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<PersonListItem> |
GetPersonListItemsAsync(int[], CancellationToken)
PersonListItem contains the attributes for the person list item used in PersonList.
Declaration
public static Task<PersonListItem[]> GetPersonListItemsAsync(int[] personIds, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | personIds | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<PersonListItem[]> |
Initialize()
Initializes all class-members.
Declaration
protected override void Initialize()
Overrides
Load(PersonListQuery, SoDataReader)
Responsible for reading the current row in the data reader and insert the value in the right part ob the object.
Declaration
protected override void Load(PersonList.PersonListQuery query, SoDataReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| PersonList.PersonListQuery | query | |
| SoDataReader | reader | The reader contains the items data. |