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()

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

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)

IProductProvider.FindProduct

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)

IProductProvider.GetActivePriceLists

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

GetAllPriceLists(string)

IProductProvider.GetAllPriceLists

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

GetNumberOfActivePriceLists(string)

IProductProvider.GetNumberOfActivePriceLists

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

GetNumberOfProductImages(string)

IProductProvider.GetNumberOfProductImages

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

GetProduct(QuoteAlternativeContextInfo, string)

IProductProvider.GetProduct

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

GetProductImage(string, int)

IProductProvider.GetProductImage

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

GetProducts(QuoteAlternativeContextInfo, string[])

IProductProvider.GetProducts

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

GetQuoteLinesFromProduct(QuoteAlternativeContextInfo, string)

IProductProvider.GetQuoteLinesFromProduct

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

GetQuoteLinesfromProduct(QuoteAlternativeContextInfo, ProductInfo)

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

Declaration
public static QuoteLineInfo[] GetQuoteLinesfromProduct(QuoteAlternativeContextInfo context, ProductInfo p)
Parameters
Type Name Description
QuoteAlternativeContextInfo context
ProductInfo p
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)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top