Class PriceListProvider
List of pricelists from the PriceList table.
Supported values in the AdditionalInfo:
- alltrue|false. If true is specified, inactive items is also returned.
- QuoteConnectionIdGets items for a specific Quote connection. If not specified, only SuperOffice pricelists (where IsErpCopy=false) will be returned.
AdditionalInfo string: "all=true&QuoteConnectionId=2"
Inheritance
PriceListProvider
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("PriceList")]
[MDOAdditionalInfoSeparator("&")]
[MDOAdditionalInfo("all", "Return all pricelists, not just the active ones", true)]
[MDOAdditionalInfo("quoteconnectionid", "Return only pricelists on the given connection", 123)]
public class PriceListProvider : AnyTableListProviderBase, ISoListProvider, ISoList, IPlugin
Constructors
PriceListProvider()
Declaration
public PriceListProvider()
Fields
ProviderName
The name of the provider.
Declaration
public const string ProviderName = "PriceList"
Field Value
Properties
TableInfo
Declaration
protected override TableInfo TableInfo { get; }
Property Value
Overrides
Methods
GetMainQuery()
Declaration
protected override Select GetMainQuery()
Returns
Overrides
Init()
Declaration
protected override void Init()
Overrides
OnRead(SoDataReader, Int16)
Declaration
protected override ISoListItem OnRead(SoDataReader reader, short lastRank)
Parameters
Returns
Overrides
SetSearchRestriction(Select, String)
Declaration
protected override void SetSearchRestriction(Select sql, string searchValue)
Parameters
Overrides
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)