From 2ca90a404fa1ab94eb6374f50c6ddd47a2b7f0e6 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 31 七月 2025 17:23:57 +0800 Subject: [PATCH] 删除有问题的TCP旧代码, 优化事务处理和ERP数据模型 --- wms/LogMsg.cs | 36 +++++++++++++++++------------------- 1 files changed, 17 insertions(+), 19 deletions(-) diff --git a/wms/LogMsg.cs b/wms/LogMsg.cs index 11848f4..375220f 100644 --- a/wms/LogMsg.cs +++ b/wms/LogMsg.cs @@ -4,12 +4,10 @@ using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; - using HH.WCS.Mobox3.DSZSH.models; - using Newtonsoft.Json; -namespace HH.WCS.Mobox3.DSZSH.util { +namespace HH.WCS.Mobox3.DSZSH.wms { /// <summary> /// [ 鏃ュ織淇℃伅 ] 鏋勯�绫� /// </summary> @@ -24,7 +22,7 @@ /// <param name="areas">鎵�湪搴撳尯鍒楄〃 ( 涓�null 鎴�[] 鏃跺拷鐣�)</param> /// <param name="curNum">褰撳墠鏁伴噺 ( 灏忎簬 0 鏃跺拷鐣�)</param> /// <returns></returns> - public static string LocNotFound(string desc, int @lock, string name, List<string> areas, int curNum) { + public static string LocNotFound(string desc = "", int @lock = 0, string name = "", List<string> areas = null, int curNum = -1) { var res = $"娌℃湁鎵惧埌{desc}璐т綅!!瑕佹眰:"; if (@lock >= 0) { @@ -44,6 +42,16 @@ } /// <summary> + /// <c>"娌℃湁鎵惧埌璧风偣璐т綅!!瑕佹眰:閿佺姸鎬�'鏃�;璐т綅鍚嶇О='name';鎵�湪搴撳尯=[areas];褰撳墠瀹瑰櫒鏁伴噺=0;"</c> + /// </summary> + /// <param name="name">璐т綅鍚嶇О ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> + /// <param name="areas">鎵�湪搴撳尯鍒楄〃 ( 涓�null 鎴�[] 鏃跺拷鐣�)</param> + /// <returns></returns> + public static string StartLocUnbindNotFound(string name = "", List<string> areas = null) { + return LocNotFound("璧风偣", 0, name, areas, 0); + } + + /// <summary> /// <c>"娌℃湁鎵惧埌璧风偣璐т綅!!瑕佹眰:閿佺姸鎬�'鏃�;璐т綅鍚嶇О='name';鎵�湪搴撳尯=[areas];褰撳墠瀹瑰櫒鏁伴噺=curNum;"</c> /// </summary> /// <param name="name">璐т綅鍚嶇О ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> @@ -52,16 +60,6 @@ /// <returns></returns> public static string StartLocNotFound(string name = "", List<string> areas = null, int curNum = 1) { return LocNotFound("璧风偣", 0, name, areas, curNum); - } - - /// <summary> - /// <c>"娌℃湁鎵惧埌璧风偣璐т綅!!瑕佹眰:閿佺姸鎬�'鏃�;璐т綅鍚嶇О='name';鎵�湪搴撳尯=[areas];褰撳墠瀹瑰櫒鏁伴噺=0;"</c> - /// </summary> - /// <param name="name">璐т綅鍚嶇О ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> - /// <param name="areas">鎵�湪搴撳尯鍒楄〃 ( 涓�null 鎴�[] 鏃跺拷鐣�)</param> - /// <returns></returns> - public static string StartLocUnbindNotFound(string name = "", List<string> areas = null) { - return LocNotFound("璧风偣", 0, name, areas, 0); } /// <summary> @@ -79,8 +77,8 @@ /// <c>"娌℃湁鎵惧埌[璐т綅瀹瑰櫒缁戝畾]淇℃伅!!瑕佹眰:璐т綅='loc';瀹瑰櫒='cntr';"</c> /// </summary> /// <remarks><b>[ 娉ㄦ剰 ]</b> 鍘熷垯涓婅嚦灏戞湁 1 涓檺鍒舵潯浠�/remarks> - /// <param name="loc"></param> - /// <param name="cntr"></param> + /// <param name="loc">璐т綅缂栫爜 ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> + /// <param name="cntr">瀹瑰櫒缂栫爜 ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> /// <returns></returns> public static string LocCntrRelNotFound(string loc = "", string cntr = "") { var res = $"娌℃湁鎵惧埌[璐т綅瀹瑰櫒缁戝畾]淇℃伅!!瑕佹眰:"; @@ -99,8 +97,8 @@ /// <c>"娌℃湁鎵惧埌[瀹瑰櫒璐у搧鏄庣粏]淇℃伅!!瑕佹眰:瀹瑰櫒='cntr';鐗╂枡='item';"</c> /// </summary> /// <remarks><b>[ 娉ㄦ剰 ]</b> 鍘熷垯涓婅嚦灏戞湁 1 涓檺鍒舵潯浠�/remarks> - /// <param name="cntr"></param> - /// <param name="item"></param> + /// <param name="cntr">瀹瑰櫒缂栫爜 ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> + /// <param name="item">鐗╂枡缂栫爜 ( 涓�null 鎴�"" 鏃跺拷鐣�)</param> /// <returns></returns> public static string CgDetailNotFound(string cntr = "", string item = "") { var res = $"娌℃湁鎵惧埌[瀹瑰櫒璐у搧鏄庣粏]淇℃伅!!瑕佹眰:"; @@ -111,7 +109,7 @@ if (!string.IsNullOrEmpty(item)) { res += $"鐗╂枡='{item}';"; } - + return res; } } -- Gitblit v1.9.1