Table of Contents

Interface IOrderScheduler

Namespace
CMS.Plugin.OrderManagement.Abstractions
Assembly
CMS.Plugin.OrderManagement.Abstractions.dll
public interface IOrderScheduler

Methods

CheckCompleteCurrentOrderAsync(OrderModel, ulong, int?, int)

检查当前工单是否可以完成

Task<bool> CheckCompleteCurrentOrderAsync(OrderModel currentOrder, ulong produceQty, int? percentageOfSwitching, int completeMode)

Parameters

currentOrder OrderModel

当前工单

produceQty ulong

已投产数量

percentageOfSwitching int?

切换百分比

completeMode int

完成模式

Returns

Task<bool>

如果当前工单可以完成则返回true,否则返回false

GetNextProductionOrderAsync(Guid?, Guid?, int)

获取下一个排产工单

Task<OrderModel> GetNextProductionOrderAsync(Guid? segmentId, Guid? productId, int dispatchMode)

Parameters

segmentId Guid?

工序段Id

productId Guid?

产品Id

dispatchMode int

工单排产模式

Returns

Task<OrderModel>