Class PriceListCache
Cache for Quote Management price lists
Inherited Members
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 600)]
public sealed class PriceListCache : CacheBaseV2, IFlushableV2, IDisposable
Constructors
PriceListCache()
Cache for Quote Management price lists
Declaration
public PriceListCache()
Properties
TableNames
Gets the names of the table data that are cached in this cache. When these tables are updated the cache will be disposed so a new cache instance can take its place.
Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Overrides
Methods
GetCurrent()
Cache for Quote Management price lists
Declaration
public static PriceListCache GetCurrent()
Returns
Type | Description |
---|---|
PriceListCache |
GetPriceListInfo(int, 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 |
---|---|---|
int | 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(int, 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 |
---|---|---|
int | saleId | |
string | erpPriceListKey |
Returns
Type | Description |
---|---|
string |
OnLoad()
Cache for Quote Management price lists
Declaration
protected override void OnLoad()