From 5171d3f59b89389bf75293afd210cfa6de4ccff7 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 10 四月 2026 23:03:49 +0800
Subject: [PATCH] feat: 添加堆垛机相关常量类并重构代码使用常量

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/StackerCraneRoadwayConst.cs |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/StackerCraneRoadwayConst.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/StackerCraneRoadwayConst.cs
new file mode 100644
index 0000000..97c82d6
--- /dev/null
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/Constants/StackerCraneRoadwayConst.cs
@@ -0,0 +1,51 @@
+using System.Collections.Generic;
+
+namespace WIDESEAWCS_Common.Constants
+{
+    /// <summary>
+    /// 鍫嗗灈鏈哄贩閬撳墠缂�甯搁噺
+    /// </summary>
+    /// <remarks>
+    /// 瀹氫箟宸烽亾缂栫爜鐨勫墠缂�涓庡懡浠ょ被鍨嬬殑鏄犲皠鍏崇郴銆�
+    /// </remarks>
+    public class StackerCraneRoadwayConst
+    {
+        /// <summary>
+        /// 鎴愬瀷鍫嗗灈鏈哄贩閬撳墠缂�
+        /// </summary>
+        /// <remarks>
+        /// 浠� HC 寮�澶寸殑宸烽亾浣跨敤鎴愬瀷鍫嗗灈鏈哄懡浠ゆ牸寮忋��
+        /// </remarks>
+        public const string FormationPrefix = "HC";
+
+        /// <summary>
+        /// 鏍囧噯鍫嗗灈鏈哄贩閬撳墠缂�锛圙W锛�
+        /// </summary>
+        /// <remarks>
+        /// 浠� GW 寮�澶寸殑宸烽亾浣跨敤鏍囧噯鍫嗗灈鏈哄懡浠ゆ牸寮忋��
+        /// </remarks>
+        public const string StandardPrefixGW = "GW";
+
+        /// <summary>
+        /// 鏍囧噯鍫嗗灈鏈哄贩閬撳墠缂�锛圕W锛�
+        /// </summary>
+        /// <remarks>
+        /// 浠� CW 寮�澶寸殑宸烽亾浣跨敤鏍囧噯鍫嗗灈鏈哄懡浠ゆ牸寮忋��
+        /// </remarks>
+        public const string StandardPrefixCW = "CW";
+
+        /// <summary>
+        /// 宸烽亾鍓嶇紑鍒板懡浠ょ被鍨嬬殑榛樿鏄犲皠
+        /// </summary>
+        /// <remarks>
+        /// Key: 宸烽亾缂栫爜鍓嶇紑
+        /// Value: 鍛戒护绫诲瀷鍚嶇О
+        /// </remarks>
+        public static readonly Dictionary<string, StackerCraneCommandTypeEnum> DefaultRoadwayCommandMapping = new()
+        {
+            { FormationPrefix, StackerCraneCommandTypeEnum.Formation },
+            { StandardPrefixGW, StackerCraneCommandTypeEnum.Standard },
+            { StandardPrefixCW, StackerCraneCommandTypeEnum.Standard }
+        };
+    }
+}

--
Gitblit v1.9.3