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