change - 入库Query修改

collectionStore
wenjy 11 months ago
parent abc2a36d10
commit fa9c36e797

Binary file not shown.

@ -243,13 +243,15 @@ 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
{
if(info.Count > 0)
{
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)(() =>
{
foreach (var item in info)
@ -261,6 +263,7 @@ namespace Aucma.Scada.UI.viewModel.InStoreInfo
InstoreTask = taskItems;
}));
}
}
catch (Exception ex)
{
logHelper.Error("入库任务列表刷新异常", ex);

Loading…
Cancel
Save