Show / Hide Table of Contents

Class InMemoryProductProvider

Class where you load up the products and pricelists in memory and use from memory.

Inheritance
Object
InMemoryProductProvider
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM
Assembly: SuperOffice.Plugins.dll
Syntax
public class InMemoryProductProvider

Constructors

InMemoryProductProvider()

Declaration
public InMemoryProductProvider()

Properties

Images

The images

Declaration
public Dictionary<string, string[]> Images { get; set; }
Property Value
Type Description
Dictionary<String, String[]>

PriceLists

The pricelists

Declaration
public List<PriceListInfo> PriceLists { get; set; }
Property Value
Type Description
List<PriceListInfo>

Products

The products

Declaration
public List<ProductInfo> Products { get; set; }
Property Value
Type Description
List<ProductInfo>

Methods

FindProduct(QuoteAlternativeContextInfo, String, String, String)

Declaration
public ProductInfo[] FindProduct(QuoteAlternativeContextInfo context, string currencyCode, string userinput, string priceListKey)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
String currencyCode
String userinput
String priceListKey
Returns
Type Description
ProductInfo[]

GetActivePriceLists(String)

Declaration
public PriceListInfo[] GetActivePriceLists(string isoCurrencyCode)
Parameters
Type Name Description
String isoCurrencyCode
Returns
Type Description
PriceListInfo[]

GetAllPriceLists(String)

Declaration
public PriceListInfo[] GetAllPriceLists(string isoCurrencyCode)
Parameters
Type Name Description
String isoCurrencyCode
Returns
Type Description
PriceListInfo[]

GetNumberOfActivePriceLists(String)

Declaration
public int GetNumberOfActivePriceLists(string isoCurrencyCode)
Parameters
Type Name Description
String isoCurrencyCode
Returns
Type Description
Int32

GetNumberOfProductImages(String)

Declaration
public int GetNumberOfProductImages(string erpProductKey)
Parameters
Type Name Description
String erpProductKey
Returns
Type Description
Int32

GetProduct(QuoteAlternativeContextInfo, String)

Declaration
public ProductInfo GetProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
String erpProductKey
Returns
Type Description
ProductInfo

GetProductImage(String, Int32)

Declaration
public string GetProductImage(string erpProductKey, int rank)
Parameters
Type Name Description
String erpProductKey
Int32 rank
Returns
Type Description
String

GetProducts(QuoteAlternativeContextInfo, String[])

Declaration
public ProductInfo[] GetProducts(QuoteAlternativeContextInfo context, string[] erpProductKeys)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
String[] erpProductKeys
Returns
Type Description
ProductInfo[]

GetQuoteLinesfromProduct(QuoteAlternativeContextInfo, ProductInfo)

Declaration
public static QuoteLineInfo[] GetQuoteLinesfromProduct(QuoteAlternativeContextInfo context, ProductInfo p)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
ProductInfo p
Returns
Type Description
QuoteLineInfo[]

GetQuoteLinesFromProduct(QuoteAlternativeContextInfo, String)

Declaration
public QuoteLineInfo[] GetQuoteLinesFromProduct(QuoteAlternativeContextInfo context, string erpProductKey)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
String erpProductKey
Returns
Type Description
QuoteLineInfo[]

ValidateData()

Checks the loaded pricelists and products for duplicate keys

Declaration
public PluginResponseInfo ValidateData()
Returns
Type Description
PluginResponseInfo

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