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; } /// /// ÍÐÅÌÀàÐÍ /// /// 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; } } }