using SqlSugar;
using System;
using System.Collections.Generic;
namespace WCS.Entity
{
///
/// 码垛信息记录主表
///
[SugarTable(nameof(WCS_Palletizing), "码垛信息主表")]
public class WCS_Palletizing
{
///
/// Id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "ID")]
public int Id { get; set; }
///
/// 任务Id
///
[SugarColumn(IsNullable = false, ColumnDescription = "任务Id")]
public int TaskId { get; set; }
///
/// 任务
///
[Navigate(NavigateType.OneToOne, nameof(TaskId))]
public WCS_TaskInfo? TaskInfo { get; set; }
///
/// 触发任务的下一个地址
///
[SugarColumn(IsNullable = true, ColumnDescription = "触发任务的下一个地址")]
public string TaskAddNext { get; set; }
///
/// 托盘条码
///
[SugarColumn(IsNullable = true, ColumnDescription = "任务Id")]
public string PalleCode { get; set; }
///
/// 垛型编码
///
[SugarColumn(IsNullable = false, ColumnDescription = "垛型编码")]
public string Code { get; set; }
///
/// 短垛型编码
///
[SugarColumn(IsNullable = false, ColumnDescription = "短垛型编码")]
public short ShortCode { get; set; }
///
/// 帘线物料编码
///
[SugarColumn(IsNullable = false, ColumnDescription = "帘线物料编码")]
public string ProMaterCode { get; set; }
///
/// 绑定的码垛工位
///
[SugarColumn(IsNullable = true, ColumnDescription = "码垛工位")]
public string? PalletizingStation { get; set; }
///
/// 产品总数
///
[SugarColumn(IsNullable = false, ColumnDescription = "产品总数")]
public int CountQty { get; set; }
///
/// 托盘类型
///
[SugarColumn(IsNullable = false, ColumnDescription = "托盘类型")]
public string TpTypeCode { get; set; }
///
/// 层数
///
[SugarColumn(IsNullable = false, ColumnDescription = "层数")]
public int LayerCountQty { get; set; }
///
/// 层信息
///
[Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLayer.PalletizingId))]
public List Layers { get; set; }
///
/// 位信息
///
[Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLoc.PalletizingId))]
public List Locs { get; set; }
///
/// 垛型大类
///
[SugarColumn(IsNullable = false, ColumnDescription = "垛型大类")]
public int StampType { get; set; }
///
/// 是否结束
///
[SugarColumn(IsNullable = false, ColumnDescription = "是否结束")]
public bool Finish { get; set; }
///
/// 是否二次绑盘
///
[SugarColumn(IsNullable = true, ColumnDescription = "是否二次绑盘")]
public bool isItHalf { get; set; }
///
/// 当前所有的物料号
///
[SugarColumn(IsNullable = true, ColumnDescription = "当前所有的物料号")]
public string MatCodeList { get; set; }
///
/// 仓库编号
///
[SugarColumn(ColumnDescription = "仓库编号", IsNullable = true)]
public string WarehouseCode { get; set; }
///
/// 执行设备编号,桁架/机械手/、、、
///
[SugarColumn(ColumnDescription = "执行设备编号", IsNullable = true)]
public string DeviceCode { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = false, ColumnDescription = "创建时间")]
public DateTime AddTime { get; set; }
///
/// 编辑时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "编辑时间")]
public DateTime EditTime { get; set; }
}
}