using BPASmartClient.Helper; using FryPot_DosingSystem.Control; using Microsoft.Toolkit.Mvvm.ComponentModel; using Microsoft.Toolkit.Mvvm.Input; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FryPot_DosingSystem.ViewModel { internal class DebugViewModel : ObservableObject { public ObservableCollection LineOneRollerCode { get; set; } = new ObservableCollection() { 101,102,103,104,105,106,107,108,401,402,403,404,405,406,407,408}; public ObservableCollection LineTwoRollerCode { get; set; } = new ObservableCollection() {201,202,203,204,205,206,207,208,501,502,503,504,505,506,507,508 }; public ObservableCollection LineThreeRollerCode { get; set; } = new ObservableCollection() { 301,302,303,304,305,306,307,308}; //滚筒线1绑定命令 public RelayCommand RollerLineRunning { get; set; } public RelayCommand EightWorkLoc { get; set; } public RelayCommand FryPotInputArrive { get; set; } public RelayCommand FryPotEmptyRollerArrive { get; set; } public RelayCommand AGVLOneArrive { get; set; } public RelayCommand AGVFryPotDownArrive { get; set; } public RelayCommand AGVFryPotUpArrive { get; set; } public RelayCommand AGVFryPotGetEmptyRoller { get; set; } //滚筒线2绑定命令 public RelayCommand RollerLineTwoRunning { get; set; } //public RelayCommand EightWorkLoc { get; set; } public RelayCommand FryPotTwoInputArrive { get; set; } public RelayCommand FryPotTwoEmptyRollerArrive { get; set; } public RelayCommand AGVLTwoArrive { get; set; } public RelayCommand AGVFryPotTwoDownArrive { get; set; } public RelayCommand AGVFryPotTwoUpArrive { get; set; } public RelayCommand AGVFryPotTwoGetEmptyRoller { get; set; } //滚筒线3绑定命令 public RelayCommand RollerLineThreeRunning { get; set; } //public RelayCommand EightWorkLoc { get; set; } public RelayCommand FryPotThreeInputArrive { get; set; } public RelayCommand FryPotThreeEmptyRollerArrive { get; set; } public RelayCommand AGVLThreeArrive { get; set; } public RelayCommand AGVFryPotThreeDownArrive { get; set; } public RelayCommand AGVFryPotThreeUpArrive { get; set; } public RelayCommand AGVFryPotThreeGetEmptyRoller { get; set; } public DebugViewModel() { RollerLineRunning = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("RollerLineRunning"); })); FryPotInputArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotInputArrive"); })); FryPotEmptyRollerArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotEmptyRollerArrive"); })); AGVLOneArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVLOneArrive"); })); AGVFryPotDownArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotDownArrive"); })); AGVFryPotUpArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotUpArrive"); })); AGVFryPotGetEmptyRoller = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotGetEmptyRoller"); })); //滚筒线2 RollerLineTwoRunning = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("RollerLineTwoRunning"); })); FryPotTwoInputArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotTwoInputArrive"); })); FryPotTwoEmptyRollerArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotTwoEmptyRollerArrive"); })); AGVLTwoArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVLTwoArrive"); })); AGVFryPotTwoDownArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotTwoDownArrive"); })); AGVFryPotTwoUpArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotTwoUpArrive"); })); AGVFryPotTwoGetEmptyRoller = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotTwoGetEmptyRoller"); })); //滚筒线3 RollerLineThreeRunning = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("RollerLineThreeRunning"); })); FryPotThreeInputArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotThreeInputArrive"); })); FryPotThreeEmptyRollerArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("FryPotThreeEmptyRollerArrive"); })); AGVLThreeArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVLThreeArrive"); })); AGVFryPotThreeDownArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotThreeDownArrive"); })); AGVFryPotThreeUpArrive = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotThreeUpArrive"); })); AGVFryPotThreeGetEmptyRoller = new RelayCommand(new Action(() => { ActionManage.GetInstance.Send("AGVFryPotThreeGetEmptyRoller"); })); } } }