27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
|
|
using YY.Admin.Core.Entity;
|
|||
|
|
|
|||
|
|
namespace YY.Admin.Core.Services;
|
|||
|
|
|
|||
|
|
public record RawMaterialEntryPageResult(List<MesXslRawMaterialEntry> Records, long Total, int PageNo, int PageSize);
|
|||
|
|
|
|||
|
|
public interface IRawMaterialEntryService
|
|||
|
|
{
|
|||
|
|
Task<RawMaterialEntryPageResult> PageAsync(
|
|||
|
|
int pageNo, int pageSize,
|
|||
|
|
string? barcode = null,
|
|||
|
|
string? batchNo = null,
|
|||
|
|
string? billNo = null,
|
|||
|
|
string? materialName = null,
|
|||
|
|
string? supplierName = null,
|
|||
|
|
CancellationToken ct = default);
|
|||
|
|
|
|||
|
|
Task<MesXslRawMaterialEntry?> GetByIdAsync(string id, CancellationToken ct = default);
|
|||
|
|
Task<bool> AddAsync(MesXslRawMaterialEntry entry, CancellationToken ct = default);
|
|||
|
|
Task<bool> EditAsync(MesXslRawMaterialEntry entry, CancellationToken ct = default);
|
|||
|
|
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
|||
|
|
Task<bool> DeleteBatchAsync(string ids, CancellationToken ct = default);
|
|||
|
|
|
|||
|
|
/// <summary>调用后端接口生成条码/批次号(格式:QH+物料编码+yyMMdd+序号)</summary>
|
|||
|
|
Task<string?> GenerateBarcodeAsync(string materialCode, CancellationToken ct = default);
|
|||
|
|
}
|