TaskEntity.cs
4.18 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
using HHECS.Model.Common;
using HHECS.Model.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHECS.Model.Entities
{
/// <summary>
/// 任务实体类,不继承basemodel
/// </summary>
[Table("task")]
public class TaskEntity
{
private int id;
private int warehouseId;
private String warehouseCode;
private int? companyId;
private int priority;
private int type;
private int? station;
private string port;
private int? containerId;
private String containerCode;
private String roadway;
private String sourceLocation;
private String destinationLocation;
private int lastStatus;
private DateTime? created;
private String createdBy;
private DateTime? beginTime;
private DateTime? endTime;
private DateTime? lastUpdated;
private String lastUpdatedBy;
private String userDef1;
private String userDef2;
private String userDef3;
public int Id { get => id; set => id = value; }
public int WarehouseId { get => warehouseId; set => warehouseId = value; }
public string WarehouseCode { get => warehouseCode; set => warehouseCode = value; }
public int? CompanyId { get => companyId; set => companyId = value; }
public int Priority { get => priority; set => priority = value; }
public int Type { get => type; set => type = value; }
public int? Station { get => station; set => station = value; }
[NotMapped]
public string Port { get => port; set => port = value; }
public int? ContainerId { get => containerId; set => containerId = value; }
public string ContainerCode { get => containerCode; set => containerCode = value; }
public string Roadway { get => roadway; set => roadway = value; }
public string SourceLocation { get => sourceLocation; set => sourceLocation = value; }
public string DestinationLocation { get => destinationLocation; set => destinationLocation = value; }
public int LastStatus { get => lastStatus; set => lastStatus = value; }
public DateTime? Created { get => created; set => created = value; }
public string CreatedBy { get => createdBy; set => createdBy = value; }
public DateTime? BeginTime { get => beginTime; set => beginTime = value; }
public DateTime? EndTime { get => endTime; set => endTime = value; }
public DateTime? LastUpdated { get => lastUpdated; set => lastUpdated = value; }
public string LastUpdatedBy { get => lastUpdatedBy; set => lastUpdatedBy = value; }
public string UserDef1 { get => userDef1; set => userDef1 = value; }
public string UserDef2 { get => userDef2; set => userDef2 = value; }
public string UserDef3 { get => userDef3; set => userDef3 = value; }
/// <summary>
/// 指示这条任务是否重入
/// </summary>
public int IsDoubleIn { get; set; }
/// <summary>
/// 如果重入,则代表重新选择的库位
/// </summary>
public string SecondDestinationLocation { get; set; }
public int FirstStatus { get; set; }
public int SendAgain { get; set; }
#region 自定义属性
/// <summary>
/// 首状态描述
/// </summary>
[Editable(false)]
public string FirstStatusDesc
{
get { return typeof(TaskEntityStatus).GetDescriptionString(FirstStatus); }
}
/// <summary>
/// 首状态描述
/// </summary>
[Editable(false)]
public string LastStatusDesc
{
get { return typeof(TaskEntityStatus).GetDescriptionString(LastStatus); }
}
/// <summary>
/// 任务类型描述
/// </summary>
[Editable(false)]
public string TaskTypeDesc
{
get { return typeof(TaskType).GetDescriptionString(type); }
}
#endregion
}
}