Equipment.cs
4.31 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace WebRepository
{
/// <summary>
/// 设备列表
/// </summary>
[Table("equipment")]
public partial class Equipment : SysEntity
{
public Equipment()
{
}
/// <summary>
/// 设备编号
/// </summary>
[Column("code")]
public string Code { get; set; }
/// <summary>
/// 设备名称
/// </summary>
[Column("name")]
public string Name { get; set; }
/// <summary>
/// 车间标识
/// </summary>
[Column("workshopId")]
public int? WorkshopId { get; set; }
/// <summary>
/// 工厂标识
/// </summary>
[Column("factoryId")]
public int? FactoryId { get; set; }
/// <summary>
/// 线体
/// </summary>
[Column("lineCode")]
public string LineCode { get; set; }
/// <summary>
/// 线体ID
/// </summary>
[Column("lineId")]
public int? LineId { get; set; }
/// <summary>
/// 工位
/// </summary>
[Column("stationCode")]
public string StationCode { get; set; }
/// <summary>
/// 工位ID
/// </summary>
[Column("stationId")]
public int? StationId { get; set; }
/// <summary>
/// 设备IP地址
/// </summary>
[Column("Ip")]
public string Ip { get; set; }
/// <summary>
/// OPC连接名
/// </summary>
[Column("connectName")]
public string ConnectName { get; set; }
/// <summary>
/// 设备对应的IED的IP
/// </summary>
[Column("ledIp")]
public string LedIp { get; set; }
/// <summary>
/// 设备类型
/// </summary>
[Column("equipmentTypeId")]
public int? EquipmentTypeId { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column("enable")]
public bool? Enable { get; set; }
/// <summary>
/// 巷道
/// </summary>
[Column("roadWay")]
public int? RoadWay { get; set; }
/// <summary>
/// 目标区域
/// </summary>
[Column("destinationArea")]
public string DestinationArea { get; set; }
/// <summary>
/// 目的地址
/// </summary>
[Column("goAddress")]
public string GoAddress { get; set; }
/// <summary>
/// 自身地址
/// </summary>
[Column("selfAddress")]
public string SelfAddress { get; set; }
/// <summary>
/// 回退地址
/// </summary>
[Column("backAddress")]
public string BackAddress { get; set; }
/// <summary>
/// 仓库编码
/// </summary>
[Column("warehouseCode")]
public string WarehouseCode { get; set; }
/// <summary>
/// 站台编码
/// </summary>
[Column("stationIndex")]
public short? StationIndex { get; set; }
/// <summary>
/// 第一台堆垛机对应的排索引
/// </summary>
[Column("rowIndex1")]
public long? RowIndex1 { get; set; }
/// <summary>
/// 第二台堆垛机对应的排索引
/// </summary>
[Column("rowIndex2")]
public long? RowIndex2 { get; set; }
/// <summary>
/// 列
/// </summary>
[Column("columnIndex")]
public short? ColumnIndex { get; set; }
/// <summary>
/// 层
/// </summary>
[Column("layerIndex")]
public short? LayerIndex { get; set; }
/// <summary>
/// PLC的DB地址
/// </summary>
[Column("basePlcDB")]
public string BasePlcDB { get; set; }
public EquipmentType EquipmentType { get; set; }
public List<EquipmentProp> EquipmentProps { get; set; } = new List<EquipmentProp>();
public List<EquipmentStatus> EquipmentStatuses { get; set; } = new List<EquipmentStatus>();
// /// <summary>
///// 正常模式
///// </summary>
// [Column("transport1")]
// public string Transport1 { get; set; }
// /// <summary>
///// 兼容模式
///// </summary>
// [Column("transport2")]
// public string Transport2 { get; set; }
}
}