zxx
2025-05-19 839cd7bba832638a5ba1fb2d3e4e0619e33651e3
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
using HH.WCS.JuShi.models;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace HH.WCS.JuShi.LISTA.models
{
    [SugarTable("TN_Location")]
    public class Location : BaseModel
    {
 
 
        public string S_WH_CODE { get; set; } = util.Settings.WHCode;
 
        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; }
        public string S_AGV_SITE { get; set; }
        public int N_CURRENT_NUM { get; set; }
        public DateTime? T_EMPTY_TIME { get; set; }
        public DateTime? T_FULL_TIME { get; set; }
        public string S_NOTE { get; set; }
        public int N_LENGTH { get; set; }
        public int N_WIDTH { get; set; }
        public int N_HEIGHT { get; set; }
        public int N_AGV_SITE_LAYER { get; set; }
        public int N_ROADWAY { get; set; }
        public int N_ROW { get; set; }
        public int N_COL { get; set; }
        public int N_LAYER { get; set; }
        public string S_TYPE { get; set; }
 
        /// <summary>
        /// 0无    1入库锁    2出库锁    3其它锁
        /// </summary>
        public string S_LOCK_STATE { get; set; }
        public int N_TYPE { get; set; }
        /// <summary>
        ///  0无    1入库锁    2出库锁    3其它锁
        /// </summary>
        public int N_LOCK_STATE { get; set; }
        public int N_PURPOSE { get; set; }
        public string S_PURPOSE { get; set; }
        public string C_ENABLE { get; set; }
        public string C_SAME_GOOD { get; set; }
        public string C_SAME_BATCH { get; set; }
        public string C_SPECIFY_ITEM { get; set; }
        public string S_ITEM_CODE { get; set; }
        public string S_ITEM_NAME { get; set; }
        public string S_LOCK_OP { get; set; }
        public string S_STATE_PRE { get; set; }
        public int N_REVIEW_RESULT { get; set; }
        /// <summary>
        /// 排组
        /// </summary>
        public int N_ROW_GROUP { get; set; }
        public int N_POS { get; set; }
        public string S_GROUP { get; set; }
 
        [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;
        }
    }
}