Class SaleList
SaleList implements the sale list in SuperOffice.
Implements
Inherited Members
Namespace: SuperOffice.CRM.Archives
Assembly: SoDataBase.dll
Syntax
public sealed class SaleList : ListBase<SaleList.SaleListQuery, SaleListItem>, IList, ICollection, IList<SaleListItem>, ICollection<SaleListItem>, IEnumerable<SaleListItem>, IEnumerable
Methods
GetIndexOfItem(SaleListItem)
Returns the index of the given item.
Declaration
public int GetIndexOfItem(SaleListItem sale)
Parameters
Type | Name | Description |
---|---|---|
SaleListItem | sale | The salelistitem to search for. |
Returns
Type | Description |
---|---|
int | The index of the SaleListItem. |
GetSale(int)
Returns the sale described by the sale_id.
Declaration
public Sale GetSale(int saleId)
Parameters
Type | Name | Description |
---|---|---|
int | saleId | The sale in question |
Returns
Type | Description |
---|---|
Sale | The Sale |
GetSaleListItem(int)
Will return the SaleListItem described by the saleId.
Declaration
public SaleListItem GetSaleListItem(int saleId)
Parameters
Type | Name | Description |
---|---|---|
int | saleId | The person |
Returns
Type | Description |
---|---|
SaleListItem | The sale. |
OnLoad(SaleListQuery, 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(SaleList.SaleListQuery query, SoDataReader reader)
Parameters
Type | Name | Description |
---|---|---|
SaleList.SaleListQuery | query | |
SoDataReader | reader | The reader which contains all data in the list. |
Overrides
SaleExist(int)
Checks if the sale described by the sale exist in the list.
Declaration
public bool SaleExist(int saleId)
Parameters
Type | Name | Description |
---|---|---|
int | saleId | The sale |
Returns
Type | Description |
---|---|
bool | True/false |