杨前锦
2025-05-15 a1c61b374f66bca12c27872685ff37a33366efb4
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
using HH.WCS.Mobox3.FJJT.models;
using SqlSugar;
using System;
using System.Collections.Generic;
 
namespace HH.WCS.Mobox3.FJJT {
    [SugarTable("TN_Container")]
    public class Container : BaseModel {
 
 
        public string S_CODE { get; set; }
        public string S_TYPE { get; set; }  // 1.Ì¥Ãæ;2.Ì¥²à;3.ÄÚ³Ä;4.Á±²¼;5.»·´ø;6.¹Ú´ø;7.¸Ö°ü
        public string S_SPEC { get; set; }
        public float F_WEIGHT { get; set; }
        public int N_LENGTH { get; set; }
        public int N_WIDTH { get; set; }
        public int N_HEIGHT { get; set; }
        public string C_IS_VIRTUAL { get; set; } = "N";
        public int N_TYPE { get; set; }
        public string C_ENABLE { get; set; } = "Y";
        public string S_STATE_PRE { get; set; }
        public int N_REVIEW_RESULT { get; set; }
 
        public int N_DETAIL_COUNT { get; set; }
        public int N_B_STATE { get; set; }
        public string S_LOCK_OP_CODE { get; set; }
        public string S_LOCK_STATE { get; set; }
        public int N_LOCK_STATE { get; set; }
        /// <summary>
        /// ÂëÅÌʱºò±ê¼Ç
        /// </summary>
        public string S_SRC { get; internal set; }
        public string S_DEST { get; internal set; }
 
        // --------------------¸£½¨¼Ñͨ-----------------
        public int N_E_STATE { get; set; } = 0;  // ÍÐÅÌÒ쳣״̬  0.ĬÈÏ 1.WCS¶ÁÂëÒì³£ 2.AGV¶ÁÂëÆ÷¶ÁÂëÒì³£ 3.δ²éѯµ½RFIDµÄMESÈÎÎñ 4.RFIDÓëÈÎÎñRFID²»Ò»Ö 5.ÍÐÅÌÎïÁϲ»ºÏ¸ñ
        public string S_ERR_DESC { get; internal set; } // Òì³£ÃèÊö
 
 
        /// <summary>
        /// »ñÈ¡ÈÝÆ÷ÀàÐÍstring
        ///  cntrType: 1.Ì¥Ãæ;2.Ì¥²à;3.ÄÚ³Ä;4.Á±²¼;5.»·´ø;6.¹Ú´ø;7.¸Ö°ü
        /// </summary>
        /// <param name="cntrType"></param>
        /// <returns></returns>
        internal static string GetCntrType(int cntrType)
        {
            var str = "";
            switch (cntrType)
            {
                case 1: str = "Ì¥Ãæ"; break;
                case 2: str = "Ì¥²à"; break;
                case 3: str = "ÄÚ³Ä"; break;
                case 4: str = "Á±²¼"; break;
                case 5: str = "»·´ø"; break;
                case 6: str = "¹Ú´ø"; break;
                case 7: str = "¸Ö°ü"; break;
                case 8: str = "Òì³£ÍÐÅÌ"; break;
            }
            return str;
        }
 
        [SugarColumn(IsIgnore = true)]
        [Navigate(NavigateType.OneToMany, nameof(CntrItemRel.S_CNTR_CODE), nameof(S_CODE))]
        public List<CntrItemRel> CntrItemRels { get; set; }
    }
}