diff --git a/.vs/HighWayIot/FileContentIndex/17c4cbf0-405e-47cd-9c6d-7c09f592e00f.vsidx b/.vs/HighWayIot/FileContentIndex/17c4cbf0-405e-47cd-9c6d-7c09f592e00f.vsidx new file mode 100644 index 0000000..16bc7e4 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/17c4cbf0-405e-47cd-9c6d-7c09f592e00f.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/3a7d4d14-6f80-4bf9-888d-4da9e3812652.vsidx b/.vs/HighWayIot/FileContentIndex/3a7d4d14-6f80-4bf9-888d-4da9e3812652.vsidx new file mode 100644 index 0000000..be9add9 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/3a7d4d14-6f80-4bf9-888d-4da9e3812652.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/487d5983-1b1e-48e6-9d56-ec079e1c717b.vsidx b/.vs/HighWayIot/FileContentIndex/487d5983-1b1e-48e6-9d56-ec079e1c717b.vsidx new file mode 100644 index 0000000..332fe2d Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/487d5983-1b1e-48e6-9d56-ec079e1c717b.vsidx differ diff --git a/.vs/HighWayIot/FileContentIndex/8fc155b2-466d-417e-aee1-d1b34c03ea6d.vsidx b/.vs/HighWayIot/FileContentIndex/8fc155b2-466d-417e-aee1-d1b34c03ea6d.vsidx new file mode 100644 index 0000000..0220601 Binary files /dev/null and b/.vs/HighWayIot/FileContentIndex/8fc155b2-466d-417e-aee1-d1b34c03ea6d.vsidx differ diff --git a/.vs/HighWayIot/v17/.suo b/.vs/HighWayIot/v17/.suo index 6257794..2943e14 100644 Binary files a/.vs/HighWayIot/v17/.suo and b/.vs/HighWayIot/v17/.suo differ diff --git a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache index 9416371..2faa3f9 100644 Binary files a/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache and b/Aucma.Scada.UI/obj/Debug/Aucma.Scada.UI.csproj.AssemblyReference.cache differ diff --git a/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs b/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs index 134e003..f9f56c9 100644 --- a/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs +++ b/Aucma.Scada.UI/viewModel/InStoreInfo/InStoreInfoViewModel.cs @@ -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(); //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); - } + foreach (var item in info) + { + item.materialType = inStoreBusiness.GetMaterialName(item.materialType); + taskItems.Add(item); + } - InstoreTask = taskItems; - })); + InstoreTask = taskItems; + })); + } } catch (Exception ex) { diff --git a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache index 075f430..ea6828b 100644 Binary files a/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache and b/HighWayIot.Repository/obj/Debug/HighWayIot.Repository.csproj.AssemblyReference.cache differ diff --git a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache index 715b851..596fa0f 100644 Binary files a/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache and b/HighWayIot/obj/Debug/HighWayIot.csproj.AssemblyReference.cache differ