Table of Contents

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

Task

A Task representing the asynchronous operation.

FindByCodeAsync(string, CancellationToken)

获取托盘

Task<PalletModel> FindByCodeAsync(string code, CancellationToken cancellationToken = default)

Parameters

code string

The code.

cancellationToken CancellationToken

The cancellationToken

Returns

Task<PalletModel>

A Task representing the asynchronous operation.

FindBySerialNumberAsync(string, CancellationToken)

获取托盘

Task<PalletModel> FindBySerialNumberAsync(string serialNumber, CancellationToken cancellationToken = default)

Parameters

serialNumber string

The serialNumber.

cancellationToken CancellationToken

The cancellationToken

Returns

Task<PalletModel>

A Task representing the asynchronous operation.

GetPalletListAsync(CancellationToken)

获取托盘列表

Task<List<PalletModel>> GetPalletListAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The 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

palletCode string

托盘码.

workSectionName string

工序名称.

forcedUnbind bool

如果托盘未绑定产品码,将解绑成功

Returns

Task<PalletModel>

A Task representing the asynchronous operation.