From 73905dea456af423049753fff10a853d7394ece7 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 12 四月 2026 20:40:25 +0800
Subject: [PATCH] feat(WMS): 新增dispatchTasksToWCS.vue批量下发弹窗组件 - 工具栏按钮触发弹窗 - 表格展示选中任务,可编辑地址和优先级 - 非可下发状态任务行标红且不可编辑 - 显示下发失败任务列表
---
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs
index a3ee114..bfe0b83 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/Omron/OmronEtherNetCommunicator.cs
@@ -24,6 +24,13 @@
[Description("娆у榫橢therNet/IP(CIP)")]
public class OmronEtherNetCommunicator : BaseCommunicator
{
+ #region Constants
+ /// <summary>
+ /// Ping 妫�娴嬮棿闅旀椂闂达紙姣锛�
+ /// </summary>
+ private const int PingIntervalMs = 100;
+ #endregion Constants
+
#region Private Member
/// <summary>
/// HSLCommunication鐨勮タ闂ㄥ瓙鐨凷7鍗忚鐨勯�氳绫�
@@ -328,7 +335,7 @@
private void Ping()
{
- Task.Run(() =>
+ Task.Run(async () =>
{
while (_isPing)
{
@@ -342,7 +349,7 @@
}
finally
{
- Thread.Sleep(100);
+ await Task.Delay(PingIntervalMs);
}
}
});
--
Gitblit v1.9.3