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
{
//*************************************************读取*************************************************
///
/// 标题
///
public string? Title { get; set; }
///
/// 编号
///
public int Number { get; set; }
///
/// 操作模式 0-未知 1-工作 2-手动
///
public short Read_Mode { get; set; }
///
/// 设备状态 0-未知 1-工作 2-手动 3-自动待机 100-报警
///
public short Read_DeviceState { get; set; }
///
/// 执行阶段 1-取货途中,2-取货,3-送货途中,4-送货,5-完成
///
public short Read_Phase { get; set; }
///
/// 任务号
///
public int Read_TaskNumber { get; set; }
///
/// 允许下发 false-禁止 true-允许
///
public bool Read_Permission { get; set; }
///
/// 当前站点
///
public string? Read_CurrentLocation { get; set; }
///
/// 取货站点
///
public string? Read_SourceLocation { get; set; }
///
/// 放货站点
///
public string? Read_TargetLocation { get; set; }
///
/// 任务类型
///
public byte Read_TaskType { get; set; }
///
/// BPS
///
public int Read_BPSNumber { get; set; }
///
/// 运行里程
///
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);
}
}
}