29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using YY.Admin.Core.Entity;
|
|
|
|
namespace YY.Admin.Core.Services;
|
|
|
|
public interface IMixerMaterialTareStrategyService
|
|
{
|
|
Task<MixerMaterialTareStrategyPageResult> PageAsync(
|
|
int pageNo,
|
|
int pageSize,
|
|
string? mixerMaterialName = null,
|
|
string? supplierName = null,
|
|
CancellationToken ct = default);
|
|
|
|
Task<MesXslMixerMaterialTareStrategy?> GetByIdAsync(string id, CancellationToken ct = default);
|
|
Task<bool> AddAsync(MesXslMixerMaterialTareStrategy strategy, CancellationToken ct = default);
|
|
Task<bool> EditAsync(MesXslMixerMaterialTareStrategy strategy, CancellationToken ct = default);
|
|
Task<bool> DeleteAsync(string id, CancellationToken ct = default);
|
|
Task<List<MesXslUnit>> GetUnitsAsync(CancellationToken ct = default);
|
|
|
|
/// <summary>拉取全部策略(用于原料入场拆码明细自动/手动匹配)。</summary>
|
|
Task<IReadOnlyList<MesXslMixerMaterialTareStrategy>> GetAllForMatchAsync(CancellationToken ct = default);
|
|
}
|
|
|
|
public record MixerMaterialTareStrategyPageResult(
|
|
List<MesXslMixerMaterialTareStrategy> Records,
|
|
long Total,
|
|
int PageNo,
|
|
int PageSize);
|