change - 出库任务加载

foamRearStore
wenjy 1 year ago
parent bf5dfe5c10
commit f77625e643

Binary file not shown.

@ -103,7 +103,7 @@ namespace Aucma.Scada.Business
//Task.Run(() =>
//{
// Thread.Sleep(6000);
// for (int i = 1; i < 3; i++)
// for (int i = 1; i < 12; i++)
// {
// InStore("F2340600122510190" + i.ToString().PadLeft(2, '0'));
// Thread.Sleep(1000);

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

Loading…
Cancel
Save