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; 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>(); taskItems = new ObservableCollection<RealTaskInfo>();
//info.ForEach(x => RefreshInStoreTask(x)); //info.ForEach(x => RefreshInStoreTask(x));
try try
{ {
if(info.Count > 0)
App.Current.Dispatcher.BeginInvoke((Action)(() =>
{ {
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); foreach (var item in info)
taskItems.Add(item); {
} item.materialType = inStoreBusiness.GetMaterialName(item.materialType);
taskItems.Add(item);
InstoreTask = taskItems; }
}));
InstoreTask = taskItems;
}));
}
} }
catch (Exception ex) catch (Exception ex)
{ {

Loading…
Cancel
Save