Class PersonList
PersonList implements the person list in SuperOffice.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.dll
Syntax
public sealed class PersonList : ListBase<PersonList.PersonListQuery, PersonListItem>, IEnumerable, IEnumerable<PersonListItem>, IList, ICollection, IList<PersonListItem>, ICollection<PersonListItem>
Methods
GetPerson(Int32)
Returns the person described by the person_id.
Declaration
public Person GetPerson(int personId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | personId | The person in question |
Returns
Type | Description |
---|---|
Person | The person |
GetPersonContact(Int32)
Returns the contact on the person described by the person_id. If the person does not exist in the list, we still return the correct contact.
Declaration
public Contact GetPersonContact(int personId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | personId | The person in question |
Returns
Type | Description |
---|---|
Contact | The person's contact. |
GetPersonListItem(Int32)
Will return the PersonListItem described by the personId.
Declaration
public PersonListItem GetPersonListItem(int personId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | personId | The person |
Returns
Type | Description |
---|---|
PersonListItem | The person. |
OnLoad(PersonList.PersonListQuery, SoDataReader)
Responsible for reading each row with data from the SoDataReader and insert the object each row represents into the class' collection.
Declaration
protected override void OnLoad(PersonList.PersonListQuery query, SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
PersonList.PersonListQuery | query | |
SoDataReader | reader | The reader which contains all data in the list. |
Overrides
SuperOffice.CRM.Lists.ListBase<SuperOffice.CRM.Archives.PersonList.PersonListQuery, SuperOffice.CRM.Archives.PersonListItem>.OnLoad(SuperOffice.CRM.Archives.PersonList.PersonListQuery, SuperOffice.Data.SoDataReader)
PersonExist(Int32)
Checks if the person described by the person_id exist in the list.
Declaration
public bool PersonExist(int personId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | personId | The person |
Returns
Type | Description |
---|---|
Boolean | True/false |
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)