Base_Station.cs
3.19 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
using RCS.Model.Comm;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.CompilerServices;
namespace RCS.Model.Entity
{
[Table("t_base_map_station")]
public class Base_Station : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
public void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
private bool isLocked;
private bool isEnable;
#region 基础实体类
/// <summary>
/// 唯一标识
/// </summary>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long ID { get; set; }
/// <summary>
/// 站台编码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 站台名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 站台类型
/// </summary>
public EnumMsg.StationType StationType { get; set; }
/// <summary>
/// 站台方向
/// </summary>
public EnumMsg.Direction StationDirection { get; set; } = EnumMsg.Direction.无方向;
/// <summary>
/// 站台所属区域
/// </summary>
public string Area { get; set; }
/// <summary>
/// 站台所属群组
/// </summary>
public string Group { get; set; }
/// <summary>
/// 站台点
/// </summary>
public string Barcode { get; set; }
/// <summary>
/// 站台附属点
/// </summary>
public string PreBarcode { get; set; }
/// <summary>
/// 站台是否被锁定
/// </summary>
public bool IsLocked { get => isLocked; set { isLocked = value; NotifyPropertyChanged(); } }
/// <summary>
/// 站台是否启用
/// </summary>
public bool IsEnable { get => isEnable; set { isEnable = value; NotifyPropertyChanged(); } }
/// <summary>
/// 站台状态 满FULL 空Empty
/// </summary>
public EnumMsg.StationState StationState { get; set; }
/// <summary>
/// 站台低位高度
/// </summary>
public ushort LowHeight { get; set; }
/// <summary>
/// 站台高位高度
/// </summary>
public ushort HighHeight { get; set; }
/// <summary>
/// 站台防撞属性
/// </summary>
public int Tim { get; set; }
/// <summary>
/// 增删改
/// </summary>
[NotMapped]
public string Type { get; set; }
[NotMapped]
public Base_Point Point { get; set; }
#endregion 基础实体类
/// <summary>
/// 与站台对接中的agv
/// </summary>
[NotMapped]
public Base_Agv? LockAgv { get; set; }
public virtual void ClearAllRequest() { }
public override string ToString()
{
return $"{Area}-{Name}-{Code}";
}
}
}