110 lines
3.1 KiB
C#
110 lines
3.1 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace WPFWCSDemo.Models.Devices.CircleRGV
|
||
{
|
||
public class CircleRGVState : IDisposable
|
||
{
|
||
//*************************************************读取*************************************************
|
||
/// <summary>
|
||
/// 标题
|
||
/// </summary>
|
||
public string? Title { get; set; }
|
||
/// <summary>
|
||
/// 编号
|
||
/// </summary>
|
||
public int Number { get; set; }
|
||
/// <summary>
|
||
/// 操作模式 0-未知 1-工作 2-手动
|
||
/// </summary>
|
||
public short Read_Mode { get; set; }
|
||
/// <summary>
|
||
/// 设备状态 0-未知 1-工作 2-手动 3-自动待机 100-报警
|
||
/// </summary>
|
||
public short Read_DeviceState { get; set; }
|
||
/// <summary>
|
||
/// 执行阶段 1-取货途中,2-取货,3-送货途中,4-送货,5-完成
|
||
/// </summary>
|
||
public short Read_Phase { get; set; }
|
||
/// <summary>
|
||
/// 任务号
|
||
/// </summary>
|
||
public int Read_TaskNumber { get; set; }
|
||
/// <summary>
|
||
/// 允许下发 false-禁止 true-允许
|
||
/// </summary>
|
||
public bool Read_Permission { get; set; }
|
||
/// <summary>
|
||
/// 当前站点
|
||
/// </summary>
|
||
public string? Read_CurrentLocation { get; set; }
|
||
/// <summary>
|
||
/// 取货站点
|
||
/// </summary>
|
||
public string? Read_SourceLocation { get; set; }
|
||
/// <summary>
|
||
/// 放货站点
|
||
/// </summary>
|
||
public string? Read_TargetLocation { get; set; }
|
||
/// <summary>
|
||
/// 任务类型
|
||
/// </summary>
|
||
public byte Read_TaskType { get; set; }
|
||
/// <summary>
|
||
/// BPS
|
||
/// </summary>
|
||
public int Read_BPSNumber { get; set; }
|
||
/// <summary>
|
||
/// 运行里程
|
||
/// </summary>
|
||
public double Read_Mileage { get; set; }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
private bool disposedValue;
|
||
|
||
protected virtual void Dispose(bool disposing)
|
||
{
|
||
if (!disposedValue)
|
||
{
|
||
if (disposing)
|
||
{
|
||
// TODO: 释放托管状态(托管对象)
|
||
}
|
||
|
||
// TODO: 释放未托管的资源(未托管的对象)并重写终结器
|
||
// TODO: 将大型字段设置为 null
|
||
disposedValue = true;
|
||
}
|
||
}
|
||
|
||
// // TODO: 仅当“Dispose(bool disposing)”拥有用于释放未托管资源的代码时才替代终结器
|
||
// ~CircleRGVState()
|
||
// {
|
||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||
// Dispose(disposing: false);
|
||
// }
|
||
|
||
public void Dispose()
|
||
{
|
||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||
Dispose(disposing: true);
|
||
GC.SuppressFinalize(this);
|
||
}
|
||
}
|
||
}
|