服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-12-03 6cc05f3689e7616431886ec183948c433a30220c
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
 
namespace Tiger.Model.SeaStone.Shelf
{
    /// <summary>
    /// 货架警示灯状态
    /// </summary>
    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;
        //}
 
        /// <summary>
        /// 方向(0无|1正面|2反面|3所有)
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 警示灯状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白
        /// </summary>
        public int indicatorStatus { get; set; }
        /// <summary>
        /// 警示灯闪烁状态:0-关,1-红,2-黄,3-红黄,4-绿,5-红绿,6-绿黄,7-红黄绿,8-蓝,16-白
        /// </summary>
        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
    }
}