From 95c92db3c831c73b05068b09221c13ad4a250322 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期一, 02 二月 2026 20:07:00 +0800
Subject: [PATCH] 条码扫描成功音频播放功能,代码优化

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielCodeInfo.cs |  111 +++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 87 insertions(+), 24 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielCodeInfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielCodeInfo.cs"
index 37610d3..060b17f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielCodeInfo.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielCodeInfo.cs"
@@ -12,8 +12,8 @@
     /// <summary>
     /// 鐗╂枡鐮佷俊鎭�
     /// </summary>
-    [SugarTable(nameof(Dt_MaterielCodeInfo), "鐗╂枡鐮佷俊鎭�")]
-    public class Dt_MaterielCodeInfo : BaseEntity
+    [SugarTable(nameof(Dt_MaterialCodeInfo), "鐗╂枡鐮佷俊鎭�")]
+    public class Dt_MaterialCodeInfo : BaseEntity
     {
         /// <summary>
         /// 涓婚敭
@@ -25,46 +25,109 @@
         /// 鐗╂枡缂栧彿
         /// </summary>
         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鐗╂枡缂栧彿")]
-        public string MaterielCode { get; set; }
+        public string MaterialCode { get; set; }
 
         /// <summary>
-        /// 浠撳簱涓婚敭
+        /// 鐗╂枡鍚嶇О
         /// </summary>
-        [SugarColumn(IsNullable = false, ColumnDescription = "浠撳簱缂栧彿")]
-        public int WarehouseId { get; set; }
+        [SugarColumn(IsNullable = true, Length = 255, ColumnDescription = "鐗╂枡鍚嶇О")]
+        public string? MaterialName { get; set; }
 
         /// <summary>
-        /// 鎵规鍙�
+        /// 渚涘簲鍟嗙紪鍙�
         /// </summary>
-        [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "鎵规鍙�")]
-        public string LotNo { get; set; }
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "渚涘簲鍟嗙紪鍙�")]
+        public string? SuplierCode { get; set; }
 
         /// <summary>
-        /// 鐢熶骇鏃ユ湡
+        /// 
         /// </summary>
-        [ImporterHeader(Name = "鐢熶骇鏃ユ湡")]
-        [ExporterHeader(DisplayName = "鐢熶骇鏃ユ湡")]
-        [SugarColumn(IsNullable = false, IsOnlyIgnoreUpdate = true, ColumnDescription = "鐢熶骇鏃ユ湡")]
-        public DateTime ProductionDate {  get; set; }
+        [SugarColumn(IsNullable = true)]
+        public int? OrderId { get; set; }
 
         /// <summary>
-        /// 鏈夋晥鏈�
+        /// 
         /// </summary>
-        [ImporterHeader(Name = "鏈夋晥鏈�")]
-        [ExporterHeader(DisplayName = "鏈夋晥鏈�")]
-        [SugarColumn(IsNullable = false, IsOnlyIgnoreUpdate = true, ColumnDescription = "鏈夋晥鏈�")]
-        public DateTime EffectiveDate { get; set; }
+        [SugarColumn(IsNullable = true, Length = 50)]
+        public string? OrderNo { get; set; }
 
         /// <summary>
         /// 閲囪喘鍗曞彿
         /// </summary>
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "閲囪喘鍗曞彿")]
-        public string PurchaseOrderNo { get; set; }
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "閲囪喘鍗曞彿")]
+        public string? PruchaseOrderNo { get; set; }
 
         /// <summary>
-        /// 鏁伴噺
+        /// 鐗╂枡瑙勬牸
         /// </summary>
-        [SugarColumn(IsNullable = false, ColumnDescription = "鏁伴噺")]
-        public float Quantity { get; set; }
+        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "鐗╂枡瑙勬牸")]
+        public string? MaterialSpec { get; set; }
+
+        /// <summary>
+        /// 鎵规
+        /// </summary>
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鎵规")]
+        public string? BatchNo { get; set; }
+
+        /// <summary>
+        /// 鍘傚尯
+        /// </summary>
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鍘傚尯")]
+        public string? FactoryArea { get; set; }
+
+        /// <summary>
+        /// 
+        /// </summary>
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鍘傚尯")]
+        public string? WarehouseCode { get; set; }
+
+        /// <summary>
+        /// 鏃ユ湡
+        /// </summary>
+        [SugarColumn(IsNullable = false, ColumnDescription = "鐗╂枡缂栧彿")]
+        public string Date { get; set; }
+
+        /// <summary>
+        /// 鏂版潯鐮�
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鏂版潯鐮�")]
+        public string NewBarcode { get; set; }
+
+        /// <summary>
+        /// 鍘熸潯鐮�
+        /// </summary>
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鍘熸潯鐮�")]
+        public string OldBarcode { get; set; }
+
+        /// <summary>
+        /// 鍘熸暟閲�
+        /// </summary>
+        [SugarColumn(IsNullable = false, ColumnDescription = "鍘熸暟閲�")]
+        public decimal OriginalQuantity { get; set; }
+
+        /// <summary>
+        /// 鏂版暟閲�
+        /// </summary>
+        [SugarColumn(IsNullable = false, ColumnDescription = "鏂版暟閲�")]
+        public decimal AfterQuantity { get; set; }
+
+        /// <summary>
+        /// 鍗曚綅
+        /// </summary>
+
+        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鍗曚綅")]
+        public string Unit { get; set; }
+
+        /// <summary>
+        /// 
+        /// </summary>
+        [SugarColumn(IsNullable = false)]
+        public int ReturnStatus { get; set; }
+
+        /// <summary>
+        /// 澶囨敞
+        /// </summary>
+        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "澶囨敞")]
+        public string? Remark { get; set; }
     }
 }

--
Gitblit v1.9.3