From d4b0b578752a1478f6c11b352fbb8d2bad1f9e1d Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 22 十月 2025 17:18:49 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs |   67 +++++++++++++++++++++++++--------
 1 files changed, 51 insertions(+), 16 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
index b8c8a02..1527ec0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/BasicModel/DtStockInfo_Hty.cs"
@@ -1,34 +1,69 @@
 锘縰sing Magicodes.ExporterAndImporter.Core;
+using Masuit.Tools.Core.Validator;
 using SqlSugar;
+using System.ComponentModel.DataAnnotations;
 using WIDESEA_Core.DB.Models;
 
 namespace WIDESEA_Model.Models
 {
     [SugarTable(nameof(DtStockInfo_Hty), "搴撳瓨淇℃伅鍘嗗彶")]
-    public class DtStockInfo_Hty : DtStockInfo, IBaseHistoryEntity
+    public class DtStockInfo_Hty : BaseEntity
     {
         /// <summary>
-        /// 鍘熻〃涓婚敭
+        /// 涓婚敭
         /// </summary>
-        [ImporterHeader(Name = "鍘熻〃涓婚敭")]
-        [ExporterHeader(DisplayName = "鍘熻〃涓婚敭")]
-        [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "鍘熻〃涓婚敭")]
-        public int SourceId { get; set; }
+        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "涓婚敭")]
+        public int Id { get; set; }
 
         /// <summary>
-        /// 鎿嶄綔绫诲瀷
+        /// 鎵樼洏缂栫爜
         /// </summary>
-        [ImporterHeader(Name = "鎿嶄綔绫诲瀷")]
-        [ExporterHeader(DisplayName = "鎿嶄綔绫诲瀷")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎿嶄綔绫诲瀷")]
-        public string OperateType { get; set; }
+        [Required]
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎵樼洏缂栧彿")]
+        public string PalletCode { get; set; }
 
         /// <summary>
-        /// 绉诲叆鍘嗗彶鏃堕棿
+        /// 璐т綅缂栫爜
         /// </summary>
-        [ImporterHeader(Name = "绉诲叆鍘嗗彶鏃堕棿")]
-        [ExporterHeader(DisplayName = "绉诲叆鍘嗗彶鏃堕棿")]
-        [SugarColumn(IsNullable = false, ColumnDescription = "绉诲叆鍘嗗彶鏃堕棿")]
-        public DateTime InsertTime { get; set; }
+        [SugarColumn(IsNullable = true, ColumnDescription = "璐т綅缂栫爜")]
+        public string LocationCode { get; set; }
+
+        /// <summary>
+        /// 鏄惁婊$洏
+        /// </summary>
+        [Required]
+        [SugarColumn(IsNullable = true, ColumnDescription = "鏄惁婊$洏")]
+        public bool IsFull { get; set; } = true;
+
+        /// <summary>
+        /// 鐘舵��
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "鐘舵��")]
+        public int StockStatus { get; set; }
+
+        /// <summary>
+        /// 鍗曟嵁缂栧彿
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "鍗曟嵁缂栧彿")]
+        public string OrderNo { get; set; }
+
+        /// <summary>
+        /// 鍗曟嵁绫诲瀷
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "鍗曟嵁绫诲瀷")]
+        public string OrderType { get; set; }
+
+        /// <summary>
+        /// 澶囨敞
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "澶囨敞")]
+        public string Remark { get; set; }
+
+        /// <summary>
+        /// 搴撳瓨鏄庣粏
+        /// </summary>
+        [SugarColumn(ColumnName = "DtSTockInfoDetails")]
+        [Navigate(NavigateType.OneToMany, nameof(DtStockInfoDetail_Hty.StockId))]
+        public List<DtStockInfoDetail_Hty>? StockInfoDetails { get; set; }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3