change-拆分计划设置快捷搜索

dev
liuwf 1 year ago
parent 22ddeb365d
commit 5c63bd34c6

@ -17,6 +17,7 @@ using Admin.Core.Common;
using Aucma.Core.BoxFoam.Common; using Aucma.Core.BoxFoam.Common;
using Aucma.Core.BoxFoam.Models; using Aucma.Core.BoxFoam.Models;
using Aucma.Core.BoxFoam.Views; using Aucma.Core.BoxFoam.Views;
using Admin.Core.Service;
namespace Aucma.Core.BoxFoam.ViewModels namespace Aucma.Core.BoxFoam.ViewModels
{ {
@ -350,8 +351,10 @@ namespace Aucma.Core.BoxFoam.ViewModels
[RelayCommand] [RelayCommand]
public async Task RadioButton(string selectedOption) public async Task RadioButton(string selectedOption)
{ {
string productLineCode = Appsettings.app("StoreInfo", "ProductLineCode");
List<ProductPlanInfo> planInfos = await _productPlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals(productLineCode) && d.MaterialName.Contains(selectedOption));
MaterialDataGrid.Clear();
List<ProductPlanInfo> planInfos = await _productPlanInfoServices.QueryAsync(d => d.ProductLineCode.Equals("1005") && d.MaterialName.Contains(selectedOption));
if (planInfos != null) if (planInfos != null)
{ {
if (planInfos.Count > 0) if (planInfos.Count > 0)
@ -359,7 +362,7 @@ namespace Aucma.Core.BoxFoam.ViewModels
MaterialDataGrid.Clear(); MaterialDataGrid.Clear();
int i = 1; 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) foreach (var item in planInfos)
{ {
int residue = 0; int residue = 0;

@ -113,8 +113,8 @@
<StackPanel Grid.Column="0" VerticalAlignment="Center" Margin="10 0 0 0"> <StackPanel Grid.Column="0" VerticalAlignment="Center" Margin="10 0 0 0">
<TextBlock Text="快捷查询" VerticalAlignment="Center" Foreground="#FFFFFF" FontSize="18" /> <TextBlock Text="快捷查询" VerticalAlignment="Center" Foreground="#FFFFFF" FontSize="18" />
</StackPanel> </StackPanel>
<WrapPanel Grid.Column="1" VerticalAlignment="Center" Margin="0 5"> <WrapPanel Grid.Column="1" VerticalAlignment="Center" Margin="0 5" >
<ItemsControl ItemsSource="{Binding Configurations}"> <ItemsControl ItemsSource="{Binding Configurations}" Foreground="#FFFFFF">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" /> <WrapPanel Orientation="Horizontal" />

Loading…
Cancel
Save