using System.Collections.Generic;
using SqlSugar;
namespace HH.WCS.Mobox3.DSZSH.models {
[SugarTable("TN_Location")]
public class TN_Location : BaseModel {
public string S_CODE { get; set; }
public string S_NAME { get; set; } = "";
public string S_AREA_CODE { get; set; }
public string S_AGV_SITE { get; set; } = "0";
public int N_CAPACITY { get; set; } = 1;
public int N_CURRENT_NUM { get; set; } = 0;
public int N_ROW { get; set; } = 0;
public int N_COL { get; set; } = 0;
public int N_LAYER { get; set; } = 1;
// BEG 初始化表格使用
public int N_ROW_GROUP { get; set; } = 0;
public int N_POS { get; set; } = 1;
public int N_DEEP { get; set; } = 1;
public int N_ROADWAY { get; set; } = 1;
public string S_PURPOSE { get; set; } = "存储";
public string S_TYPE { get; set; } = "常规";
public string S_WH_CODE { get; set; } = "DSZSH";
// END
///
/// 上锁状态号:0无 1入库锁 2出库锁 3其它锁
///
public int N_LOCK_STATE { get; set; } = 0;
///
/// 上锁状态名称:0无 1入库锁 2出库锁 3其它锁
///
public string S_LOCK_STATE { get; set; } = "无";
///
/// Lock Operator:上锁的操作来源 (通常是任务号)
///
public string S_LOCK_OP { get; set; } = "";
public string C_ENABLE { get; set; } = "Y";
#region 非字段部分
///
/// SqlSugar关系映射列表
///
[Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))]
public List LocCntrRels { get; set; }
public 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;
}
#endregion
}
}