杨张扬
2025-06-06 0926aaf5b0272133bb5a3d139040fa8867405de3
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
using HH.WCS.Mobox3.DoubleCoin.models;
using SqlSugar;
using System;
using System.Collections.Generic;
 
namespace HH.WCS.Mobox3.DoubleCoin {
 
    [SugarTable("TN_Location")]
    public class TN_Location : BaseModel {
 
 
        //[SugarColumn(IsPrimaryKey = true)]
        public string S_CODE { get; set; }
        public string S_NAME { get; set; }
        public string S_AREA_CODE { get; set; }
        public int N_CAPACITY { get; set; }
        /// <summary>
        /// 国自库位名称
        /// </summary>
        public string S_AGV_SITE { get; set; }
        public int N_CURRENT_NUM { get; set; }
       
        public int N_LAYER { 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; }
      
        public string C_ENABLE { get; set; }
      
        public string S_LOCK_OP { get; set; }
      
        public string S_AGV_SITE2 { get; set; }
        public string S_AGV_SITE3 { get; set; }
        public string S_AGV_SITE4 { get; set; }
        public string S_AGV_SITE5 { get; set; }
      
 
        [Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))]
        public List<TN_Loc_Container> LocCntrRels { 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;
        }
    }
}