Class PriceListCache
Cache for Quote Management price lists
Inherited Members
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
public sealed class PriceListCache : CacheBase, IDisposable, IFlushable
Methods
GetCachedTableNumbers()
Declaration
public override int[] GetCachedTableNumbers()
Returns
Type | Description |
---|---|
Int32[] |
Overrides
GetCurrent()
Declaration
public static PriceListCache GetCurrent()
Returns
Type | Description |
---|---|
PriceListCache |
GetPriceListInfo(Int32, String)
Get one single pricelist, based on sale Id and erpPriceListKey. This call may cause the Quote Connector to be called, so has quite variable latency.
Declaration
public PriceListInfo GetPriceListInfo(int saleId, string erpPriceListKey)
Parameters
Type | Name | Description |
---|---|---|
Int32 | saleId | Id of the sale; this sale must have a Quote, from which we derive the quote connection id |
String | erpPriceListKey | Key identifying the desired price list |
Returns
Type | Description |
---|---|
PriceListInfo | Pricelist info, or null if the key or other parameters do not match |
GetPriceListName(Int32, String)
Get the name of a price list, or the empty string if no match
Declaration
public string GetPriceListName(int saleId, string erpPriceListKey)
Parameters
Type | Name | Description |
---|---|---|
Int32 | saleId | |
String | erpPriceListKey |
Returns
Type | Description |
---|---|
String |
OnFlush()
Declaration
protected override void OnFlush()
Overrides
OnRefresh()
Declaration
protected override void OnRefresh()
Overrides
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)