Class ProjectList
ProjectList implements the Projectlist in SuperOffice.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.dll
Syntax
public sealed class ProjectList : ListBase<ProjectList.ProjectListQuery, ProjectListItem>, IList, ICollection, IList<ProjectListItem>, ICollection<ProjectListItem>, IEnumerable<ProjectListItem>, IEnumerable
Methods
GetProject(int)
Returns the project corresponding to the project_id.
Declaration
public Project GetProject(int projectId)
Parameters
Type | Name | Description |
---|---|---|
int | projectId | The project. |
Returns
Type | Description |
---|---|
Project | The project. |
GetProjectListFromContact(Contact)
Returns the project list that corresponds to the contact.
Declaration
public ProjectList GetProjectListFromContact(Contact contact)
Parameters
Type | Name | Description |
---|---|---|
Contact | contact | The contact to build the list from. |
Returns
Type | Description |
---|---|
ProjectList | The project list. |
GetProjectListFromContact(ContactRow)
Returns the project list that corresponds to the contact-row.
Declaration
public ProjectList GetProjectListFromContact(ContactRow row)
Parameters
Type | Name | Description |
---|---|---|
ContactRow | row | The contact to build the list from. |
Returns
Type | Description |
---|---|
ProjectList | The project list. |
GetProjectListFromContact(int)
Returns the project list that corresponds to the contact_id.
Declaration
public ProjectList GetProjectListFromContact(int contactId)
Parameters
Type | Name | Description |
---|---|---|
int | contactId | The contact to build the list from. |
Returns
Type | Description |
---|---|
ProjectList | The project list. |
GetProjectListItem(int)
Will return the ProjectListItem described by the projectId.
Declaration
public ProjectListItem GetProjectListItem(int projectId)
Parameters
Type | Name | Description |
---|---|---|
int | projectId | The project |
Returns
Type | Description |
---|---|
ProjectListItem | The project |
OnLoad(ProjectListQuery, 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(ProjectList.ProjectListQuery query, SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
ProjectList.ProjectListQuery | query | |
SoDataReader | reader | The reader which contains all data in the list. |
Overrides
ProjectExist(int)
Checks if the project described by the project_id exist in the list.
Declaration
public bool ProjectExist(int projectId)
Parameters
Type | Name | Description |
---|---|---|
int | projectId | The project |
Returns
Type | Description |
---|---|
bool | True/false |