From 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 09 七月 2025 22:55:27 +0800
Subject: [PATCH] 增加质检出入库逻辑

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_LocationInfo.cs |  221 ++++++++++++-------------------------------------------
 1 files changed, 49 insertions(+), 172 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_LocationInfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_LocationInfo.cs"
index d7d8c2b..54bfc31 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_LocationInfo.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_LocationInfo.cs"
@@ -1,182 +1,59 @@
+锘縰sing SqlSugar;
 using System;
 using System.Collections.Generic;
 using System.Linq;
-using SqlSugar;
+using System.Text;
+using System.Threading.Tasks;
 using WIDESEA_Core.DB.Models;
+
 namespace WIDESEA_Model.Models
 {
-    /// <summary>
-    /// 璐т綅琛�
-    ///</summary>
-    [SugarTable("Dt_LocationInfo")]
+    [SugarTable(nameof(Dt_LocationInfo), "璐т綅淇℃伅")]
     public class Dt_LocationInfo : BaseEntity
     {
-        
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅ID
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="LocationID" ,IsPrimaryKey = true,IsIdentity = true) ]
-        public int LocationID  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:宸烽亾缂栧彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="RoadWayNO" ) ]
-        public string RoadWayNO  { get; set;  } = null!;
-     
-        /// <summary>
-        /// 澶�  娉�:搴撳尯缂栧彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="WareAreaCode" ) ]
-        public string? WareAreaCode  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅缂栧彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="LocationCode" ) ]
-        public string LocationCode  { get; set;  } = null!;
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅鍚嶇О
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="LocationName" ) ]
-        public string? LocationName  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:琛�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Line" ) ]
-        public string? Line  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:鍒�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Column" ) ]
-        public string? Column  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:灞�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Layer" ) ]
-        public string? Layer  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:宸烽亾
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Roadway" ) ]
-        public string? Roadway  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:娣卞害
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Depth" ) ]
-        public string? Depth  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:瀵瑰簲鍫嗗灈鏈哄彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="SCNo" ) ]
-        public string? SCNo  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:鍫嗗灈鏈哄搴旇揣浣嶇珯鍙板彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="SClocationID" ) ]
-        public string? SClocationID  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅绫诲瀷锛�1锛屽崟娣�  2锛屽娣憋級
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="LocationType" ) ]
-        public int? LocationType  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:鏄惁琚攣瀹�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="IsLocked" ) ]
-        public bool IsLocked  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅鐘舵�侊紙0锛岀┖闂� 1锛屾湁璐� 2锛岄攣瀹� 3锛屾湁璐х鐢� 4锛屾棤璐х鐢級
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Status" ) ]
-        public int? Status  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:璐т綅鎻忚堪
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="LocationDesc" ) ]
-        public string? LocationDesc  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:鏄惁鍒犻櫎
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="IsDelete" ) ]
-        public bool? IsDelete  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:澶囨敞
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Remark" ) ]
-        public string? Remark  { get; set;  } 
-     
-       
-     
-        /// <summary>
-        /// 澶�  娉�:
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Spare1" ) ]
-        public string? Spare1  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Spare2" ) ]
-        public string? Spare2  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Spare3" ) ]
-        public string? Spare3  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Spare4" ) ]
-        public string? Spare4  { get; set;  } 
-     
-        /// <summary>
-        /// 澶�  娉�:
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName="Spare5" ) ]
-        public string? Spare5  { get; set;  } 
-    
+        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")]
+        public int Id { get; set; }
 
+        [SugarColumn(IsNullable = false, ColumnDescription = "鍖哄煙涓婚敭")]
+        public int AreaId {  get; set; }
+
+        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "璐т綅缂栧彿")]
+        public string LocationCode {  get; set; }
+
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "璐т綅鍚嶇О")]
+        public string LocationName { get; set; }
+
+        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "宸烽亾缂栧彿")]
+        public string RoadwayNo {  get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅琛�")]
+        public int Row {  get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅鍒�")]
+        public int Column { get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅灞�")]
+        public int Layer {  get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅娣卞害")]
+        public int Depth { get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "鏈�澶у簱瀛�")]
+        public int MaxQty {  get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "褰撳墠搴撳瓨")]
+        public int CurrentQty { get; set; }
+
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅绫诲瀷")]
+        public int LocationType {  get; set; }
+
+        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "璐т綅鐘舵��")]
+        public int LocationStatus {  get; set; }
+
+        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "绂佺敤鐘舵��")]
+        public int EnableStatus { get; set; }
+
+        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "澶囨敞")]
+        public string Remark {  get; set; }
     }
-    
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3