using HH.WCS.JiaTong.models; using SqlSugar; using System; namespace HH.WCS.JiaTong { /// /// 货位表 /// [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; } /// /// 货位状态 0无 1入库锁 2出库锁 3其它锁 /// public string S_LOCK_STATE { get; set; } public int N_TYPE { get; set; } /// /// 货位状态码 0无 1入库锁 2出库锁 3其它锁 /// 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; } /// /// 排组 /// 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; } } }