Table of Contents

Interface IMaterialRecorder

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

物料记录服务

public interface IMaterialRecorder

Methods

ExistAsync(string, string, string)

是否存在物料记录

Task<bool> ExistAsync(string serialNumber, string materialCode, string materialNumber)

Parameters

serialNumber string

The serial number.

materialCode string

The material code.

materialNumber string

The material number.

Returns

Task<bool>

GetByMaterialNumberListAsync(string, DateTime?, DateTime?)

获取物料记录

Task<List<MaterialRecordModel>> GetByMaterialNumberListAsync(string materialNumber, DateTime? timeMin = null, DateTime? timeMax = null)

Parameters

materialNumber string

The serial number.

timeMin DateTime?
timeMax DateTime?

Returns

Task<List<MaterialRecordModel>>

GetBySerialNumberListAsync(string, DateTime?, DateTime?)

获取物料记录

Task<List<MaterialRecordModel>> GetBySerialNumberListAsync(string serialNumber, DateTime? timeMin = null, DateTime? timeMax = null)

Parameters

serialNumber string

The serial number.

timeMin DateTime?
timeMax DateTime?

Returns

Task<List<MaterialRecordModel>>

GetCountAsync(string?, string?, string?, string, DateTime?, DateTime?)

计数物料记录

Task<long> GetCountAsync(string? serialNumber = null, string? materialNumber = null, string? orderCode = null, string inputFilter = null, DateTime? startTime = null, DateTime? finishTime = null)

Parameters

serialNumber string
materialNumber string
orderCode string
inputFilter string
startTime DateTime?
finishTime DateTime?

Returns

Task<long>

GetListAsync(string?, string?, string?, string, DateTime?, DateTime?, string?, int, int)

检索物料记录

Task<List<MaterialRecordModel>> GetListAsync(string? serialNumber = null, string? materialNumber = null, string? orderCode = null, string filterText = null, DateTime? timeMin = null, DateTime? timeMax = null, string? sorting = null, int maxResultCount = 2147483647, int skipCount = 0)

Parameters

serialNumber string
materialNumber string
orderCode string
filterText string
timeMin DateTime?
timeMax DateTime?
sorting string
maxResultCount int
skipCount int

Returns

Task<List<MaterialRecordModel>>

InsertMaterialRecordsAsync(List<MaterialRecordModel>)

新增物料记录

Task InsertMaterialRecordsAsync(List<MaterialRecordModel> records)

Parameters

records List<MaterialRecordModel>

The material usage record.

Returns

Task

UpdateMaterialRecordsAsync(List<MaterialRecordModel>)

更新物料记录

Task UpdateMaterialRecordsAsync(List<MaterialRecordModel> records)

Parameters

records List<MaterialRecordModel>

The material usage record.

Returns

Task