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