Class ProductDuplicateHelper
Class that encapsulates the duplicate check in the import routine
Inherited Members
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.dll
Syntax
public class ProductDuplicateHelper
Constructors
ProductDuplicateHelper(Dictionary<string, int>, ImportProductDuplicateMatch, bool)
Constructor
Declaration
public ProductDuplicateHelper(Dictionary<string, int> columnsDictionary, ImportProductDuplicateMatch dupProductMatch, bool addAllProducts)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, int> | columnsDictionary | Columns setup |
ImportProductDuplicateMatch | dupProductMatch | Duplicate type for product matches |
bool | addAllProducts | Add all products? |
Methods
GetDuplicates(ImportItem[], Dictionary<string, bool>, Dictionary<string, Dictionary<string, object>>, bool, int, Dictionary<int, string>, Dictionary<int, int>)
Prepare the duplicate information
Declaration
public void GetDuplicates(ImportItem[] importRows, Dictionary<string, bool> productInserted, Dictionary<string, Dictionary<string, object>> productLookup, bool saveForReal, int pricelistId, Dictionary<int, string> productIdLookup, Dictionary<int, int> blobIdDictionary)
Parameters
Type | Name | Description |
---|---|---|
ImportItem[] | importRows | |
Dictionary<string, bool> | productInserted | |
Dictionary<string, Dictionary<string, object>> | productLookup | |
bool | saveForReal | |
int | pricelistId | |
Dictionary<int, string> | productIdLookup | |
Dictionary<int, int> | blobIdDictionary |