C# Класс Nop.Services.ExportImport.ImportManager

Import manager
Наследование: IImportManager
Показать файл Открыть проект

Открытые методы

Метод Описание
ImportCategoryFromXlsx ( Stream stream ) : void

Import categories from XLSX file

ImportManager ( IProductService productService, ICategoryService categoryService, IManufacturerService manufacturerService, IPictureService pictureService, IUrlRecordService urlRecordService, IStoreContext storeContext, INewsLetterSubscriptionService newsLetterSubscriptionService, ICountryService countryService, IStateProvinceService stateProvinceService ) : System
ImportManufacturerFromXlsx ( Stream stream ) : void

Import manufacturers from XLSX file

ImportNewsletterSubscribersFromTxt ( Stream stream ) : int

Import newsletter subscribers from TXT file

ImportProductsFromXlsx ( Stream stream ) : void

Import products from XLSX file

ImportStatesFromTxt ( Stream stream ) : int

Import states from TXT file

Защищенные методы

Метод Описание
ConvertColumnToString ( object columnValue ) : string
GetColumnIndex ( string properties, string columnName ) : int
GetMimeTypeFromFilePath ( string filePath ) : string
LoadPicture ( string picturePath, string name, int picId = null ) : Picture

Creates or loads the image

Описание методов

ConvertColumnToString() защищенный Метод

protected ConvertColumnToString ( object columnValue ) : string
columnValue object
Результат string

GetColumnIndex() защищенный Метод

protected GetColumnIndex ( string properties, string columnName ) : int
properties string
columnName string
Результат int

GetMimeTypeFromFilePath() защищенный Метод

protected GetMimeTypeFromFilePath ( string filePath ) : string
filePath string
Результат string

ImportCategoryFromXlsx() публичный Метод

Import categories from XLSX file
public ImportCategoryFromXlsx ( Stream stream ) : void
stream Stream Stream
Результат void

ImportManager() публичный Метод

public ImportManager ( IProductService productService, ICategoryService categoryService, IManufacturerService manufacturerService, IPictureService pictureService, IUrlRecordService urlRecordService, IStoreContext storeContext, INewsLetterSubscriptionService newsLetterSubscriptionService, ICountryService countryService, IStateProvinceService stateProvinceService ) : System
productService IProductService
categoryService ICategoryService
manufacturerService IManufacturerService
pictureService IPictureService
urlRecordService IUrlRecordService
storeContext IStoreContext
newsLetterSubscriptionService INewsLetterSubscriptionService
countryService ICountryService
stateProvinceService IStateProvinceService
Результат System

ImportManufacturerFromXlsx() публичный Метод

Import manufacturers from XLSX file
public ImportManufacturerFromXlsx ( Stream stream ) : void
stream Stream Stream
Результат void

ImportNewsletterSubscribersFromTxt() публичный Метод

Import newsletter subscribers from TXT file
public ImportNewsletterSubscribersFromTxt ( Stream stream ) : int
stream Stream Stream
Результат int

ImportProductsFromXlsx() публичный Метод

Import products from XLSX file
public ImportProductsFromXlsx ( Stream stream ) : void
stream Stream Stream
Результат void

ImportStatesFromTxt() публичный Метод

Import states from TXT file
public ImportStatesFromTxt ( Stream stream ) : int
stream Stream Stream
Результат int

LoadPicture() защищенный Метод

Creates or loads the image
protected LoadPicture ( string picturePath, string name, int picId = null ) : Picture
picturePath string The path to the image file
name string The name of the object
picId int Image identifier, may be null
Результат Picture