using System; using SqlSugar; namespace HH.WCS.Mobox3.RiDong.models; /// /// 货位表 /// [SugarTable("TN_Location")] public class Location : BaseModel { /// /// 货位编码 /// [SugarColumn(IsPrimaryKey = true)] public string S_CODE { get; set; } /// /// 货位名称 /// public string S_NAME { get; set; } /// /// 仓库编码 /// public string S_WH_CODE { get; set; }=util.Settings.WHCode; /// /// 库区编码 /// public string S_AREA_CODE { 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; } /// /// 用途(1:存储位,2:站点位,3:入库接驳位,4:出库接驳位,5:理货位,6:分拣位) /// public string S_PURPOSE { get; set; } /// /// 用途(1:存储位,2:站点位,3:入库接驳位,4:出库接驳位,5:理货位,6:分拣位) /// public int N_PURPOSE { get; set; } /// /// 货位类型(1:常规,2:堆叠,3:流利,4:深位) /// public string S_TYPE { get; set; } /// /// 货位类型(1:常规,2:堆叠,3:流利,4:深位) /// public int N_TYPE { get; set; } /// /// 容量 /// public int N_CAPACITY { get; set; } /// /// 当前数量 /// public int N_CURRENT_NUM { get; set; } /// /// AGV站点 /// public string S_AGV_SITE { get; set; } /// /// AGV站点层 /// public int N_AGV_SITE_LAYER { get; set; } /// /// 启用 /// public char C_ENABLE { get; set; } /// /// 锁定状态(0:无锁,1:入库锁,2:出库锁,3:其他锁) /// public string S_LOCK_STATE { get; set; } /// /// 锁定状态(0:无锁,1:入库锁,2:出库锁,3:其他锁) /// public int N_LOCK_STATE { get; set; } /// /// 加锁原因 /// public string S_LOCK_OP { get; set; } /// /// 位置 /// public int N_POS { get; set; } /// /// 排组号 /// public int N_ROW_GROUP { get; set; } /// /// 深度 /// public int N_DEEP { get; set; } /// /// 分组 /// public string S_GROUP { 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_PRIORITY { 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; } }