109 lines
2.9 KiB
C#
109 lines
2.9 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.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);
|
|
}
|
|
}
|
|
}
|