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
serialNumberstringThe serial number.
materialCodestringThe material code.
materialNumberstringThe material number.
Returns
GetByMaterialNumberListAsync(string, DateTime?, DateTime?)
获取物料记录
Task<List<MaterialRecordModel>> GetByMaterialNumberListAsync(string materialNumber, DateTime? timeMin = null, DateTime? timeMax = null)
Parameters
Returns
GetBySerialNumberListAsync(string, DateTime?, DateTime?)
获取物料记录
Task<List<MaterialRecordModel>> GetBySerialNumberListAsync(string serialNumber, DateTime? timeMin = null, DateTime? timeMax = null)
Parameters
Returns
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
serialNumberstringmaterialNumberstringorderCodestringinputFilterstringstartTimeDateTime?finishTimeDateTime?
Returns
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
serialNumberstringmaterialNumberstringorderCodestringfilterTextstringtimeMinDateTime?timeMaxDateTime?sortingstringmaxResultCountintskipCountint
Returns
InsertMaterialRecordsAsync(List<MaterialRecordModel>)
新增物料记录
Task InsertMaterialRecordsAsync(List<MaterialRecordModel> records)
Parameters
recordsList<MaterialRecordModel>The material usage record.
Returns
UpdateMaterialRecordsAsync(List<MaterialRecordModel>)
更新物料记录
Task UpdateMaterialRecordsAsync(List<MaterialRecordModel> records)
Parameters
recordsList<MaterialRecordModel>The material usage record.