using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace Tiger.Model.SeaStone.Shelf
{
///
/// 货架警示灯状态
///
public class Indicator
{
//public Indicator(WMS_LOCATION location, int indicatorStatus, int blinkColor)
//{
// //var asc = location.SEQ_NO / 701 == location.SIDE;//(location.SEQ_NO <= 700 && location.SIDE == 0) || (location.SEQ_NO > 700 && location.SIDE == 1);
// //this.id = asc ? (location.SIDE + 1) : (location.SIDE == 0 ? 2 : 1);//储位的正面是1,反面是0
// this.id = location.INDICATOR;
// this.indicatorStatus = indicatorStatus;
// this.blinkColor = blinkColor;
//}
///
/// 方向(0无|1正面|2反面|3所有)
///
public int id { get; set; }
///
/// 警示灯状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白
///
public int indicatorStatus { get; set; }
///
/// 警示灯闪烁状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白
///
public int blinkColor { get; set; }
#region 枚举变量
public enum Colors
{
[Description("黑(熄灭)")]
Black = 0,
[Description("红")]
Red=1,
[Description("黄")]
Yellow = 2,
[Description("红黄")]
RedYellow = 3,
[Description("绿")]
Green = 4,
[Description("红绿")]
RedGreen = 5,
[Description("绿黄")]
GreenYellow = 6,
[Description("红黄绿")]
RedYellowGreen = 7,
[Description("蓝")]
Blue = 8,
[Description("白")]
White = 16,
}
#endregion
}
}