using HH.WCS.Mobox3.DoubleCoin.models;
using SqlSugar;
using System;
using System.Collections.Generic;
namespace HH.WCS.Mobox3.DoubleCoin {
[SugarTable("TN_Location")]
public class TN_Location : BaseModel {
//[SugarColumn(IsPrimaryKey = true)]
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 int N_LAYER { 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 C_ENABLE { get; set; }
public string S_LOCK_OP { get; set; }
public string S_AGV_SITE2 { get; set; }
public string S_AGV_SITE3 { get; set; }
public string S_AGV_SITE4 { get; set; }
public string S_AGV_SITE5 { get; set; }
[Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))]
public List LocCntrRels { 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;
}
}
}