using HH.WCS.Mobox3.FJJT.models;
using SqlSugar;
using System;
using System.Collections.Generic;
namespace HH.WCS.Mobox3.FJJT {
[SugarTable("TN_Container")]
public class Container : BaseModel {
public string S_CODE { get; set; }
public string S_TYPE { get; set; } // 1.Ì¥Ãæ;2.Ì¥²à;3.ÄÚ³Ä;4.Á±²¼;5.»·´ø;6.¹Ú´ø;7.¸Ö°ü
public string S_SPEC { get; set; }
public float F_WEIGHT { get; set; }
public int N_LENGTH { get; set; }
public int N_WIDTH { get; set; }
public int N_HEIGHT { get; set; }
public string C_IS_VIRTUAL { get; set; } = "N";
public int N_TYPE { get; set; }
public string C_ENABLE { get; set; } = "Y";
public string S_STATE_PRE { get; set; }
public int N_REVIEW_RESULT { get; set; }
public int N_DETAIL_COUNT { get; set; }
public int N_B_STATE { get; set; }
public string S_LOCK_OP_CODE { get; set; }
public string S_LOCK_STATE { get; set; }
public int N_LOCK_STATE { get; set; }
///
/// ÂëÅÌʱºò±ê¼Ç
///
public string S_SRC { get; internal set; }
public string S_DEST { get; internal set; }
// --------------------¸£½¨¼Ñͨ-----------------
public int N_E_STATE { get; set; } = 0; // ÍÐÅÌÒ쳣״̬ 0.ĬÈÏ 1.WCS¶ÁÂëÒì³£ 2.AGV¶ÁÂëÆ÷¶ÁÂëÒì³£ 3.δ²éѯµ½RFIDµÄMESÈÎÎñ 4.RFIDÓëÈÎÎñRFID²»Ò»Ö 5.ÍÐÅÌÎïÁϲ»ºÏ¸ñ
public string S_ERR_DESC { get; internal set; } // Òì³£ÃèÊö
///
/// »ñÈ¡ÈÝÆ÷ÀàÐÍstring
/// cntrType: 1.Ì¥Ãæ;2.Ì¥²à;3.ÄÚ³Ä;4.Á±²¼;5.»·´ø;6.¹Ú´ø;7.¸Ö°ü
///
///
///
internal static string GetCntrType(int cntrType)
{
var str = "";
switch (cntrType)
{
case 1: str = "Ì¥Ãæ"; break;
case 2: str = "Ì¥²à"; break;
case 3: str = "ÄÚ³Ä"; break;
case 4: str = "Á±²¼"; break;
case 5: str = "»·´ø"; break;
case 6: str = "¹Ú´ø"; break;
case 7: str = "¸Ö°ü"; break;
case 8: str = "Òì³£ÍÐÅÌ"; break;
}
return str;
}
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToMany, nameof(CntrItemRel.S_CNTR_CODE), nameof(S_CODE))]
public List CntrItemRels { get; set; }
}
}