74 lines
1.6 KiB
C#
74 lines
1.6 KiB
C#
using HslCommunication;
|
|
using Prism.Mvvm;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CapMachine.Wpf.Dtos
|
|
{
|
|
/// <summary>
|
|
/// 手自动切换模型数据
|
|
/// </summary>
|
|
public class HandSwitchData : BindableBase
|
|
{
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 动作地址
|
|
/// </summary>
|
|
public string? ActionAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态地址
|
|
/// </summary>
|
|
public string? StateAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态地址类型
|
|
/// </summary>
|
|
public HandSwitchStateType StateAddressType { get; set; }
|
|
|
|
private bool _State;
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public bool State
|
|
{
|
|
get { return _State; }
|
|
set { _State = value; RaisePropertyChanged(); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 状态数据结果-布尔
|
|
/// </summary>
|
|
public OperateResult<bool>? StateBoolOperateResult { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态数据结果-字
|
|
/// </summary>
|
|
public OperateResult<short>? StateShortOperateResult { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 手自动切换状态类型枚举
|
|
/// </summary>
|
|
public enum HandSwitchStateType
|
|
{
|
|
/// <summary>
|
|
/// 布尔类型
|
|
/// </summary>
|
|
Bool = 1,
|
|
|
|
/// <summary>
|
|
/// 字类型
|
|
/// </summary>
|
|
Word = 2,
|
|
}
|
|
|
|
}
|