You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
52 lines
1.6 KiB
3 months ago
|
using Kean.Domain.Wcs.Events;
|
||
|
using Kean.Domain.Wcs.SharedServices.Proxies;
|
||
|
using System.Linq;
|
||
|
using System.Threading;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Kean.Domain.Wcs.EventHandlers
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 接受输入成功时,处理类型 6:出库扫描异常
|
||
|
/// </summary>
|
||
|
public sealed class AcceptInputSuccessEventHandler_6 : EventHandler<AcceptInputSuccessEvent>
|
||
|
{
|
||
|
private readonly TaskProxy _taskProxy; // 任务代理
|
||
|
private readonly INotification _notification; //
|
||
|
private readonly Kean.Infrastructure.Soap.LED.LedService _ledService;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 依赖注入
|
||
|
/// </summary>
|
||
|
public AcceptInputSuccessEventHandler_6(
|
||
|
TaskProxy taskProxy,
|
||
|
Kean.Infrastructure.Soap.LED.LedService ledService,
|
||
|
INotification notification)
|
||
|
{
|
||
|
_taskProxy = taskProxy;
|
||
|
_notification = notification;
|
||
|
_ledService = ledService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 处理程序
|
||
|
/// </summary>
|
||
|
public override async Task Handle(AcceptInputSuccessEvent @event, CancellationToken cancellationToken)
|
||
|
{
|
||
|
if (@event.Function == "6")
|
||
|
{
|
||
|
//await _taskProxy.ScanError(
|
||
|
// @event.Barcode,
|
||
|
// @event.Parameters
|
||
|
// );
|
||
|
|
||
|
////LED提示
|
||
|
//string line1 = $"{@event.Barcode}出库确认错误";
|
||
|
//string line2 = $"请人工确认";
|
||
|
|
||
|
//await _ledService.Invoke(@event.Device, line1, line2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|