终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

StockControViewModel.cs 1.4 KiB

1234567891011121314151617181920212223242526272829303132333435
  1. using BPA.Helper;
  2. using System.Collections.ObjectModel;
  3. namespace BPASmartClient.DosingSystem.ViewModel
  4. {
  5. public class StockControViewModel : NotifyBase
  6. {
  7. public StockControViewModel()
  8. {
  9. //Task.Factory.StartNew(() =>
  10. //{
  11. // App.Current.Dispatcher.Invoke(() =>
  12. // {
  13. // for (int i = 0; i < 6; i++)
  14. // {
  15. // statusTop.Add(new StockStatusModel { IsFault = false, IsLayOff = true, IsRunning = true, MaterialName = $"{i + 1}号料仓", MaterialWeight = 85 + i });
  16. // }
  17. // for (int i = 6; i < 12; i++)
  18. // {
  19. // statusDown.Add(new StockStatusModel { IsFault = false, IsLayOff = true, IsRunning = true, MaterialName = $"{i + 1}号料仓", MaterialWeight = 85 + i });
  20. // }
  21. // });
  22. //});
  23. statusTop = DeviceInquire.GetInstance.TopDeviceCurrentStatuses;
  24. statusDown = DeviceInquire.GetInstance.BottomDeviceCurrentStatuses;
  25. }
  26. public bool ConveyerBeltWork { get { return _mConveyerBeltWork; } set { _mConveyerBeltWork = value; OnPropertyChanged(); } }
  27. private bool _mConveyerBeltWork;
  28. public ObservableCollection<DeviceCurrentStatus> statusTop { get; set; }
  29. public ObservableCollection<DeviceCurrentStatus> statusDown { get; set; }
  30. }
  31. }