终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

118 行
7.1 KiB

  1. using BPASmartClient.Helper;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using Microsoft.Toolkit.Mvvm.Input;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPASmartClient.MorkF.ViewModel
  10. {
  11. internal class DebugViewModel : ObservableObject
  12. {
  13. public RelayCommand PlcInite { get; set; }
  14. public RelayCommand SimulateOrder { get; set; }
  15. public RelayCommand MaterialOne { get; set; }
  16. public RelayCommand MaterialTwo { get; set; }
  17. public RelayCommand MaterialThree { get; set; }
  18. public RelayCommand MaterialFour { get; set; }
  19. public RelayCommand MaterialFive { get; set; }
  20. public RelayCommand OpenExhaust { get;set; }
  21. public RelayCommand CloaseExhaust { get; set; }
  22. public RelayCommand StartQXOne { get; set; }
  23. public RelayCommand StartQXTwo { get; set; }
  24. public RelayCommand ShreddCabbage { get; set; }
  25. public RelayCommand FryPork { get; set; }
  26. public RelayCommand XingBaoGu { get; set; }
  27. public RelayCommand TakePot { get; set; }
  28. public RelayCommand TakePotReset { get; set; }
  29. public RelayCommand TakeMaterial { get; set; }
  30. public RelayCommand OutMeal { get; set; }
  31. public RelayCommand AddOil { get; set; }
  32. public RelayCommand TempTurnOff { get; set; }
  33. public RelayCommand OneBlock { get; set; }
  34. public RelayCommand TwoBlock { get; set; }
  35. public RelayCommand ThreeBlock { get; set; }
  36. public RelayCommand OverTurnOff { get; set; }
  37. public RelayCommand OverOneBlock { get; set; }
  38. public RelayCommand OverTwoBlock { get; set; }
  39. public RelayCommand OverThreeBlock { get; set; }
  40. public RelayCommand OverGoOn { get; set; }
  41. public RelayCommand OverGoDown { get; set; }
  42. public RelayCommand AutoModel { get; set; }
  43. public RelayCommand ManualModel { get; set; }
  44. public RelayCommand SecAddOil { get; set; }
  45. public RelayCommand SecTempTurnOff { get; set; }
  46. public RelayCommand SecOneBlock { get; set; }
  47. public RelayCommand SecTwoBlock { get; set; }
  48. public RelayCommand SecThreeBlock { get; set; }
  49. public RelayCommand SecOverTurnOff { get; set; }
  50. public RelayCommand SecOverOneBlock { get; set; }
  51. public RelayCommand SecOverTwoBlock { get; set; }
  52. public RelayCommand SecOverThreeBlock { get; set; }
  53. public RelayCommand SecOverGoOn { get; set; }
  54. public RelayCommand SecOverGoDown { get; set; }
  55. public RelayCommand SecAutoModel { get; set; }
  56. public RelayCommand SecManualModel { get; set; }
  57. public DebugViewModel()
  58. {
  59. PlcInite = new RelayCommand(() => { ActionManage.GetInstance.Send("InitCommand"); });
  60. SimulateOrder = new RelayCommand(() => { ActionManage.GetInstance.Send("SimultaorOrder"); });
  61. MaterialOne= new RelayCommand(() => { ActionManage.GetInstance.Send("MaterialOne"); });
  62. MaterialTwo = new RelayCommand(() => { ActionManage.GetInstance.Send("MaterialTwo"); });
  63. MaterialThree = new RelayCommand(() => { ActionManage.GetInstance.Send("MaterialThree"); });
  64. MaterialFour = new RelayCommand(() => { ActionManage.GetInstance.Send("MaterialFour"); });
  65. MaterialFive = new RelayCommand(() => { ActionManage.GetInstance.Send("MaterialFive"); });
  66. OpenExhaust = new RelayCommand(() => { ActionManage.GetInstance.Send("OpenExhaust"); });
  67. CloaseExhaust = new RelayCommand(() => { ActionManage.GetInstance.Send("CloseExhaust"); });
  68. StartQXOne=new RelayCommand(() => { ActionManage.GetInstance.Send("StartQXOne",1); });
  69. StartQXTwo = new RelayCommand(() => { ActionManage.GetInstance.Send("StartQXTwo",2); });
  70. ShreddCabbage = new RelayCommand(() => { ActionManage.GetInstance.Send("ShreddCabbage"); });
  71. FryPork = new RelayCommand(() => { ActionManage.GetInstance.Send("FryPork"); });
  72. XingBaoGu = new RelayCommand(() => { ActionManage.GetInstance.Send("XingBaoGu"); });
  73. TakePot = new RelayCommand(() => { ActionManage.GetInstance.Send("TakePot"); });
  74. TakePotReset = new RelayCommand(() => { ActionManage.GetInstance.Send("TakePotReset"); });
  75. TakeMaterial= new RelayCommand(() => { ActionManage.GetInstance.Send("TakeMaterial"); });
  76. OutMeal = new RelayCommand(() => { ActionManage.GetInstance.Send("OutMeal"); });
  77. AddOil = new RelayCommand(() => { ActionManage.GetInstance.Send("AddOil", 1); });
  78. TempTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("TakeOff", 1); });
  79. OneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OneBlock",1); });
  80. TwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("TwoBlock",1); });
  81. ThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("ThreeBlock",1); });
  82. OverTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTurnOff",1); });
  83. OverOneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverOneBlock",1); });
  84. OverTwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTwoBlock",1); });
  85. OverThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverThreeBlock",1); });
  86. OverGoOn = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoOn",1); });
  87. OverGoDown = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoDown",1); });
  88. AutoModel = new RelayCommand(()=>{ActionManage.GetInstance.Send("AutoModel",1); });
  89. ManualModel = new RelayCommand(() => { ActionManage.GetInstance.Send("ManualModel",1); });
  90. SecAddOil = new RelayCommand(() => { ActionManage.GetInstance.Send("AddOil", 2); });
  91. SecTempTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("TakeOff", 2); });
  92. SecOneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OneBlock", 2); });
  93. SecTwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("TwoBlock", 2); });
  94. SecThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("ThreeBlock", 2); });
  95. SecOverTurnOff = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTurnOff", 2); });
  96. SecOverOneBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverOneBlock", 2); });
  97. SecOverTwoBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverTwoBlock", 2); });
  98. SecOverThreeBlock = new RelayCommand(() => { ActionManage.GetInstance.Send("OverThreeBlock", 2); });
  99. SecOverGoOn = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoOn", 2); });
  100. SecOverGoDown = new RelayCommand(() => { ActionManage.GetInstance.Send("OverGoDown", 2); });
  101. SecAutoModel = new RelayCommand(() => { ActionManage.GetInstance.Send("AutoModel", 2); });
  102. SecManualModel = new RelayCommand(() => { ActionManage.GetInstance.Send("ManualModel", 2); });
  103. }
  104. }
  105. }