using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace Tiger.Model.SeaStone.Shelf { /// /// 智能料车状态实体 /// public class RackStatus { public RackStatus() { } public RackStatus(int indicatorId, bool IndicatorBlink, int IndicatorStatus, string VoiceText, string UserId, string Timestamp, string SessionId, List CellLightStatusList) { this.indicatorId = indicatorId; this.IndicatorBlink = IndicatorBlink; this.IndicatorStatus = IndicatorStatus; this.VoiceText = VoiceText; this.CellLightStatusList = CellLightStatusList; this.UserId = UserId; this.Timestamp = Timestamp; this.SessionId = SessionId; } /// /// 警示灯ID:-1:不控制警示灯;0:正面;1:反面;2:全部 /// public int indicatorId { get; set; } /// /// 警示灯是否闪烁 /// public bool IndicatorBlink { get; set; } = false; /// /// 警示灯状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白 /// public int IndicatorStatus { get; set; } /// /// 发送语音内容 /// public string VoiceText { get; set; } /// /// 发送语音内容 /// public List CellLightStatusList { get; set; } /// /// 操作用户ID /// public string UserId { get; set; } /// /// 操作时间戳 /// public string Timestamp { get; set; } /// /// 会话ID /// public string SessionId { get; set; } /// /// 储位灯状态类 /// public class CellLightStatus { public CellLightStatus() { } public CellLightStatus(int LedId, int LightColor, bool IsBlink, int Stts, string ReelId) { this.LedId = LedId; this.LightColor = LightColor; this.IsBlink = IsBlink; this.Stts = Stts; this.ReelId = ReelId; } /// /// 储位灯序号 /// public int LedId { get; set; } /// /// 储位灯颜色:0-熄灭,1-红,2-绿,3-黄,4-蓝,5-洋红,6青,7-白 /// public int LightColor { get; set; } /// /// 发送语音内容 /// public bool IsBlink { get; set; } = false; /// /// 料架面 0:正面(A面),1:反面(B面),2:全部 /// public int side { get; set; } /// /// 储位灯状态:0:空,1:非空,2:预定状,3:已取料 /// public int Stts { get; set; } /// /// 物料id(可选) /// public string ReelId { get; set; } } #region 枚举变量 public enum LightColors { [Description("黑(熄灭)")] Black = 0, [Description("红")] Red = 1, [Description("绿")] Green = 2, [Description("黄")] Yellow = 3, [Description("蓝")] Blue = 4, [Description("洋红")] Magenta = 5, [Description("青")] Cyan = 6, [Description("白")] White = 7, } #endregion } }