Table of Contents

Interface IBillOfMaterialInterposeService

Namespace
CMS.Plugin.MaterialManagement.Abstractions
Assembly
CMS.Plugin.MaterialManagement.Abstractions.dll

BOM模块的介入服务

public interface IBillOfMaterialInterposeService

Methods

AfterExportedAsync(List<BillOfMaterialExportModel>, List<BillOfMaterialItemExportModel>, IWorkbook, Dictionary<string, object>)

导出后调用 可对数据进一步加工.

Task AfterExportedAsync(List<BillOfMaterialExportModel> billOfMaterials, List<BillOfMaterialItemExportModel> billOfMaterialItems, IWorkbook workbook, Dictionary<string, object> context)

Parameters

billOfMaterials List<BillOfMaterialExportModel>
billOfMaterialItems List<BillOfMaterialItemExportModel>
workbook IWorkbook

导出文件的对象

context Dictionary<string, object>

上下文,用于扩展定制逻辑

Returns

Task

AfterImportedAsync(List<BillOfMaterialExportModel>, List<BillOfMaterialItemExportModel>, Stream, Dictionary<string, object>)

导入后调用 可进行校验或者对数据进一步加工.

Task AfterImportedAsync(List<BillOfMaterialExportModel> billOfMaterials, List<BillOfMaterialItemExportModel> billOfMaterialItems, Stream fileStream, Dictionary<string, object> context)

Parameters

billOfMaterials List<BillOfMaterialExportModel>
billOfMaterialItems List<BillOfMaterialItemExportModel>
fileStream Stream

导入文件的流,可处理定制逻辑.

context Dictionary<string, object>

上下文,用于扩展定制逻辑

Returns

Task

BeforeExportingAsync(List<BillOfMaterialExportModel>, List<BillOfMaterialItemExportModel>, IWorkbook, Dictionary<string, object>)

导出前调用 可对数据进一步加工.

Task BeforeExportingAsync(List<BillOfMaterialExportModel> billOfMaterials, List<BillOfMaterialItemExportModel> billOfMaterialItems, IWorkbook workbook, Dictionary<string, object> context)

Parameters

billOfMaterials List<BillOfMaterialExportModel>
billOfMaterialItems List<BillOfMaterialItemExportModel>
workbook IWorkbook

导出文件的对象

context Dictionary<string, object>

上下文,用于扩展定制逻辑

Returns

Task

BeforeImportingAsync(List<BillOfMaterialExportModel>, List<BillOfMaterialItemExportModel>, Stream, Dictionary<string, object>)

导入前调用 可进行校验或者对数据进一步加工.

Task BeforeImportingAsync(List<BillOfMaterialExportModel> billOfMaterials, List<BillOfMaterialItemExportModel> billOfMaterialItems, Stream fileStream, Dictionary<string, object> context)

Parameters

billOfMaterials List<BillOfMaterialExportModel>
billOfMaterialItems List<BillOfMaterialItemExportModel>
fileStream Stream

导入文件的流,可处理定制逻辑.

context Dictionary<string, object>

上下文,用于扩展定制逻辑

Returns

Task