Interface IPalletProvider
- Namespace
- CMS.Plugin.PalletManagement.Abstractions
- Assembly
- CMS.Plugin.PalletManagement.Abstractions.dll
托盘提供程序
public interface IPalletProvider
Methods
BindAsync(string, string, string, bool, bool)
托盘绑定
Task<PalletModel> BindAsync(string palletCode, string serialNumber, string workSectionName = null, bool createPallet = false, bool forcedBinding = false)
Parameters
palletCode
string托盘码.
serialNumber
string产品码.
workSectionName
string工序名称.
createPallet
bool如果不存在托盘码,将自动创建新的托盘
forcedBinding
bool如果托盘已使用,将自动解绑后重新绑定
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.
ClearCacheAsync()
清除缓存
Task ClearCacheAsync()
Returns
FindByCodeAsync(string, CancellationToken)
获取托盘
Task<PalletModel> FindByCodeAsync(string code, CancellationToken cancellationToken = default)
Parameters
code
stringThe code.
cancellationToken
CancellationTokenThe cancellationToken
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.
FindBySerialNumberAsync(string, CancellationToken)
获取托盘
Task<PalletModel> FindBySerialNumberAsync(string serialNumber, CancellationToken cancellationToken = default)
Parameters
serialNumber
stringThe serialNumber.
cancellationToken
CancellationTokenThe cancellationToken
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.
GetPalletListAsync(CancellationToken)
获取托盘列表
Task<List<PalletModel>> GetPalletListAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellationToken
Returns
- Task<List<PalletModel>>
A Task representing the asynchronous operation.
UnbindAsync(string, string, bool)
托盘解绑
Task<PalletModel> UnbindAsync(string palletCode, string workSectionName = null, bool forcedUnbind = false)
Parameters
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.