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 @@ - - + +