change - 入库Query修改

collectionStore
wenjy 11 months ago
parent abc2a36d10
commit fa9c36e797

Binary file not shown.

@ -243,23 +243,26 @@ namespace Aucma.Scada.UI.viewModel.InStoreInfo
{
materialTypeCombox = string.Empty;
}
info = info.Where(x => !string.IsNullOrEmpty(search) ? x.materialCode == search : 1 == 1 && !string.IsNullOrEmpty(materialTypeCombox) ? x.storeCode == materialTypeCombox : 1 == 1).ToList();
taskItems = new ObservableCollection<RealTaskInfo>();
//info.ForEach(x => RefreshInStoreTask(x));
try
{
App.Current.Dispatcher.BeginInvoke((Action)(() =>
if(info.Count > 0)
{
foreach (var item in info)
info = info.Where(x => !string.IsNullOrEmpty(search) ? x.materialCode == search : 1 == 1 && !string.IsNullOrEmpty(materialTypeCombox) ? x.storeCode == materialTypeCombox : 1 == 1).ToList();
App.Current.Dispatcher.BeginInvoke((Action)(() =>
{
item.materialType = inStoreBusiness.GetMaterialName(item.materialType);
taskItems.Add(item);
}
InstoreTask = taskItems;
}));
foreach (var item in info)
{
item.materialType = inStoreBusiness.GetMaterialName(item.materialType);
taskItems.Add(item);
}
InstoreTask = taskItems;
}));
}
}
catch (Exception ex)
{

Loading…
Cancel
Save