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
palletCodestring托盘码.
serialNumberstring产品码.
workSectionNamestring工序名称.
createPalletbool如果不存在托盘码,将自动创建新的托盘
forcedBindingbool如果托盘已使用,将自动解绑后重新绑定
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
codestringThe code.
cancellationTokenCancellationTokenThe cancellationToken
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.
FindBySerialNumberAsync(string, CancellationToken)
获取托盘
Task<PalletModel> FindBySerialNumberAsync(string serialNumber, CancellationToken cancellationToken = default)
Parameters
serialNumberstringThe serialNumber.
cancellationTokenCancellationTokenThe cancellationToken
Returns
- Task<PalletModel>
A Task representing the asynchronous operation.
GetPalletListAsync(CancellationToken)
获取托盘列表
Task<List<PalletModel>> GetPalletListAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe 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.