Show / Hide Table of Contents

Class PriceListCache

Cache for Quote Management price lists

Inheritance
Object
CacheBaseV2
PriceListCache
Implements
IFlushableV2
IDisposable
Inherited Members
CacheBaseV2.IsCacheInvalidated(String, Int32, PrivateSave)
CacheBaseV2.Dispose()
CacheBaseV2.Flush()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.GetCurrent<T>()
CacheBaseV2.Load()
CacheBaseV2.Disposed
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

Cache for Quote Management price lists

Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type Description
IEnumerable<String>
Overrides
CacheBaseV2.TableNames

Methods

GetCurrent()

Cache for Quote Management price lists

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

OnLoad()

Cache for Quote Management price lists

Declaration
protected override void OnLoad()
Overrides
CacheBaseV2.OnLoad()

Implements

IFlushableV2
System.IDisposable

Extension Methods

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