| #region << 版 本 注 释 >> | 
| /*---------------------------------------------------------------- | 
|  * 命名空间:WIDESEAWCS_Model.Models.TaskInfo | 
|  * 创建者:胡童庆 | 
|  * 创建时间:2024/8/2 16:13:36 | 
|  * 版本:V1.0.0 | 
|  * 描述: | 
|  * | 
|  * ---------------------------------------------------------------- | 
|  * 修改人: | 
|  * 修改时间: | 
|  * 版本:V1.0.1 | 
|  * 修改说明: | 
|  *  | 
|  *----------------------------------------------------------------*/ | 
| #endregion << 版 本 注 释 >> | 
|   | 
| using Magicodes.ExporterAndImporter.Core; | 
| using SqlSugar; | 
| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using WIDESEAWCS_Core.Attributes; | 
| using WIDESEAWCS_Core.DB.Models; | 
|   | 
| namespace WIDESEAWCS_Model.Models | 
| { | 
|     [SugarTable(nameof(Dt_Task), "任务信息"), SugarIndex("unique_task_taskNum", nameof(TaskNum), OrderByType.Asc, true)] | 
|     public class Dt_Task : BaseEntity | 
|     { | 
|         /// <summary> | 
|         /// 主键 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "主键")] | 
|         [ExporterHeader(DisplayName = "主键")] | 
|         [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] | 
|         public int TaskId { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 任务号 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务号")] | 
|         [ExporterHeader(DisplayName = "任务号")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "任务号")] | 
|         public int TaskNum { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 仓库主键 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "仓库主键")] | 
|         [ExporterHeader(DisplayName = "仓库主键")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "仓库主键")] | 
|         public int WarehouseId {  get; set; } | 
|   | 
|         /// <summary> | 
|         /// AGV任务号 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "AGV任务号")] | 
|         [ExporterHeader(DisplayName = "AGV任务号")] | 
|         [SugarColumn(IsNullable = true,Length =50, ColumnDescription = "AGV任务号")] | 
|         public string AgvTaskNum { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 托盘编号 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "托盘编号")] | 
|         [ExporterHeader(DisplayName = "托盘编号")] | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "托盘编号")] | 
|         public string PalletCode { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 托盘类型 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "托盘类型")] | 
|         public int PalletType { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 设备编号 | 
|         /// </summary> | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "设备编号")] | 
|         public string DeviceCode { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 巷道号 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "巷道号")] | 
|         [ExporterHeader(DisplayName = "巷道号")] | 
|         [SugarColumn(IsNullable = false, Length = 10, ColumnDescription = "巷道号")] | 
|         public string Roadway { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 任务类型 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务类型")] | 
|         [ExporterHeader(DisplayName = "任务类型")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "任务类型")] | 
|         public int TaskType { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 任务状态 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务状态")] | 
|         [ExporterHeader(DisplayName = "任务状态")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "任务状态")] | 
|         public int TaskState { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 起始地址 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "起始地址")] | 
|         [ExporterHeader(DisplayName = "起始地址")] | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "起始地址")] | 
|         public string SourceAddress { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 目标地址 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "目标地址")] | 
|         [ExporterHeader(DisplayName = "目标地址")] | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "目标地址")] | 
|         public string TargetAddress { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 当前位置 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "当前位置")] | 
|         [ExporterHeader(DisplayName = "当前位置")] | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "当前位置")] | 
|         public string CurrentAddress { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 下一地址 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "下一地址")] | 
|         [ExporterHeader(DisplayName = "下一地址")] | 
|         [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "下一地址")] | 
|         public string NextAddress { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 异常信息 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "异常信息")] | 
|         [ExporterHeader(DisplayName = "异常信息")] | 
|         [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "异常信息")] | 
|         public string? ExceptionMessage { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 优先级 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "优先级")] | 
|         [ExporterHeader(DisplayName = "优先级")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "优先级")] | 
|         public int Grade { get; set; } | 
|   | 
|         /// <summary> | 
|         /// WMS任务主键 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "WMS任务主键")] | 
|         [ExporterHeader(DisplayName = "WMS任务主键")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "WMS任务主键")] | 
|         public int WMSId { get; set; } | 
|         /// <summary> | 
|         /// 高度类型 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "高度类型")] | 
|         [ExporterHeader(DisplayName = "高度类型")] | 
|         [SugarColumn(IsNullable = false, ColumnDescription = "高度类型")] | 
|         public int HeightType { get; set; } | 
|         /// <summary> | 
|         /// 任务下发时间 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务下发时间")] | 
|         [ExporterHeader(DisplayName = "任务下发时间")] | 
|         [SugarColumn(IsNullable = true, ColumnDescription = "任务下发时间")] | 
|         public DateTime? Dispatchertime { get; set; } | 
|   | 
|         /// <summary> | 
|         /// 任务组 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务组")] | 
|         [ExporterHeader(DisplayName = "任务组")] | 
|         [SugarColumn(IsNullable = true, ColumnDescription = "任务组")] | 
|         public string GroupId { get; set; } | 
|         /// <summary> | 
|         /// 任务物料长度 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "任务物料长度")] | 
|         [ExporterHeader(DisplayName = "任务物料长度")] | 
|         [SugarColumn(IsNullable = true, ColumnDescription = "任务物料长度")] | 
|         public int TaskLength { get; set; } | 
|         /// <summary> | 
|         /// 备注 | 
|         /// </summary> | 
|         [ImporterHeader(Name = "备注")] | 
|         [ExporterHeader(DisplayName = "备注")] | 
|         [SugarColumn(IsNullable = true, Length = 255, ColumnDescription = "备注")] | 
|         public string Remark { get; set; } | 
|     } | 
| } |