|
@@ -10,11 +10,13 @@ namespace WCS.Entity
|
|
|
[SugarTable(nameof(WCS_TaskInfo), "任务表")]
|
|
|
public class WCS_TaskInfo
|
|
|
{
|
|
|
+ #region 任务基本信息
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// ID
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsPrimaryKey = true, ColumnDescription = "ID")]
|
|
|
- public virtual int ID { get; set; }
|
|
|
+ [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "ID")]
|
|
|
+ public int ID { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 生产编码
|
|
@@ -46,12 +48,6 @@ namespace WCS.Entity
|
|
|
[SugarColumn(ColumnDescription = "目标地址", Length = 20)]
|
|
|
public string AddrTo { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 最后一个交互点
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "最后一个交互点", Length = 20, IsNullable = true)]
|
|
|
- public string LastInteractionPoint { get; set; }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 下一个地址
|
|
|
/// </summary>
|
|
@@ -76,6 +72,12 @@ namespace WCS.Entity
|
|
|
[SugarColumn(ColumnDescription = "设备", Length = 20, IsNullable = true)]
|
|
|
public string Device { get; set; }
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 最后一个交互点
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "最后一个交互点", Length = 20, IsNullable = true)]
|
|
|
+ public string LastInteractionPoint { get; set; }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 堆垛机放货站台
|
|
|
/// </summary>
|
|
@@ -83,40 +85,49 @@ namespace WCS.Entity
|
|
|
public string SrmStation { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 创建时间
|
|
|
- /// 新增数据时自动获取服务器时间
|
|
|
+ /// 客户现场的机台/产线编号
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
|
|
|
- public DateTime AddTime { get; set; }
|
|
|
+ [SugarColumn(ColumnDescription = "客户现场的机台/产线编号", IsNullable = true)]
|
|
|
+ public string WorkBench { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 开始时间
|
|
|
+ /// 仓库编号
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "开始时间", IsNullable = true)]
|
|
|
- public DateTime? StartTime { get; set; }
|
|
|
+ [SugarColumn(ColumnDescription = "仓库编号", IsNullable = true)]
|
|
|
+ public string WarehouseCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 结束时间
|
|
|
+ /// WMS任务号
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "结束时间", IsNullable = true)]
|
|
|
- public DateTime? EedTime { get; set; }
|
|
|
+ [SugarColumn(ColumnDescription = "WMS任务号")]
|
|
|
+ public int WmsTask { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 单号
|
|
|
+ /// 任务组ID
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "任务组ID", IsNullable = true)]
|
|
|
+ public string TaskGroupKey { get; set; }
|
|
|
+
|
|
|
+ #endregion 任务基本信息
|
|
|
+
|
|
|
+ #region 码垛信息
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 码垛单号
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "单号", IsNullable = true)]
|
|
|
public int DocID { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 托盘类型
|
|
|
+ /// 码垛托盘类型
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "托盘类型", IsNullable = true)]
|
|
|
public short PalletType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 产线
|
|
|
+ /// 码垛工位
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "产线", IsNullable = true)]
|
|
|
+ [SugarColumn(ColumnDescription = "码垛工位", IsNullable = true)]
|
|
|
public short ProdLine { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -125,6 +136,10 @@ namespace WCS.Entity
|
|
|
[SugarColumn(ColumnDescription = "满盘数量", IsNullable = true)]
|
|
|
public short FullQty { get; set; }
|
|
|
|
|
|
+ #endregion 码垛信息
|
|
|
+
|
|
|
+ #region 外形信息
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 高度
|
|
|
/// </summary>
|
|
@@ -138,16 +153,56 @@ namespace WCS.Entity
|
|
|
public float Weight { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// WMS任务号
|
|
|
+ /// 长度
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "WMS任务号")]
|
|
|
- public int WmsTask { get; set; }
|
|
|
+ [SugarColumn(ColumnDescription = "产品长度", IsNullable = true)]
|
|
|
+ public decimal Length { get; set; }
|
|
|
+
|
|
|
+ #endregion 外形信息
|
|
|
+
|
|
|
+ #region 操作时间与用户
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 任务组ID
|
|
|
+ /// 创建时间
|
|
|
+ /// 新增数据时自动获取服务器时间
|
|
|
/// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "任务组ID", IsNullable = true)]
|
|
|
- public string TaskGroupKey { get; set; }
|
|
|
+ [SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
|
|
|
+ public DateTime AddTime { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 创建用户
|
|
|
+ /// 仅记录用户ID
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "创建用户", Length = 50)]
|
|
|
+ public string AddWho { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 开始时间
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "开始时间", IsNullable = true)]
|
|
|
+ public DateTime? StartTime { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 更新用户
|
|
|
+ /// 仅记录用户ID
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "更新用户", Length = 50, IsNullable = true)]
|
|
|
+ public string EditWho { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 更新时间
|
|
|
+ /// 更新数据时自动获取服务器时间
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "更新时间", UpdateServerTime = true, IsNullable = true)]
|
|
|
+ public DateTime EditTime { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 结束时间
|
|
|
+ /// </summary>
|
|
|
+ [SugarColumn(ColumnDescription = "结束时间", IsNullable = true)]
|
|
|
+ public DateTime? EedTime { get; set; }
|
|
|
+
|
|
|
+ #endregion 操作时间与用户
|
|
|
|
|
|
/// <summary>
|
|
|
/// 更新状态
|
|
@@ -179,12 +234,6 @@ namespace WCS.Entity
|
|
|
[SugarColumn(ColumnDescription = "手动处理备注", IsNullable = true)]
|
|
|
public string ManualRemarks { get; set; }
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 产品长度
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "产品长度", IsNullable = true)]
|
|
|
- public decimal Length { get; set; }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 产品编码
|
|
|
/// </summary>
|
|
@@ -197,27 +246,6 @@ namespace WCS.Entity
|
|
|
[SugarColumn(ColumnDescription = "是否可用")]
|
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 创建用户
|
|
|
- /// 仅记录用户ID
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "创建用户", Length = 50)]
|
|
|
- public string AddWho { get; set; }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 更新用户
|
|
|
- /// 仅记录用户ID
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "更新用户", Length = 50, IsNullable = true)]
|
|
|
- public string EditWho { get; set; }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 更新时间
|
|
|
- /// 更新数据时自动获取服务器时间
|
|
|
- /// </summary>
|
|
|
- [SugarColumn(ColumnDescription = "更新时间", UpdateServerTime = true, IsNullable = true)]
|
|
|
- public DateTime EditTime { get; set; }
|
|
|
-
|
|
|
/// <summary>
|
|
|
/// 版本号
|
|
|
/// </summary>
|