|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using System.Collections.ObjectModel;
- using BPASmartClient.JXJFoodSmallStation.Model;
- using BPASmartClient.Helper;
- using Microsoft.Toolkit.Mvvm.Input;
- using BPASmartClient.CustomResource.UserControls.MessageShow;
- using BPASmartClient.CustomResource.UserControls;
- using System.Diagnostics;
- using BPASmartClient.JXJFoodSmallStation.Model.Siemens;
- using BPASmartClient.JXJFoodSmallStation.Model.HK_PLC;
- using System.Threading;
-
- namespace BPASmartClient.JXJFoodSmallStation.ViewModel
- {
- public class ManualFlowViewModel:ObservableObject
- {
- public ManualFlowViewModel()
- {
- Test1Command = new RelayCommand(() =>
- {
- GVL_SmallStation.AGV_PutTray1Finish = true;
- });
- Test2Command = new RelayCommand(() =>
- {
- GVL_SmallStation.WindSendDosingComple = true;
- });
- Test3Command = new RelayCommand(() =>
- {
- GVL_SmallStation.AGV_GetTray1Finish = true;
- });
- Test4Command = new RelayCommand(() =>
- {
- GVL_SmallStation.CylinderReset = true;
- });
- Test5Command = new RelayCommand(() =>
- {
- GVL_SmallStation.WindSendAllowAGVPutGet = true;
- });
- CLearRecipeInfo = new RelayCommand(() =>
- {
- ActionManage.GetInstance.Send("CLearRecipeInfo");
- });
- SystemReset = new RelayCommand(() =>
- {
- ActionManage.GetInstance.Send("ManualSystemReset");
- });
- ThreadManage.GetInstance().StartLong(new Action(() =>
- {
- Heartbeat = GVL_SmallStation.GetInstance.HeartBeatFromPlc;
- Thread.Sleep(100);
- }), "流程手动设备状态读取",true);
- }
- public RelayCommand Test1Command { get; set; }
- public RelayCommand Test2Command { get; set; }
- public RelayCommand Test3Command { get; set; }
- public RelayCommand Test4Command { get; set; }
- public RelayCommand Test5Command { get; set; }
- public bool Heartbeat { get { return _mHeartbeat; } set { _mHeartbeat = value; OnPropertyChanged(); } }
- private bool _mHeartbeat;
-
- public RelayCommand CLearRecipeInfo { get; set; }
- public RelayCommand SystemReset { get; set; }
- }
- }
|