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 |  139 ++++++++++++----------------------------------
 1 files changed, 37 insertions(+), 102 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 959938b..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,124 +1,59 @@
 锘縰sing SqlSugar;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+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 = "ID", IsPrimaryKey = true, ColumnDescription = "涓婚敭ID", IsIdentity = true)]
-        public int ID { get; set; }
+        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")]
+        public int Id { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:璐т綅ID
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "LocationID", ColumnDescription = "璐т綅ID")]
-        public string LocationID { get; set; } = null!;
+        [SugarColumn(IsNullable = false, ColumnDescription = "鍖哄煙涓婚敭")]
+        public int AreaId {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:璐т綅鍚嶇О
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "LocationName", ColumnDescription = "璐т綅鍚嶇О")]
-        public string? LocationName { get; set; }
+        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "璐т綅缂栧彿")]
+        public string LocationCode {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:搴撳尯ID
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "WareAreaID", ColumnDescription = "搴撳尯ID")]
-        public string WareAreaID { get; set; } = null!;
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "璐т綅鍚嶇О")]
+        public string LocationName { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:琛�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Line", ColumnDescription = "琛�")]
-        public string? Line { get; set; }
+        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "宸烽亾缂栧彿")]
+        public string RoadwayNo {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:鍒�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Column", ColumnDescription = "鍒�")]
-        public string? Column { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅琛�")]
+        public int Row {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:灞�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Layer", ColumnDescription = "灞�")]
-        public string? Layer { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅鍒�")]
+        public int Column { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:宸烽亾
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Roadway", ColumnDescription = "宸烽亾")]
-        public string? Roadway { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅灞�")]
+        public int Layer {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:娣卞害
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Depth", ColumnDescription = "娣卞害")]
-        public string? Depth { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅娣卞害")]
+        public int Depth { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:瀵瑰簲鍫嗗灈鏈哄彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "SCNo", ColumnDescription = "瀵瑰簲鍫嗗灈鏈哄彿")]
-        public string? SCNo { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "鏈�澶у簱瀛�")]
+        public int MaxQty {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:鍫嗗灈鏈哄搴旇揣浣嶇珯鍙板彿
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "SClocationID", ColumnDescription = "鍫嗗灈鏈哄搴旇揣浣嶇珯鍙板彿")]
-        public string? SClocationID { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "褰撳墠搴撳瓨")]
+        public int CurrentQty { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:璐т綅绫诲瀷
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "LocationType", ColumnDescription = "璐т綅绫诲瀷")]
-        public string? LocationType { get; set; }
+        [SugarColumn(IsNullable = false, ColumnDescription = "璐т綅绫诲瀷")]
+        public int LocationType {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:鏄惁琚攣瀹�
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "IsLocked", ColumnDescription = "鏄惁琚攣瀹�")]
-        public bool? IsLocked { get; set; }
+        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "璐т綅鐘舵��")]
+        public int LocationStatus {  get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:璐т綅鐘舵��
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "Status", ColumnDescription = "璐т綅鐘舵��")]
-        public int? Status { get; set; }
+        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "绂佺敤鐘舵��")]
+        public int EnableStatus { get; set; }
 
-        /// <summary>
-        /// 澶�  娉�:璐т綅鎻忚堪
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "LocationDesc", ColumnDescription = "璐т綅鎻忚堪")]
-        public string? LocationDesc { get; set; }
-
-        /// <summary>
-        /// 澶�  娉�:鏄惁鍒犻櫎
-        /// 榛樿鍊�:
-        ///</summary>
-        [SugarColumn(ColumnName = "IsDelete", ColumnDescription = "鏄惁鍒犻櫎")]
-        public bool? IsDelete { get; set; }
+        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "澶囨敞")]
+        public string Remark {  get; set; }
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3