From 58759d4a55197d4a0b78f74cd631bfb35ba9eafb Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 20 四月 2026 23:50:44 +0800
Subject: [PATCH] feat(StockInfo): 新增MesUploadStatus字段记录MES上传状态

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Stock/Dt_StockInfo.cs |   32 +++++++++++++++++++++++++++++---
 1 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Stock/Dt_StockInfo.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Stock/Dt_StockInfo.cs
index 85fea92..ecf32e4 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Stock/Dt_StockInfo.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Stock/Dt_StockInfo.cs
@@ -1,4 +1,5 @@
-锘縰sing SqlSugar;
+锘縰sing Magicodes.ExporterAndImporter.Core;
+using SqlSugar;
 using System;
 using System.Collections.Generic;
 using System.Linq;
@@ -35,6 +36,12 @@
         /// <summary>
         /// 璐т綅缂栧彿
         /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "璐т綅ID")]
+        public int LocationId { get; set; }
+
+        /// <summary>
+        /// 璐т綅缂栧彿
+        /// </summary>
         [SugarColumn(IsNullable = true, Length = 30, ColumnDescription = "璐т綅缂栧彿")]
         public string LocationCode { get; set; }
 
@@ -57,9 +64,28 @@
         public string Remark { get; set; }
 
         /// <summary>
-        /// 搴撳瓨鏄庣粏
+        /// MES涓婁紶鐘舵�侊細0=鏈笂浼狅紝1=缁勭洏鎴愬姛锛�2=缁勭洏澶辫触锛�3=鎷嗙洏鎴愬姛锛�4=鎷嗙洏澶辫触锛�5=杩涚珯鎴愬姛锛�6=杩涚珯澶辫触锛�7=鍑虹珯鎴愬姛锛�8=鍑虹珯澶辫触锛�9=NG涓婃姤鎴愬姛锛�10=NG涓婃姤澶辫触
         /// </summary>
-        [Navigate(NavigateType.OneToMany, nameof(Dt_StockInfoDetail.StockId), nameof(Id))]
+        [SugarColumn(IsNullable = false, ColumnDescription = "MES涓婁紶鐘舵��")]
+        public int MesUploadStatus { get; set; } = 0;
+
+        /// <summary>
+        /// 鍑哄簱鏃ユ湡
+        /// </summary>
+        [SugarColumn(IsNullable = true, ColumnDescription = "鍑哄簱鏃ユ湡")]
+        public DateTime OutboundDate { get; set; }
+
+       /// <summary>
+       /// 搴撳瓨鏄庣粏
+       /// </summary>
+       [Navigate(NavigateType.OneToMany, nameof(Dt_StockInfoDetail.StockId), nameof(Id))]
         public List<Dt_StockInfoDetail> Details { get; set; }
+
+        /// <summary>
+        /// 璐т綅鏄庣粏
+        /// </summary>
+        [SugarColumn(ColumnName = "LocationDetails")]
+        [Navigate(NavigateType.OneToOne, nameof(LocationId), nameof(Dt_LocationInfo.Id))]
+        public Dt_LocationInfo LocationDetails { get; set; }
     }
 }

--
Gitblit v1.9.3