杨前锦
2025-05-15 0de17c9615a32b1d83319121179e3f6b725b85c7
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
using HH.WCS.Mobox3.YNJT_BZP.models;
using SqlSugar;
using System;
using System.Collections.Generic;
 
namespace HH.WCS.Mobox3.YNJT_BZP {
    [SugarTable("TN_Container")]
    public class Container : BaseModel {
 
        [SugarColumn(IsPrimaryKey = true)]
        public string S_CODE { get; set; }
        public int N_TYPE { get; set; }  // 0.ĸÍÏ 1.´øÊø 2.Ì¥²à 3.BEC 4.ÄڳĠ5.Á±²¼ 6.̥Ȧ 
        public string S_TYPE { get; set; }
 
        public int N_DETAIL_COUNT { get; set; }
        public int N_B_STATE { get; set; }
        
 
        /// <summary>
        /// ÍÐÅÌÀàÐÍ
        /// </summary>
        /// <returns></returns>
        internal static string GetStateStr(int state)
        {
            var status = "";
            switch (state)
            {
                case 0: status = "ĸÍÏ"; break;
                case 1: status = "´øÊø"; break;
                case 2: status = "Ì¥²à"; break;
                case 3: status = "BEC"; break;
                case 4: status = "ÄÚ³Ä"; break;
                case 5: status = "Á±²¼"; break;
                case 6: status = "̥Ȧ"; break;
            }
            return status;
        }
 
        [SugarColumn(IsIgnore = true)]
        [Navigate(NavigateType.OneToOne, nameof(S_CODE))]
        public CntrItemRel CntrItemRel { get; set; }
    }
}