From 2d3ee03961d6cfbde70342e8a97bc7b05d0b0dc3 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期一, 21 七月 2025 17:27:34 +0800
Subject: [PATCH] 优化代码, 封装货位锁和创建任务流程, 数据库事务等

---
 models/TN_Location.cs |   51 ++++-----------------------------------------------
 1 files changed, 4 insertions(+), 47 deletions(-)

diff --git a/models/TN_Location.cs b/models/TN_Location.cs
index e9c844d..e1267d0 100644
--- a/models/TN_Location.cs
+++ b/models/TN_Location.cs
@@ -3,55 +3,16 @@
 using SqlSugar;
 
 namespace HH.WCS.Mobox3.DSZSH.models {
-    /// <summary>
-    /// 銆愭鏋躲�璐т綅琛�-    /// </summary>
-
     [SugarTable("TN_Location")]
     public class TN_Location : BaseModel {
-        /// <summary>
-        /// 璐т綅 ID
-        /// </summary>
         public string S_CODE { get; set; }
-
-        /// <summary>
-        /// 璐т綅鍚嶇О
-        /// </summary>
         public string S_NAME { get; set; } = "";
-
-        /// <summary>
-        /// 璐т綅鎵�湪鍖哄煙 ID
-        /// </summary>
         public string S_AREA_CODE { get; set; }
-
-        /// <summary>
-        /// 鍥借嚜 AGV 瀵瑰簲鐨勫簱浣嶅悕绉�-        /// </summary>
         public string S_AGV_SITE { get; set; } = "0";
-
-        /// <summary>
-        /// 璐т綅瀹瑰櫒瀹归噺
-        /// </summary>
         public int N_CAPACITY { get; set; } = 1;
-
-        /// <summary>
-        /// 璐т綅褰撳墠瀹瑰櫒鏁伴噺
-        /// </summary>
         public int N_CURRENT_NUM { get; set; } = 0;
-
-        /// <summary>
-        /// 琛屽彿
-        /// </summary>
         public int N_ROW { get; set; } = 0;
-
-        /// <summary>
-        /// 鍒楀彿
-        /// </summary>
         public int N_COL { get; set; } = 0;
-
-        /// <summary>
-        /// 璐т綅鐨勫眰鏁�-        /// </summary>
         public int N_LAYER { get; set; } = 1;
 
         // BEG 鍒濆鍖栬〃鏍间娇鐢�@@ -79,17 +40,12 @@
         /// </summary>
         public string S_LOCK_OP { get; set; } = "";
 
-        /// <summary>
-        /// 璐т綅鏄惁鍚敤:Y鍚敤
-        /// </summary>
         public string C_ENABLE { get; set; } = "Y";
 
+        #region 闈炲瓧娈甸儴鍒�         /// <summary>
-        /// 璐т綅-瀹瑰櫒 鍏崇郴鏄犲皠
+        /// <!--榛樿涓嶄娇鐢�->SqlSugar鍏崇郴鏄犲皠鍒楄〃
         /// </summary>
-        /// <remarks>
-        /// 榛樿鏄竴瀵瑰,閫氬父鎯呭喌鏄竴瀵逛竴
-        /// </remarks>
         [Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))]
         public List<TN_Loc_Container> LocCntrRels { get; set; }
 
@@ -102,6 +58,7 @@
                 case 3: str = "鍏跺畠閿�; break;
             }
             return str;
-        }
+        } 
+        #endregion
     }
 }

--
Gitblit v1.9.1