| | |
| | | using SqlSugar; |
| | | |
| | | namespace HH.WCS.Mobox3.DSZSH.models { |
| | | /// <summary> |
| | | /// 【框架】货位表 |
| | | /// </summary> |
| | | |
| | | [SugarTable("TN_Location")] |
| | | public class TN_Location : BaseModel { |
| | | /// <summary> |
| | | /// 货位 ID |
| | | /// </summary> |
| | | public string S_CODE { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 货位名称 |
| | | /// </summary> |
| | | public string S_NAME { get; set; } = ""; |
| | | |
| | | /// <summary> |
| | | /// 货位所在区域 ID |
| | | /// </summary> |
| | | public string S_AREA_CODE { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 国自 AGV 对应的库位名称 |
| | | /// </summary> |
| | | public string S_AGV_SITE { get; set; } = "0"; |
| | | |
| | | /// <summary> |
| | | /// 货位容器容量 |
| | | /// </summary> |
| | | public int N_CAPACITY { get; set; } = 1; |
| | | |
| | | /// <summary> |
| | | /// 货位当前容器数量 |
| | | /// </summary> |
| | | public int N_CURRENT_NUM { get; set; } = 0; |
| | | |
| | | /// <summary> |
| | | /// 行号 |
| | | /// </summary> |
| | | public int N_ROW { get; set; } = 0; |
| | | |
| | | /// <summary> |
| | | /// 列号 |
| | | /// </summary> |
| | | public int N_COL { get; set; } = 0; |
| | | |
| | | /// <summary> |
| | | /// 货位的层数 |
| | | /// </summary> |
| | | public int N_LAYER { get; set; } = 1; |
| | | |
| | | // BEG 初始化表格使用 |
| | |
| | | /// </summary> |
| | | public string S_LOCK_OP { get; set; } = ""; |
| | | |
| | | /// <summary> |
| | | /// 货位是否启用:Y启用 |
| | | /// </summary> |
| | | public string C_ENABLE { get; set; } = "Y"; |
| | | |
| | | #region 非字段部分 |
| | | /// <summary> |
| | | /// 货位-容器 关系映射 |
| | | /// <!--默认不使用-->SqlSugar关系映射列表 |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// 默认是一对多,通常情况是一对一 |
| | | /// </remarks> |
| | | [Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))] |
| | | public List<TN_Loc_Container> LocCntrRels { get; set; } |
| | | |
| | |
| | | case 3: str = "其它锁"; break; |
| | | } |
| | | return str; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |