Class InMemoryProductProvider
Class where you load up the products and pricelists in memory and use from memory.
Inheritance
InMemoryProductProvider
Assembly: SuperOffice.Plugins.dll
Syntax
public class InMemoryProductProvider
Constructors
InMemoryProductProvider()
Declaration
public InMemoryProductProvider()
Properties
Images
Declaration
public Dictionary<string, string[]> Images { get; set; }
Property Value
PriceLists
Declaration
public List<PriceListInfo> PriceLists { get; set; }
Property Value
Products
Declaration
public List<ProductInfo> Products { get; set; }
Property Value
Methods
FindProduct(QuoteAlternativeContextInfo, String, String, String)
Declaration
public ProductInfo[] FindProduct(QuoteAlternativeContextInfo context, string currencyCode, string userinput, string priceListKey)
Parameters
Returns
GetActivePriceLists(String)
Declaration
public PriceListInfo[] GetActivePriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
String |
isoCurrencyCode |
|
Returns
GetAllPriceLists(String)
Declaration
public PriceListInfo[] GetAllPriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
String |
isoCurrencyCode |
|
Returns
GetNumberOfActivePriceLists(String)
Declaration
public int GetNumberOfActivePriceLists(string isoCurrencyCode)
Parameters
Type |
Name |
Description |
String |
isoCurrencyCode |
|
Returns
GetNumberOfProductImages(String)
Declaration
public int GetNumberOfProductImages(string erpProductKey)
Parameters
Type |
Name |
Description |
String |
erpProductKey |
|
Returns
GetProduct(QuoteAlternativeContextInfo, String)
Declaration
public ProductInfo GetProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Returns
GetProductImage(String, Int32)
Declaration
public string GetProductImage(string erpProductKey, int rank)
Parameters
Returns
GetProducts(QuoteAlternativeContextInfo, String[])
Declaration
public ProductInfo[] GetProducts(QuoteAlternativeContextInfo context, string[] erpProductKeys)
Parameters
Returns
GetQuoteLinesfromProduct(QuoteAlternativeContextInfo, ProductInfo)
Declaration
public static QuoteLineInfo[] GetQuoteLinesfromProduct(QuoteAlternativeContextInfo context, ProductInfo p)
Parameters
Returns
GetQuoteLinesFromProduct(QuoteAlternativeContextInfo, String)
Declaration
public QuoteLineInfo[] GetQuoteLinesFromProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Returns
ValidateData()
Checks the loaded pricelists and products for duplicate keys
Declaration
public PluginResponseInfo ValidateData()
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)