Show / Hide Table of Contents

Class FindErpProductProvider

Find products through a Quote Connector, either through the standard interface or by dispatching to a custom provider, if one is supplied.

Inheritance
Object
FindErpProductProvider
Implements
IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
[ArchiveProvider("FindErpProduct", 1073741823)]
public class FindErpProductProvider : IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities, IPlugin
Remarks

The mandatory quoteAlternativeId or quoteId is used to look up the correct connection/connector. If the connector contains a provider called FindProductsXYZ, where XYZ is the same as the name specified in the connector's QuoteConnectorAttribute name, then that custom provider is called. Otherwise, the FindProduct method of the connector will be called and its results transformed into an archive provider result set.

From quoteAlternativeId or quoteId the currency of the sale will be derived and added as a ArchiveRestrictionInfo to the search provider. The restriction name will be 'currencyName'

Default restrictions will also be added: priceList/isActive, priceList/validFrom and priceList/validTo.

Constructors

FindErpProductProvider(String)

Construct wrapper and dispatch to correct real provider, based on whether a custom implementation is available or not

Declaration
public FindErpProductProvider(string context)
Parameters
Type Name Description
String context

Fields

ProviderName

Declaration
public const string ProviderName = "FindErpProduct"
Field Value
Type Description
String

QuoteAlternativeContext

Declaration
public const string QuoteAlternativeContext = "QuoteAlternativeId"
Field Value
Type Description
String

QuoteConnectionContext

Declaration
public const string QuoteConnectionContext = "QuoteConnectionId"
Field Value
Type Description
String

QuoteContext

Declaration
public const string QuoteContext = "QuoteId"
Field Value
Type Description
String

UserInputRestriction

Declaration
public const string UserInputRestriction = "userInput"
Field Value
Type Description
String

Methods

Close()

Declaration
public void Close()

GetAvailableColumns()

Declaration
public List<ArchiveColumnInfo> GetAvailableColumns()
Returns
Type Description
List<ArchiveColumnInfo>

GetAvailableEntities()

Declaration
public List<ArchiveRowTypeInfo> GetAvailableEntities()
Returns
Type Description
List<ArchiveRowTypeInfo>

GetReader(String)

Declaration
public IDataReader GetReader(string options)
Parameters
Type Name Description
String options
Returns
Type Description
IDataReader

GetResultInformation()

Declaration
public ArchiveResultInformation GetResultInformation()
Returns
Type Description
ArchiveResultInformation

GetRows(String)

Declaration
public IEnumerable<ArchiveRow> GetRows(string options)
Parameters
Type Name Description
String options
Returns
Type Description
IEnumerable<ArchiveRow>

SetDesiredColumns(String[])

Declaration
public void SetDesiredColumns(params string[] columnIds)
Parameters
Type Name Description
String[] columnIds

SetDesiredEntities(String[])

Declaration
public void SetDesiredEntities(params string[] entities)
Parameters
Type Name Description
String[] entities

SetOrderBy(ArchiveOrderByInfo[])

Declaration
public void SetOrderBy(params ArchiveOrderByInfo[] orderBy)
Parameters
Type Name Description
ArchiveOrderByInfo[] orderBy

SetPagingInfo(Int32, Int32)

Declaration
public void SetPagingInfo(int pageSize, int pageNumber)
Parameters
Type Name Description
Int32 pageSize
Int32 pageNumber

SetRestriction(ArchiveRestrictionInfo[])

Declaration
public bool SetRestriction(params ArchiveRestrictionInfo[] restrictions)
Parameters
Type Name Description
ArchiveRestrictionInfo[] restrictions
Returns
Type Description
Boolean

Implements

IArchiveProvider
IArchiveProviderHasRows
IArchiveProviderHasColumns
IArchiveProviderHasEntities

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top