添加项目文件。
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user