添加项目文件。
This commit is contained in:
46
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVCommand.cs
Normal file
46
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVCommand.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
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 partial class CircleRGVCommand:ObservableObject
|
||||
{
|
||||
//*************************************************写入*************************************************
|
||||
/// <summary>
|
||||
/// 下发任务号
|
||||
/// </summary>
|
||||
public int Write_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 下发穿梭车编号
|
||||
/// </summary>
|
||||
public int Write_DeviceNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public int Write_TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
public int Write_DeviceState { get; set; }
|
||||
/// <summary>
|
||||
/// 下发取货站点
|
||||
/// </summary>
|
||||
public string? Write_SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发放货站点
|
||||
/// </summary>
|
||||
public string? Write_TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发完成
|
||||
/// </summary>
|
||||
public int Write_SendFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 下发校验码
|
||||
/// </summary>
|
||||
public int Write_Checksum { get; set; }
|
||||
}
|
||||
}
|
||||
109
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVState.cs
Normal file
109
WPFWCSDemo/Models/Devices/CircleRGV/CircleRGVState.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user