kazelee
2025-06-05 edc3e4ffbdb05eec3e65d7b2d6704a9da2ee9591
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
using SqlSugar;
using System.Collections.Generic;
 
namespace HH.WCS.Mobox3.AnGang.models {
 
    [SugarTable("TN_Location")]
    public class TN_Location : BaseModel {
        /// <summary>
        /// 货位 ID
        /// </summary>
        public string S_CODE { get; set; }
 
        /// <summary>
        /// 货位名称
        /// </summary>
        public string S_NAME { get; set; } = "";
 
        /// <summary>
        /// 货位所在区域 ID
        /// </summary>
        public string S_AREA_CODE { get; set; }
 
        /// <summary>
        /// 国自 AGV 对应的库位名称
        /// </summary>
        public string S_AGV_SITE { get; set; } = "";
 
        /// <summary>
        /// 货位容量
        /// </summary>
        public int N_CAPACITY { get; set; } = 1;
 
        /// <summary>
        /// 货位当前容器数量
        /// </summary>
        public int N_CURRENT_NUM { get; set; } = 0;
 
        /// <summary>
        /// 货位的层数
        /// </summary>
        public int N_LAYER { get; set; } = 1;
 
        /// <summary>
        /// 0无 1入库锁 2出库锁 3其它锁
        /// </summary>
        public int N_LOCK_STATE { get; set; } = 0;
 
        /// <summary>
        /// 0"无" 1"入库锁" 2"出库锁" 3"其它锁"
        /// </summary>
        public string S_LOCK_STATE { get; set; } = "无";
 
        /// <summary>
        /// 货位是否启用:Y启用
        /// </summary>
        public string C_ENABLE { get; set; } = "Y";
 
        /// <summary>
        /// 锁的来源-任务号
        /// </summary>
        public string S_LOCK_OP { get; set; } = "";
 
        [Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))]
        public List<TN_Loc_Container> LocCntrRels { get; set; }
 
        public static string GetLockStateStr(int lockState) {
            var str = "";
            switch (lockState) {
                case 0: str = "无"; break;
                case 1: str = "入库锁"; break;
                case 2: str = "出库锁"; break;
                case 3: str = "其它锁"; break;
            }
            return str;
        }
 
        /// <summary>
        /// 货架编码
        /// </summary>
        public int N_ROW { get; set; }
    }
}