From 82d0bd6b95e11fd2e6ede97561b9cb85cb26fe89 Mon Sep 17 00:00:00 2001 From: Tyrone CT Date: Wed, 14 Jan 2026 21:00:14 +0800 Subject: [PATCH] =?UTF-8?q?Excel=20=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FileModel/OEMInventoryTransaction.cs | 12 +- FATrace.WPLApp/Services/ReadFileServices.cs | 8 +- FATrace.WPLApp/Views/FactoryInboundView.xaml | 2 +- .../FactoryInventoryTransactionView.xaml | 171 ++++++++++++---- .../Views/FactoryMaterialWithdrawalView.xaml | 166 ++++++++++++---- FATrace.WPLApp/Views/FactoryOutboundView.xaml | 187 ++++++++++++++---- FATrace.WPLApp/Views/OEMInboundView.xaml | 2 +- .../Views/OEMInventoryTransactionView.xaml | 171 ++++++++++++---- FATrace.WPLApp/Views/OEMOutboundView.xaml | 187 ++++++++++++++---- FATrace.WPLApp/Views/OEMRawUsageInfoView.xaml | 164 +++++++++++---- 10 files changed, 814 insertions(+), 256 deletions(-) diff --git a/FATrace.Model/FileModel/OEMInventoryTransaction.cs b/FATrace.Model/FileModel/OEMInventoryTransaction.cs index 04d5df6..ab1481e 100644 --- a/FATrace.Model/FileModel/OEMInventoryTransaction.cs +++ b/FATrace.Model/FileModel/OEMInventoryTransaction.cs @@ -40,18 +40,18 @@ namespace FATrace.Model public string? RawName { get; set; } /// - /// 入库总重量 KG + /// 入库总箱数 /// - public string? TotalInWeightKg { get; set; } + public string? TotalInCase { get; set; } /// - /// 出库总重量 KG + /// 出库总箱数 /// - public string? TotalOutWeightKg { get; set; } + public string? TotalOutCase { get; set; } /// - /// 剩余重量 KG + /// 剩余箱数 /// - public string? RemainWeightKg { get; set; } + public string? RemainCase { get; set; } } } diff --git a/FATrace.WPLApp/Services/ReadFileServices.cs b/FATrace.WPLApp/Services/ReadFileServices.cs index 74ebfa3..f98e4c4 100644 --- a/FATrace.WPLApp/Services/ReadFileServices.cs +++ b/FATrace.WPLApp/Services/ReadFileServices.cs @@ -592,13 +592,13 @@ namespace FATrace.WPLApp.Services Origin = GetCellString(row, 2, formatter), RawCode = GetCellString(row, 3, formatter), RawName = GetCellString(row, 4, formatter), - TotalInWeightKg = GetCellString(row, 5, formatter), - TotalOutWeightKg = GetCellString(row, 6, formatter), - RemainWeightKg = GetCellString(row, 7, formatter) + TotalInCase = GetCellString(row, 5, formatter), + TotalOutCase = GetCellString(row, 6, formatter), + RemainCase = GetCellString(row, 7, formatter) }; if (IsAllEmpty(entity.InTime, entity.OutTime, entity.Origin, entity.RawCode, entity.RawName, - entity.TotalInWeightKg, entity.TotalOutWeightKg, entity.RemainWeightKg)) + entity.TotalInCase, entity.TotalOutCase, entity.RemainCase)) continue; list.Add(entity); diff --git a/FATrace.WPLApp/Views/FactoryInboundView.xaml b/FATrace.WPLApp/Views/FactoryInboundView.xaml index bba6df9..c821f54 100644 --- a/FATrace.WPLApp/Views/FactoryInboundView.xaml +++ b/FATrace.WPLApp/Views/FactoryInboundView.xaml @@ -162,7 +162,7 @@ + Header="重量(KG)" /> + mc:Ignorable="d"> @@ -26,8 +27,14 @@ FontWeight="SemiBold" Text="工厂-出入库" /> - - + + @@ -41,41 +48,80 @@ - - + + - + - + - - + + - + - - - - @@ -83,14 +129,16 @@ - - + + - - - - - - - - + + + + + + + + - + @@ -140,16 +212,32 @@ - - @@ -83,14 +129,16 @@ - - + + - - - - - - - + + + + + + + - + @@ -139,16 +208,32 @@ - - @@ -87,14 +137,16 @@ - - + + - - - - - - - - - - + + + + + + + + + + - + @@ -146,16 +228,32 @@ - - @@ -83,14 +129,16 @@ - - + + - - - - - - - - + + + + + + + + - + @@ -140,16 +212,32 @@ - - @@ -87,14 +137,16 @@ - - + + - - - - - - - - - - + + + + + + + + + + - + @@ -146,16 +228,32 @@ - - @@ -87,14 +137,16 @@ - - + + - - - - - - + + + + + + - + @@ -142,16 +209,32 @@ -