Show / Hide Table of Contents

Class ProjectList

ProjectList implements the Projectlist in SuperOffice.

Inheritance
Object
ListBase<ProjectList.ProjectListQuery, ProjectListItem>
ProjectList
Implements
IList
ICollection
IList<ProjectListItem>
ICollection<ProjectListItem>
IEnumerable<ProjectListItem>
IEnumerable
Inherited Members
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.get_Item(Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.set_Item(Int32, Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList<ProjectListItem>.get_Item(Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList<ProjectListItem>.set_Item(Int32, ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.CopyTo(Array, Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.CopyTo(ProjectListItem[], Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Add(Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ICollection<ProjectListItem>.Add(ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.IndexOf(Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IndexOf(ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Contains(Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.Contains(ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Clear()
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ICollection<ProjectListItem>.Clear()
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Insert(Int32, Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList<ProjectListItem>.Insert(Int32, ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Remove(Object)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ICollection<ProjectListItem>.Remove(ProjectListItem)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.RemoveAt(Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList<ProjectListItem>.RemoveAt(Int32)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.OnLoad(ProjectList.ProjectListQuery, SoDataReader)
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.GetEnumerator()
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IEnumerable<ProjectListItem>.GetEnumerator()
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.Item[Int32]
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ListCollection
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList.Item[Int32]
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IList<ProjectListItem>.Item[Int32]
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.Count
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IsFixedSize
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.IsReadOnly
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ICollection.IsSynchronized
ListBase<ProjectList.ProjectListQuery, ProjectListItem>.ICollection.SyncRoot
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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(Int32)

Returns the project corresponding to the project_id.

Declaration
public Project GetProject(int projectId)
Parameters
Type Name Description
Int32 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(Int32)

Returns the project list that corresponds to the contact_id.

Declaration
public ProjectList GetProjectListFromContact(int contactId)
Parameters
Type Name Description
Int32 contactId

The contact to build the list from.

Returns
Type Description
ProjectList

The project list.

GetProjectListItem(Int32)

Will return the ProjectListItem described by the projectId.

Declaration
public ProjectListItem GetProjectListItem(int projectId)
Parameters
Type Name Description
Int32 projectId

The project

Returns
Type Description
ProjectListItem

The project

OnLoad(ProjectList.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
SuperOffice.CRM.Lists.ListBase<SuperOffice.CRM.Archives.ProjectList.ProjectListQuery, SuperOffice.CRM.Archives.ProjectListItem>.OnLoad(SuperOffice.CRM.Archives.ProjectList.ProjectListQuery, SuperOffice.Data.SoDataReader)

ProjectExist(Int32)

Checks if the project described by the project_id exist in the list.

Declaration
public bool ProjectExist(int projectId)
Parameters
Type Name Description
Int32 projectId

The project

Returns
Type Description
Boolean

True/false

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
IEnumerableExtensions.ForEach<T>(System.Collections.Generic.IEnumerable<T>, System.Action<T>)
IEnumerableExtensions.ContainsAny<T>(System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IEnumerable<T>)
IEnumerableExtensions.Batch<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
IEnumerableExtensions.IndexOf<T>(System.Collections.Generic.IEnumerable<T>, T, System.Int32)
IEnumerableExtensions.IndexOf<T>(System.Collections.Generic.IEnumerable<T>, System.Func<T, System.Boolean>, System.Int32)
IEnumerableExtensions.Permute<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(System.Collections.Generic.IEnumerable<T>, System.Func<T, K>, System.Func<T, V>)
IEnumerableExtensions.PermissiveToDictionary<T, K, V>(System.Collections.Generic.IEnumerable<T>, System.Func<T, K>, System.Func<T, V>, System.Collections.Generic.IEqualityComparer<K>)
IEnumerableExtensions.GetDifferentCombinations<T>(System.Collections.Generic.IEnumerable<T>, System.Int32)
CollectionOps.AtLeastOne<T>(IEnumerable<T>)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top