添加项目文件。
This commit is contained in:
60
WPFWCSDemo/Models/Cargo.cs
Normal file
60
WPFWCSDemo/Models/Cargo.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 货位状态表
|
||||
/// </summary>
|
||||
public class Cargo
|
||||
{
|
||||
/// <summary>
|
||||
/// 货位编码
|
||||
/// </summary>
|
||||
public string Cargo_ID { get; set; }
|
||||
/// <summary>
|
||||
/// 货位名称
|
||||
/// </summary>
|
||||
public string Cargo_Name { get; set; }
|
||||
/// <summary>
|
||||
/// 货位区域
|
||||
/// </summary>
|
||||
public string Cargo_Area { get; set; }
|
||||
/// <summary>
|
||||
/// 货位状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string TrayCode { get; set; }
|
||||
/// <summary>
|
||||
/// 排
|
||||
/// </summary>
|
||||
public int Row { get; set; }
|
||||
/// <summary>
|
||||
/// 列
|
||||
/// </summary>
|
||||
public int Column { get; set; }
|
||||
/// <summary>
|
||||
/// 层
|
||||
/// </summary>
|
||||
public int Floor { get; set; }
|
||||
/// <summary>
|
||||
/// 巷道
|
||||
/// </summary>
|
||||
public int Road { get; set; }
|
||||
/// <summary>
|
||||
/// 是否可用
|
||||
/// </summary>
|
||||
public int Enable { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public string UpdateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
44
WPFWCSDemo/Models/DataInfoTaskAsc.cs
Normal file
44
WPFWCSDemo/Models/DataInfoTaskAsc.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 看板页左侧部分任务展示
|
||||
/// </summary>
|
||||
public class DataInfoTaskAsc
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string? TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘条码
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
public string? ScheduleState { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public int? TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站点
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站点
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
40
WPFWCSDemo/Models/DataInfoTaskbar.cs
Normal file
40
WPFWCSDemo/Models/DataInfoTaskbar.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 看板顶部任务
|
||||
/// </summary>
|
||||
public partial class DataInfoTaskbar : ObservableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string? Icon { get; set; }
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string? Title { get; set; }
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
//public int? Content { get; set; }
|
||||
public int? _content;
|
||||
/// <summary>
|
||||
/// 颜色
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
//public string? Color { get; set; }
|
||||
public string? _color;
|
||||
/// <summary>
|
||||
/// 触发目标(点击可能触发一些功能,增加命名空间)
|
||||
/// </summary>
|
||||
public string? Target { get; set; }
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGVStation
|
||||
{
|
||||
public class CircleRGVStationCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// 下发任务号
|
||||
/// </summary>
|
||||
public int Write_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 下发穿梭车编号 常规任务-0 其他任务-环穿编号
|
||||
/// </summary>
|
||||
public int Write_DeviceNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型 1-常规任务 2-小车回休息区 3-休息区小车上轨道
|
||||
/// </summary>
|
||||
public int Write_TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 下发取货站点
|
||||
/// </summary>
|
||||
public int Write_SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发放货站点
|
||||
/// </summary>
|
||||
public int Write_TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 下发完成
|
||||
/// </summary>
|
||||
public int Write_SendFinish { get; set; }
|
||||
/// <summary>
|
||||
/// 下发校验码-所有字节求和
|
||||
/// </summary>
|
||||
public short Write_Checksum { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.CircleRGVStation
|
||||
{
|
||||
public class CircleRGVStationState : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 允许下发 0-禁止下发 1-允许下发
|
||||
/// </summary>
|
||||
public int Read_Permission { get; set; }
|
||||
/// <summary>
|
||||
/// 下发状态 0-其他,1-正常接收,2-接收异常
|
||||
/// </summary>
|
||||
public int Read_SendState { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public int Read_TaskNumber { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
//---------------------------------供实垛侧站点---------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1001
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1001 { get; set; }
|
||||
/// <summary>
|
||||
/// 1001供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1001 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1003
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1003 { get; set; }
|
||||
/// <summary>
|
||||
/// 1003供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1003 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---供实垛-1005
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1005 { get; set; }
|
||||
/// <summary>
|
||||
/// 1005供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1005 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---D线供实垛-1007
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1007 { get; set; }
|
||||
/// <summary>
|
||||
/// 1007供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1007 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取货请求---D线供实垛-1008
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1008 { get; set; }
|
||||
/// <summary>
|
||||
/// 1008供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1008 { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---立库入口1供实垛-1009
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1009 { get; set; }
|
||||
/// <summary>
|
||||
/// 1009供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1009 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---立库入口2供实垛-1010
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1010 { get; set; }
|
||||
/// <summary>
|
||||
/// 1010供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1010 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---供实垛-1011
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1011 { get; set; }
|
||||
/// <summary>
|
||||
/// 1011供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1011 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放货请求---供实垛-1012
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1012 { get; set; }
|
||||
/// <summary>
|
||||
/// 1012供实垛系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1012 { get; set; }
|
||||
|
||||
//==========================================================================
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---供空托-1013
|
||||
/// </summary>
|
||||
public bool Read_GetRequest_1013 { get; set; }
|
||||
/// <summary>
|
||||
/// 1013供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1013 { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1002
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1002 { get; set; }
|
||||
/// <summary>
|
||||
/// 1002供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1002 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1004
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1004 { get; set; }
|
||||
/// <summary>
|
||||
/// 1004供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1004 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 空托请求---放空托-1006
|
||||
/// </summary>
|
||||
public bool Read_PutRequest_1006 { get; set; }
|
||||
/// <summary>
|
||||
/// 1006供空托系统正常 true-正常 false-异常
|
||||
/// </summary>
|
||||
public bool Read_IsNotException_1006 { 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)”拥有用于释放未托管资源的代码时才替代终结器
|
||||
// ~CircleRGVStationState()
|
||||
// {
|
||||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
// Dispose(disposing: false);
|
||||
// }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv
|
||||
{
|
||||
public class ConvCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvGet
|
||||
{
|
||||
public class ConvGetCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
58
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetState.cs
Normal file
58
WPFWCSDemo/Models/Devices/Conv/ConvGet/ConvGetState.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvGet
|
||||
{
|
||||
public class ConvGetState
|
||||
{
|
||||
/// <summary>
|
||||
/// A线取货请求
|
||||
/// </summary>
|
||||
public bool A_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// A线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool A_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// B线取货请求
|
||||
/// </summary>
|
||||
public bool B_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// B线回空托请求
|
||||
/// </summary>
|
||||
public bool B_BackRequest { get; set; }
|
||||
/// <summary>
|
||||
/// B线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool B_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// C线取货请求
|
||||
/// </summary>
|
||||
public bool C_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// C线回空托请求
|
||||
/// </summary>
|
||||
public bool C_BackRequest { get; set; }
|
||||
/// <summary>
|
||||
/// C线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool C_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// D线取货请求
|
||||
/// </summary>
|
||||
public bool D_InRequest { get; set; }
|
||||
/// <summary>
|
||||
/// D线供实垛系统正常
|
||||
/// </summary>
|
||||
public bool D_Exception { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
13
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutCommand.cs
Normal file
13
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvPut
|
||||
{
|
||||
public class ConvPutCommand
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
31
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutState.cs
Normal file
31
WPFWCSDemo/Models/Devices/Conv/ConvPut/ConvPutState.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv.ConvPut
|
||||
{
|
||||
|
||||
public class ConvPutState
|
||||
{
|
||||
/// <summary>
|
||||
/// AB口请求出空托
|
||||
/// </summary>
|
||||
public bool AB_OutRequest { get; set; }
|
||||
/// <summary>
|
||||
/// AB输送机无故障
|
||||
/// </summary>
|
||||
public bool AB_Exception { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CD口请求出空托
|
||||
/// </summary>
|
||||
public bool CD_OutRequest { get; set; }
|
||||
/// <summary>
|
||||
/// CD输送机无故障
|
||||
/// </summary>
|
||||
public bool CD_Exception { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
24
WPFWCSDemo/Models/Devices/Conv/ConvState.cs
Normal file
24
WPFWCSDemo/Models/Devices/Conv/ConvState.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Devices.Conv
|
||||
{
|
||||
public class ConvState
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public int Read_TaskNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 输送到位
|
||||
/// </summary>
|
||||
public int Read_InPosition { get; set; }
|
||||
/// <summary>
|
||||
/// 输送请求
|
||||
/// </summary>
|
||||
public int Read_TransRequest { get; set; }
|
||||
}
|
||||
}
|
||||
19
WPFWCSDemo/Models/Menu.cs
Normal file
19
WPFWCSDemo/Models/Menu.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
public class MenuBar
|
||||
{
|
||||
|
||||
public string? Icon { get; set; }
|
||||
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? NameSpace { get; set; }
|
||||
}
|
||||
}
|
||||
20
WPFWCSDemo/Models/MessageDialog.cs
Normal file
20
WPFWCSDemo/Models/MessageDialog.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
public class MessageDialog
|
||||
{
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
27
WPFWCSDemo/Models/SettingMenu.cs
Normal file
27
WPFWCSDemo/Models/SettingMenu.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统导航菜单实体类
|
||||
/// </summary>
|
||||
public class SettingMenu
|
||||
{
|
||||
/// <summary>
|
||||
/// 菜单图标
|
||||
/// </summary>
|
||||
public string Icon { get; set; }
|
||||
/// <summary>
|
||||
/// 菜单名称
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 菜单命名空间
|
||||
/// </summary>
|
||||
public string NameSpace { get; set; }
|
||||
}
|
||||
}
|
||||
38
WPFWCSDemo/Models/Tables/Alarm.cs
Normal file
38
WPFWCSDemo/Models/Tables/Alarm.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
/// <summary>
|
||||
/// 实时报警
|
||||
/// </summary>
|
||||
public class Alarm
|
||||
{
|
||||
/// <summary>
|
||||
/// 报警名称
|
||||
/// </summary>
|
||||
[Key]
|
||||
public string Point_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 报警信息
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级
|
||||
/// </summary>
|
||||
public string? Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 设备类别
|
||||
/// </summary>
|
||||
public string? Device_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
public DateTime? Gen_Time { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
56
WPFWCSDemo/Models/Tables/AlarmHistory.cs
Normal file
56
WPFWCSDemo/Models/Tables/AlarmHistory.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
/// <summary>
|
||||
/// 历史报警
|
||||
/// </summary>
|
||||
public class AlarmHistory
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[AllowNull]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
/// <summary>
|
||||
/// 报警名称
|
||||
/// </summary>
|
||||
public string? Point_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 报警信息
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级
|
||||
/// </summary>
|
||||
[AllowNull]
|
||||
public string? Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 设备类别
|
||||
/// </summary>
|
||||
public string? Device_Id { get; set; }
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[AllowNull]
|
||||
public DateTime? Gen_Time { get; set; }
|
||||
/// <summary>
|
||||
/// 复位时间
|
||||
/// </summary>
|
||||
//public DateTime? Reset_Time { get; set; }
|
||||
/// <summary>
|
||||
/// 删除时间
|
||||
/// </summary>
|
||||
//public DateTime? Delete_Time { get; set; }
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
public DateTime? End_Time { get; set; }
|
||||
}
|
||||
}
|
||||
89
WPFWCSDemo/Models/Tables/ConvRequest.cs
Normal file
89
WPFWCSDemo/Models/Tables/ConvRequest.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
/// <summary>
|
||||
/// 输送口请求
|
||||
/// </summary>
|
||||
public class ConvRequest
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[AllowNull]
|
||||
[JsonIgnore]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>
|
||||
/// 1001
|
||||
/// </summary>
|
||||
public int Conv_Goods_In_1001 { get; set; }
|
||||
/// <summary>
|
||||
/// 1003
|
||||
/// </summary>
|
||||
public int Conv_Goods_In_1003 { get; set; }
|
||||
/// <summary>
|
||||
/// 1005
|
||||
/// </summary>
|
||||
public int Conv_Goods_In_1005 { get; set; }
|
||||
/// <summary>
|
||||
/// 1007
|
||||
/// </summary>
|
||||
public int Conv_Goods_In_1007 { get; set; }
|
||||
/// <summary>
|
||||
/// 1008
|
||||
/// </summary>
|
||||
public int Conv_Goods_In_1008 { get; set; }
|
||||
///// <summary>
|
||||
///// 立库1-1009
|
||||
///// </summary>
|
||||
//public int Conv_Goods_Out_1009 { get; set; }
|
||||
///// <summary>
|
||||
///// 立库1-1010
|
||||
///// </summary>
|
||||
//public int Conv_Goods_Out_1010 { get; set; }
|
||||
///// <summary>
|
||||
///// 1011
|
||||
///// </summary>
|
||||
//public int Conv_Goods_Out_1011 { get; set; }
|
||||
///// <summary>
|
||||
///// 1012
|
||||
///// </summary>
|
||||
//public int Conv_Goods_Out_1012 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string? Time { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 1013
|
||||
/// </summary>
|
||||
public int Conv_Pallet_In_1013 { get; set; }
|
||||
/// <summary>
|
||||
/// 1002
|
||||
/// </summary>
|
||||
public int Conv_Pallet_Out_1002 { get; set; }
|
||||
/// <summary>
|
||||
/// 1004
|
||||
/// </summary>
|
||||
public int Conv_Pallet_Out_1004 { get; set; }
|
||||
/// <summary>
|
||||
/// 1006
|
||||
/// </summary>
|
||||
public int Conv_Pallet_Out_1006 { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
49
WPFWCSDemo/Models/Tables/Event_Log.cs
Normal file
49
WPFWCSDemo/Models/Tables/Event_Log.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class Event_Log
|
||||
{
|
||||
/// <summary>
|
||||
/// 事件标识
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
/// <summary>
|
||||
/// 事件信息
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
public string? TimeStamp { get; set; }
|
||||
/// <summary>
|
||||
/// 操作角色
|
||||
/// </summary>
|
||||
public string? UserId { get; set; }
|
||||
/// <summary>
|
||||
/// 事件类型(登录、操作、错误等)
|
||||
/// </summary>
|
||||
public string? Type { get; set; }
|
||||
/// <summary>
|
||||
/// 事件来源(名称、控件等)
|
||||
/// </summary>
|
||||
public string? Source { get; set; }
|
||||
/// <summary>
|
||||
/// 重要程度(信息、警告、错误等)
|
||||
/// </summary>
|
||||
public string? Level { get; set; }
|
||||
/// <summary>
|
||||
/// 事件状态(完成、失败等)
|
||||
/// </summary>
|
||||
public string? Status { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
38
WPFWCSDemo/Models/Tables/LineState.cs
Normal file
38
WPFWCSDemo/Models/Tables/LineState.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class LineState
|
||||
{
|
||||
/// <summary>
|
||||
/// 输送线名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 源站
|
||||
/// </summary>
|
||||
public int Source { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public int Target { get; set; }
|
||||
/// <summary>
|
||||
/// 输送线是否允许生成任务(由上位控制) 1-正常 0-禁止
|
||||
/// </summary>
|
||||
public int IsEnable { get; set; }
|
||||
/// <summary>
|
||||
/// 输送线功能
|
||||
/// </summary>
|
||||
public string? Property { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
33
WPFWCSDemo/Models/Tables/LoadedState.cs
Normal file
33
WPFWCSDemo/Models/Tables/LoadedState.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class LoadedState
|
||||
{
|
||||
/// <summary>
|
||||
/// 站点
|
||||
/// </summary>
|
||||
public int Station { get; set; }
|
||||
/// <summary>
|
||||
/// 生成任务时间
|
||||
/// </summary>
|
||||
public DateTime? GenerationTime { get; set; }
|
||||
/// <summary>
|
||||
/// 开始取货时间
|
||||
/// </summary>
|
||||
public DateTime? LoadingTime { get; set; }
|
||||
/// <summary>
|
||||
/// 取货完成时间
|
||||
/// </summary>
|
||||
public DateTime? LoadedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 开发放货时间
|
||||
/// </summary>
|
||||
public DateTime? PuttingTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
67
WPFWCSDemo/Models/Tables/TaskHistory.cs
Normal file
67
WPFWCSDemo/Models/Tables/TaskHistory.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class TaskHistory
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string? TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public string? TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级
|
||||
/// </summary>
|
||||
public int? Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
public string? TaskState { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
public string? ScheduleState { get; set; }
|
||||
/// <summary>
|
||||
/// 生成时间
|
||||
/// </summary>
|
||||
public DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 调度时间
|
||||
/// </summary>
|
||||
public DateTime? ScheduleTime { get; set; }
|
||||
/// <summary>
|
||||
/// 完成时间
|
||||
/// </summary>
|
||||
public DateTime? FinishTime { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈状态
|
||||
/// </summary>
|
||||
public string? ReportState { get; set; }
|
||||
}
|
||||
}
|
||||
64
WPFWCSDemo/Models/Tables/TaskHistoryView.cs
Normal file
64
WPFWCSDemo/Models/Tables/TaskHistoryView.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class TaskHistoryView
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string? TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public string? TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级
|
||||
/// </summary>
|
||||
public int? Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
public string? TaskState { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
public string? ScheduleState { get; set; }
|
||||
/// <summary>
|
||||
/// 生成时间
|
||||
/// </summary>
|
||||
public DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 调度时间
|
||||
/// </summary>
|
||||
public DateTime? ScheduleTime { get; set; }
|
||||
/// <summary>
|
||||
/// 完成时间
|
||||
/// </summary>
|
||||
public DateTime? FinishTime { get; set; }
|
||||
/// <summary>
|
||||
/// 反馈状态
|
||||
/// </summary>
|
||||
public string? ReportState { get; set; }
|
||||
}
|
||||
}
|
||||
106
WPFWCSDemo/Models/Tables/TaskRT.cs
Normal file
106
WPFWCSDemo/Models/Tables/TaskRT.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public class TaskRT : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
public string? JobId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string TaskId { get; set; }
|
||||
///// <summary>
|
||||
///// 任务号
|
||||
///// </summary>
|
||||
//public string TaskIdString { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级 1→3 高→低
|
||||
/// </summary>
|
||||
//public int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
public string? TaskState { get; set; }
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
public string? ScheduleState { get; set; }
|
||||
/// <summary>
|
||||
/// 生成时间
|
||||
/// </summary>
|
||||
[AllowNull]
|
||||
public DateTime CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 调度时间
|
||||
/// </summary>
|
||||
[AllowNull]
|
||||
public DateTime ScheduleTime { get; set; }
|
||||
/// <summary>
|
||||
/// 报告状态
|
||||
/// </summary>
|
||||
//public int ReportState { 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)”拥有用于释放未托管资源的代码时才替代终结器
|
||||
// ~TaskRT()
|
||||
// {
|
||||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
// Dispose(disposing: false);
|
||||
// }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
108
WPFWCSDemo/Models/Tables/TaskView.cs
Normal file
108
WPFWCSDemo/Models/Tables/TaskView.cs
Normal file
@@ -0,0 +1,108 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WPFWCSDemo.Models.Tables
|
||||
{
|
||||
public partial class TaskView : ObservableObject, IDisposable
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 作业号
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
//public string? JobId { get; set; }
|
||||
public string? _jobId;
|
||||
|
||||
/// <summary>
|
||||
/// 任务号
|
||||
/// </summary>
|
||||
public string? TaskId { get; set; }
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string? PalletId { get; set; }
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public string? TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// 源站
|
||||
/// </summary>
|
||||
public string? SourceLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 目标站
|
||||
/// </summary>
|
||||
public string? TargetLocation { get; set; }
|
||||
/// <summary>
|
||||
/// 优先级 1→3 高→低
|
||||
/// </summary>
|
||||
public int Priority { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
//public string? TaskState { get; set; }
|
||||
public string? _taskState;
|
||||
/// <summary>
|
||||
/// 调度状态
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
//public string? ScheduleState { get; set; }
|
||||
public string? _scheduleState;
|
||||
/// <summary>
|
||||
/// 生成时间
|
||||
/// </summary>
|
||||
public DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 调度时间
|
||||
/// </summary>
|
||||
public DateTime? ScheduleTime { get; set; }
|
||||
/// <summary>
|
||||
/// 报告状态
|
||||
/// </summary>
|
||||
public string? ReportState { 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)”拥有用于释放未托管资源的代码时才替代终结器
|
||||
// ~TaskView()
|
||||
// {
|
||||
// // 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
// Dispose(disposing: false);
|
||||
// }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
// 不要更改此代码。请将清理代码放入“Dispose(bool disposing)”方法中
|
||||
Dispose(disposing: true);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
36
WPFWCSDemo/Models/WareHouseInfo.cs
Normal file
36
WPFWCSDemo/Models/WareHouseInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace WPFWCSDemo.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓位状态画面展示
|
||||
/// </summary>
|
||||
public class WareHouseInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 填充颜色
|
||||
/// </summary>
|
||||
public System.Windows.Media.Brush FillColor { get; set; }
|
||||
/// <summary>
|
||||
/// 鼠标悬停提示
|
||||
/// </summary>
|
||||
public string Tooltip { get; set; }
|
||||
/// <summary>
|
||||
/// 悬停放大动画缩放中心点
|
||||
/// </summary>
|
||||
public System.Drawing.Point RenderCenter { get; set; }
|
||||
/// <summary>
|
||||
/// X坐标
|
||||
/// </summary>
|
||||
public double X { get; set; }
|
||||
/// <summary>
|
||||
/// Y坐标
|
||||
/// </summary>
|
||||
public double Y { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user