using DS.Module.Core;
using DS.Module.Core.Data;
using DS.Module.Core.Enums;
using SqlSugar;
namespace DS.WMS.ContainerManagement.Info.Entity;
///
/// 集装箱当前状态
///
[SqlSugar.SugarTable("CM_CurrentState", "箱管_当前状态")]
public class CM_CurrentState : BaseOrgModel
{
///
/// Desc:集装箱号
///
[SugarColumn(ColumnDescription = "集装箱号", IsNullable = false, Length = 20)]
public string Cntrno { get; set; }
///
/// 集装箱基础信息Id
///
[SqlSugar.SugarColumn(ColumnDescription = "集装箱基础信息Id", IsNullable = false, DefaultValue = "0")]
public long CtnBaseinfoId { get; set; }
/////
///// 箱型代码
/////
//[SqlSugar.SugarColumn(ColumnDescription = "箱型代码", Length = 10, IsNullable = true)]
//public string CtnCode { get; set; }
/////
///// Desc:箱型
/////
//[SugarColumn(ColumnDescription = "箱型", IsNullable = false, Length = 20)]
//public string Ctnall { get; set; }
///
/// 所属机构(公司)
///
[SugarColumn(ColumnDescription = "所属机构(公司)")]
public long? OrgId { get; set; }
///
/// Desc:新旧箱 空白/used/new
///
[SugarColumn(ColumnDescription = "新旧箱", IsNullable = true, Length = 20)]
public string UsedState { get; set; }
///
/// 箱主Id
///
[SqlSugar.SugarColumn(ColumnDescription = "箱主Id", IsNullable = true, DefaultValue = "0")]
public long CtnOwnerId { get; set; }
///
/// Desc:箱主 t_info_client CUSTNAME
///
[SugarColumn(ColumnDescription = "箱主", IsNullable = true, Length = 50)]
public string CtnOwner { get; set; }
///
/// Desc:箱来源Id: 自有箱/短租租入/长租租入/买箱
///
[SugarColumn(ColumnDescription = "箱来源Id", IsNullable = true, Length = 20)]
public CM_CtnSourceEnum? CtnSourceId { get; set; }
///
/// Desc:箱来源: 自有箱/短租租入/长租租入/买箱
///
//[SugarColumn(ColumnDescription = "箱来源", IsNullable = true, Length = 20)]
//public string CtnSource { get; set; }
///
/// Desc:箱业务状态id: 短租租出 长租租出 单程 卖箱
///
[SugarColumn(ColumnDescription = "箱业务状态Id", IsNullable = true)]
public CM_CtnBizStateEnum? CtnBizStateId { get; set; }
///
/// Desc:箱业务状态: 短租租出 长租租出 单程 卖箱
///
//[SugarColumn(ColumnDescription = "箱业务状态", IsNullable = true, DefaultValue = "")]
//public string CtnBizState { get; set; }
///
/// Desc:箱业务编号:当前
///
[SugarColumn(ColumnDescription = "箱业务编号", IsNullable = true, Length = 50)]
public string Billno { get; set; }
///
/// Desc:关联放箱单号
///
[SugarColumn(ColumnDescription = "关联放箱单号", IsNullable = true, Length = 50)]
public string CtnReleaseNo { get; set; }
///
/// Desc:箱状态Id
///
[SugarColumn(ColumnDescription = "箱状态Id", IsNullable = true)]
public CMCtnStateEnum? CtnStateId { get; set; }
///
/// Desc:箱流转状态Id
///
[SugarColumn(ColumnDescription = "箱流转状态Id", IsNullable = true)]
public CMCtnStateEnum? CtnFlowStateId { get; set; }
///
/// Desc:箱损坏/维修状态
///
[SugarColumn(ColumnDescription = "箱损坏/维修状态id", IsNullable = true)]
public CMCtnBreakStateEnum? CtnBreakStateId { get; set; }
///
/// Desc:是否上线id(是否管理中)
///
[SugarColumn(ColumnDescription = "是否上线id", IsNullable = true, DefaultValue = "0")]
public CM_IsOnlineEnum? IsOnlineId { get; set; } = 0;
///
/// Desc:是否上线(是否管理中)
///
//[SugarColumn(ColumnDescription = "是否上线", IsNullable = true, Length = 20)]
//public string IsOnline { get; set; }
///
/// Desc:空重箱
///
[SugarColumn(ColumnDescription = "空重箱", IsNullable = true, DefaultValue = "0")]
public bool? IsHeavy { get; set; } = false;
///
/// Desc:当前港口代码
///
[SugarColumn(ColumnDescription = "当前港口代码", IsNullable = true)]
public long? Portid { get; set; }
///
/// Desc:当前港口五字码
///
[SugarColumn(ColumnDescription = "当前港口五字码", IsNullable = true, Length = 10)]
public string PortCode { get; set; }
///
/// Desc:当前港口
///
[SugarColumn(ColumnDescription = "当前港口", IsNullable = true, Length = 50)]
public string Port { get; set; }
///
/// Desc:码头或场站
///
[SugarColumn(ColumnDescription = "码头或场站", IsNullable = true, Length = 50)]
public string Depot { get; set; }
///
/// Desc:运输工具
///
[SugarColumn(ColumnDescription = "运输工具", IsNullable = true, Length = 50)]
public string VehicleName { get; set; }
///
/// Desc:当前业务编号
///
[SugarColumn(ColumnDescription = "当前业务编号", IsNullable = true, Length = 50)]
public string Mblno { get; set; }
///
/// 委托单位Id
///
[SqlSugar.SugarColumn(ColumnDescription = "委托单位Id", IsNullable = true, DefaultValue = "0")]
public long CustomerId { get; set; }
///
/// 业务委托单位 t_info_client CUSTNAME
///
[SqlSugar.SugarColumn(ColumnDescription = "业务委托单位", IsNullable = true, Length = 50)]
public string CustomerName { get; set; }
///
/// Desc:ETD
///
[SugarColumn(ColumnDescription = "ETD", IsNullable = true)]
public DateTime? ETD { get; set; }
///
/// Desc:ETD
///
[SugarColumn(ColumnDescription = "ETA", IsNullable = true)]
public DateTime? ETA { get; set; }
///
/// Desc:状态时间
///
[SugarColumn(ColumnDescription = "状态时间", IsNullable = true)]
public DateTime? StateTime { get; set; }
}