From 5c63bd34c672e2b5b1097c9c6cf134bbd9932fd2 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 12 Jan 2024 17:47:31 +0800 Subject: [PATCH] =?UTF-8?q?change-=E6=8B=86=E5=88=86=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=BF=AB=E6=8D=B7=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aucma.Core.BoxFoam/ViewModels/SplitPlanViewModel.cs | 9 ++++++--- Aucma.Core.BoxFoam/Views/UserPage/SelectType.xaml | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Aucma.Core.BoxFoam/ViewModels/SplitPlanViewModel.cs b/Aucma.Core.BoxFoam/ViewModels/SplitPlanViewModel.cs index 12bb2588..9fbe1283 100644 --- a/Aucma.Core.BoxFoam/ViewModels/SplitPlanViewModel.cs +++ b/Aucma.Core.BoxFoam/ViewModels/SplitPlanViewModel.cs @@ -17,6 +17,7 @@ using Admin.Core.Common; using Aucma.Core.BoxFoam.Common; using Aucma.Core.BoxFoam.Models; using Aucma.Core.BoxFoam.Views; +using Admin.Core.Service; namespace Aucma.Core.BoxFoam.ViewModels { @@ -350,8 +351,10 @@ namespace Aucma.Core.BoxFoam.ViewModels [RelayCommand] public async Task RadioButton(string selectedOption) { - string productLineCode = Appsettings.app("StoreInfo", "ProductLineCode"); - List planInfos = await _productPlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals(productLineCode) && d.MaterialName.Contains(selectedOption)); + + + MaterialDataGrid.Clear(); + List planInfos = await _productPlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals("1005") && d.MaterialName.Contains(selectedOption)); if (planInfos != null) { if (planInfos.Count > 0) @@ -359,7 +362,7 @@ namespace Aucma.Core.BoxFoam.ViewModels MaterialDataGrid.Clear(); int i = 1; - var execList = await _executePlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals(productLineCode)); + var execList = await _executePlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals("1005")); foreach (var item in planInfos) { int residue = 0; diff --git a/Aucma.Core.BoxFoam/Views/UserPage/SelectType.xaml b/Aucma.Core.BoxFoam/Views/UserPage/SelectType.xaml index c129607d..1fadae48 100644 --- a/Aucma.Core.BoxFoam/Views/UserPage/SelectType.xaml +++ b/Aucma.Core.BoxFoam/Views/UserPage/SelectType.xaml @@ -113,8 +113,8 @@ - - + +