Config_TaskSplit.cs 1.75 KB
using RCS.Model.Comm;
using RCS.Model.Entity.PrimaryKey;
using System.ComponentModel.DataAnnotations.Schema;
using static RCS.Model.Comm.EnumMsg;

namespace RCS.Model.Entity
{
    /// <summary>
    /// 任务拆解规则
    /// </summary>
    [Table("t_config_tasksplit")]
    public class Config_TaskSplit : IdEntity, ICloneable
    {
        private TaskStage taskStage;

        /// <summary>
        /// 任务ID
        /// </summary>
        public string TaskType { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public int SerialNo { get; set; }

        /// <summary>
        /// 小车动作类型
        /// </summary>
        public EnumMsg.ActionType AgvTaskType { get; set; }

        /// <summary>
        /// 起点依据
        /// </summary>
        public EnumMsg.ConfigToFromPoint FromPoint { get; set; }

        /// <summary>
        /// 终点依据
        /// </summary>
        public EnumMsg.ConfigToFromPoint ToPoint { get; set; }

        /// <summary>
        /// 是否询问
        /// </summary>
        public EnumMsg.RequestType TaskRequestType { get; set; }

        /// <summary>
        /// 任务是否携带货架
        /// </summary>
        public bool IsCarry { get; set; }

        /// <summary>
        /// 等待点等待时间
        /// </summary>
        public int WaitTime { get; set; }

        /// <summary>
        /// 指定升降高度
        /// </summary>
        public ushort Height { get; set; }

        public EnumMsg.TaskStage TaskStage
        {
            get => taskStage;
            set { taskStage = value; }
        }
        public object Clone()
        {
            return this.MemberwiseClone();
        }

        //public string? TaskGroup { get; set; }
    }
}