Log_Task .cs 3.29 KB
using RCS.Model.Comm;
using RCS.Model.Entity.PrimaryKey;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace RCS.Model.Entity
{
    [Table("t_log_task")]

    public class Log_Task :IdEntity
    {
        /// <summary>
        /// 任务ID
        /// </summary>
      //  public new int ID { get; set; }

        /// <summary>
        /// 任务号
        /// </summary>
        public string TaskNo { get; set; }

        /// <summary>
        /// 任务类型 例如 SMT-001
        /// </summary>
        public string TaskType { get; set; }

        /// <summary>
        /// 任务群组 例如 PCBA\FA
        /// </summary>
        public string? TaskGroup { get; set; }

        /// <summary>
        /// 任务开始分解序号
        /// </summary>
        [NotMapped]
        public int TaskSplitStep { get; set; }

        /// <summary>
        /// 主任务的任务等级
        /// </summary>
        public int TaskLevel { get; set; }

        /// <summary>
        /// 任务条码
        /// </summary>
        public string? TaskPallet { get; set; }

        /// <summary>
        /// 起始点
        /// </summary>
        public string? Initial { get; set; }

        /// <summary>
        /// 目标点
        /// </summary>
        public string? Target { get; set; }

        #region 接收数据库起点终点数据

        public string StartBarcode { get; set; }
        public string? EndBarcode { get; set; }

        #endregion 接收数据库起点终点数据

        /// <summary>
        /// 主任务的起点信息
        /// </summary>
        [NotMapped]
        public Base_Point StartPoint { get; set; }

        /// <summary>
        /// 主任务的终点信息
        /// </summary>
        [NotMapped]
        public Base_Point? EndPoint { get; set; }

        /// <summary>
        /// 任务的接收时间
        /// </summary>
        public DateTime? AcceptTime { get; set; }

        /// <summary>
        /// 指令发送中
        /// </summary>
        [NotMapped]
        public bool CommandSending { get; set; }

        /// <summary>
        /// 任务是否提交
        /// </summary>
        public bool IsSubmit { get; set; }

        /// <summary>
        /// 任务小车信息
        /// </summary>
        public string? TaskAgvNo { get; set; }

        /// <summary>
        /// 子任务集合
        /// </summary>
        [NotMapped]
        public ObservableCollection<Log_SubTask> LogSubTaskList { get; set; }

        /// <summary>
        /// 任务的开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 任务的结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 任务异常信息
        /// </summary>
        public string TaskErrMsg { get; set; }

        /// <summary>
        /// 方向
        /// </summary>
        public EnumMsg.Direction Direction { get; set; } = EnumMsg.Direction.无方向;

        /// <summary>
        /// 主任务状态
        /// </summary>
        public EnumMsg.TaskState TaskState { get; set; }

        /// <summary>
        /// 预测用的小车
        /// </summary>
        [NotMapped]
        public string PredictAgvNo { get; set; }

    }
}