change - 出库任务加载

collectionStore
wenjy 11 months ago
parent d2607b430e
commit 7c81d36b6f

Binary file not shown.

@ -202,6 +202,7 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
{ {
App.Current.Dispatcher.Invoke((Action)(() => App.Current.Dispatcher.Invoke((Action)(() =>
{ {
taskInfo.materialType = outStoreBusiness.GetMaterialName(taskInfo.materialType);
taskItems.Add(taskInfo); taskItems.Add(taskInfo);
OutstoreTask = taskItems; OutstoreTask = taskItems;
})); }));
@ -267,6 +268,7 @@ namespace Aucma.Scada.UI.viewModel.OutStoreInfo
taskItems = new ObservableCollection<RealTaskInfo>(); taskItems = new ObservableCollection<RealTaskInfo>();
foreach (var item in info) foreach (var item in info)
{ {
item.materialType = outStoreBusiness.GetMaterialName(item.materialType);
taskItems.Add(item); taskItems.Add(item);
} }
OutstoreTask = taskItems.OrderBy(x => x.createTime); OutstoreTask = taskItems.OrderBy(x => x.createTime);

Loading…
Cancel
Save