Table of Contents

Interface IMaterialAssociationChecker

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

物料关联检测

public interface IMaterialAssociationChecker

Methods

HasBeenUsedAsync(IEnumerable<string>)

判断产品是否已被数据关联使用(批量)

Task<List<(string usedName, string UsedObject)>> HasBeenUsedAsync(IEnumerable<string> materialNames)

Parameters

materialNames IEnumerable<string>

物料名称集合

Returns

Task<List<(string usedName, string UsedObject)>>

HasBeenUsedAsync(string)

判断物料是否已被数据关联使用

Task<(bool IsUsed, string UsedObject)> HasBeenUsedAsync(string materialName)

Parameters

materialName string

物料名称

Returns

Task<(bool IsUsed, string UsedObject)>

返回是否被应用,及应用的对象,如:"XXX配方"

IsInProductionAsync(IEnumerable<string>)

判断物料是否在生产中(批量)

Task<List<string>> IsInProductionAsync(IEnumerable<string> materialNames)

Parameters

materialNames IEnumerable<string>

Returns

Task<List<string>>

IsInProductionAsync(string)

判断物料是否在生产中

Task<bool> IsInProductionAsync(string materialName)

Parameters

materialName string

物料名称

Returns

Task<bool>