Log_Task .cs
3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
using RCS.Model.Comm;
using RCS.Model.Entity.PrimaryKey;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
namespace RCS.Model.Entity
{
[Table("t_log_task")]
public class Log_Task :IdEntity
{
/// <summary>
/// 任务ID
/// </summary>
// public new int ID { get; set; }
/// <summary>
/// 任务号
/// </summary>
public string TaskNo { get; set; }
/// <summary>
/// 任务类型 例如 SMT-001
/// </summary>
public string TaskType { get; set; }
/// <summary>
/// 任务群组 例如 PCBA\FA
/// </summary>
public string? TaskGroup { get; set; }
/// <summary>
/// 任务开始分解序号
/// </summary>
[NotMapped]
public int TaskSplitStep { get; set; }
/// <summary>
/// 主任务的任务等级
/// </summary>
public int TaskLevel { get; set; }
/// <summary>
/// 任务条码
/// </summary>
public string? TaskPallet { get; set; }
/// <summary>
/// 起始点
/// </summary>
public string? Initial { get; set; }
/// <summary>
/// 目标点
/// </summary>
public string? Target { get; set; }
#region 接收数据库起点终点数据
public string StartBarcode { get; set; }
public string? EndBarcode { get; set; }
#endregion 接收数据库起点终点数据
/// <summary>
/// 主任务的起点信息
/// </summary>
[NotMapped]
public Base_Point StartPoint { get; set; }
/// <summary>
/// 主任务的终点信息
/// </summary>
[NotMapped]
public Base_Point? EndPoint { get; set; }
/// <summary>
/// 任务的接收时间
/// </summary>
public DateTime? AcceptTime { get; set; }
/// <summary>
/// 指令发送中
/// </summary>
[NotMapped]
public bool CommandSending { get; set; }
/// <summary>
/// 任务是否提交
/// </summary>
public bool IsSubmit { get; set; }
/// <summary>
/// 任务小车信息
/// </summary>
public string? TaskAgvNo { get; set; }
/// <summary>
/// 子任务集合
/// </summary>
[NotMapped]
public ObservableCollection<Log_SubTask> LogSubTaskList { get; set; }
/// <summary>
/// 任务的开始时间
/// </summary>
public DateTime? BeginTime { get; set; }
/// <summary>
/// 任务的结束时间
/// </summary>
public DateTime? EndTime { get; set; }
/// <summary>
/// 任务异常信息
/// </summary>
public string TaskErrMsg { get; set; }
/// <summary>
/// 方向
/// </summary>
public EnumMsg.Direction Direction { get; set; } = EnumMsg.Direction.无方向;
/// <summary>
/// 主任务状态
/// </summary>
public EnumMsg.TaskState TaskState { get; set; }
/// <summary>
/// 预测用的小车
/// </summary>
[NotMapped]
public string PredictAgvNo { get; set; }
}
}