Show / Hide Table of Contents

Class PriceListCache

Cache for Quote Management price lists

Inheritance
Object
CacheBase
PriceListCache
Implements
IDisposable
IFlushable
Inherited Members
CacheBase._lastUpdated
CacheBase._cacheState
CacheBase.IsCacheInvalidated(Int32, SqlType, Int32)
CacheBase.Dispose()
CacheBase.Validate()
CacheBase.Refresh()
CacheBase.Flush()
CacheBase.OnExpired()
CacheBase.OnRefreshed()
CacheBase.OnFlushed()
CacheBase.OnDisposed()
CacheBase.Lock
CacheBase.Name
CacheBase.CacheType
CacheBase.Timeout
CacheBase.State
CacheBase.IsValid
CacheBase.Expired
CacheBase.Refreshed
CacheBase.Flushed
CacheBase.Disposed
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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
CacheBase.GetCachedTableNumbers()

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
CacheBase.OnFlush()

OnRefresh()

Declaration
protected override void OnRefresh()
Overrides
CacheBase.OnRefresh()

Implements

System.IDisposable
IFlushable

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