Tjiny
2025-05-19 4c8b2eea64bcd0ae14602a2a6e993b2d04c80ee0
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
using System;
using SqlSugar;
 
namespace HH.WCS.Mobox3.RiDong.models;
 
/// <summary>
/// 货位表
/// </summary>
[SugarTable("TN_Location")]
public class Location : BaseModel {
        
    /// <summary>
    /// 货位编码
    /// </summary>
    [SugarColumn(IsPrimaryKey = true)]
    public string S_CODE { get; set; }
        
    /// <summary>
    /// 货位名称
    /// </summary>
    public string S_NAME { get; set; }
        
    /// <summary>
    /// 仓库编码
    /// </summary>
    public string S_WH_CODE { get; set; }=util.Settings.WHCode;
        
    /// <summary>
    /// 库区编码
    /// </summary>
    public string S_AREA_CODE { get; set; }
        
    /// <summary>
    /// 巷道
    /// </summary>
    public int N_ROADWAY { get; set; }
        
    /// <summary>
    /// 排
    /// </summary>
    public int N_ROW { get; set; }
        
    /// <summary>
    /// 列
    /// </summary>
    public int N_COL { get; set; }
 
    /// <summary>
    /// 层
    /// </summary>
    public int N_LAYER { get; set; }
 
    /// <summary>
    /// 用途(1:存储位,2:站点位,3:入库接驳位,4:出库接驳位,5:理货位,6:分拣位)
    /// </summary>
    public string S_PURPOSE { get; set; }
 
    /// <summary>
    /// 用途(1:存储位,2:站点位,3:入库接驳位,4:出库接驳位,5:理货位,6:分拣位)
    /// </summary>
    public int N_PURPOSE { get; set; }
 
    /// <summary>
    /// 货位类型(1:常规,2:堆叠,3:流利,4:深位)
    /// </summary>
    public string S_TYPE { get; set; }
        
    /// <summary>
    /// 货位类型(1:常规,2:堆叠,3:流利,4:深位)
    /// </summary>
    public int N_TYPE { get; set; }
 
    /// <summary>
    /// 容量
    /// </summary>
    public int N_CAPACITY { get; set; }
        
    /// <summary>
    /// 当前数量
    /// </summary>
    public int N_CURRENT_NUM { get; set; }
 
    /// <summary>
    /// AGV站点
    /// </summary>
    public string S_AGV_SITE { get; set; }
        
    /// <summary>
    /// AGV站点层
    /// </summary>
    public int N_AGV_SITE_LAYER { get; set; }
 
    /// <summary>
    /// 启用
    /// </summary>
    public char C_ENABLE { get; set; }
 
    /// <summary>
    /// 锁定状态(0:无锁,1:入库锁,2:出库锁,3:其他锁)
    /// </summary>
    public string S_LOCK_STATE { get; set; }
        
    /// <summary>
    /// 锁定状态(0:无锁,1:入库锁,2:出库锁,3:其他锁)
    /// </summary>
    public int N_LOCK_STATE { get; set; }
        
    /// <summary>
    /// 加锁原因
    /// </summary>
    public string S_LOCK_OP { get; set; }
        
    /// <summary>
    /// 位置
    /// </summary>
    public int N_POS { get; set; }
        
    /// <summary>
    /// 排组号
    /// </summary>
    public int N_ROW_GROUP { get; set; }
 
    /// <summary>
    /// 深度
    /// </summary>
    public int N_DEEP { get; set; }
 
    /// <summary>
    /// 分组
    /// </summary>
    public string S_GROUP { get; set; }
        
    /// <summary>
    /// 置空时间
    /// </summary>
    public DateTime? T_EMPTY_TIME { get; set; }
 
    /// <summary>
    /// 满货时间
    /// </summary>
    public DateTime? T_FULL_TIME { get; set; }
        
    /// <summary>
    /// 备注
    /// </summary>
    public string S_NOTE { get; set; }
        
    /// <summary>
    /// 长度
    /// </summary>
    public int N_LENGTH { get; set; }
        
    /// <summary>
    /// 宽度
    /// </summary>
    public int N_WIDTH { get; set; }
        
    /// <summary>
    /// 高度
    /// </summary>
    public int N_HEIGHT { get; set; }
 
    /// <summary>
    /// 优先顺序
    /// </summary>
    public int N_PRIORITY { get; set; }
    
   
        
    /// <summary>
    /// 容器货位关联
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    [Navigate(NavigateType.OneToMany, nameof(S_CODE))]
    public LocCntrRel LocCntrRel { get; set; }
 
    internal 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;
    }
}