using System;
using System.Collections.Generic;
using System.Text;
using static Siger.Middlelayer.Share.Enum.ModuleEnum.Automation;

namespace Siger.Middlelayer.AccRepository.Entities
{
    /// <summary>
    /// 工装台账信息
    /// </summary>
    public class siger_automation_task_list : AccEntityBase
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        public string no { get; set; }

        /// <summary>
        /// 工装GUID
        /// </summary>
        public string fixtureguid { get; set; }
        /// <summary>
        /// 工装Name
        /// </summary>
        public string fixturename { get; set; }
        /// <summary>
        /// 工位ID
        /// </summary>
        public int sectionid { get; set; }
        /// <summary>
        /// 触发方式 产生TASK
        /// </summary>
        public TaskTrigerType trigger { get; set; }
        /// <summary>
        /// 任务类型 load ,unload
        /// </summary>
        public TaskActionType tasktype { get; set; }
        /// <summary>
        /// 工件ID
        /// </summary>
        public string sn { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        public string ordercode { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int productid { get; set; }
        /// <summary>
        /// 产品code
        /// </summary>
        public string productcode { get; set; }
        public string productname { get; set; }
        /// <summary>
        /// 工序ID
        /// </summary>
        public int processid { get; set; }
        /// <summary>
        /// 程序号
        /// </summary>
        public string programnumber { get; set; }
        /// <summary>
        /// 储位位置
        /// </summary>
        public int locationid { get; set; }
   

        /// <summary>
        /// Task 执行动作类型 1 手动 2 自动
        /// </summary>
        public ExcueType actiontype { get; set; }

        /// <summary>
        /// Task 动作执行
        /// </summary>
        public TaskAction action { get; set; }

        /// <summary>
        /// 是否已下发PLC  0:未下发 1:已下发
        /// </summary>
        public int send { get; set; }
      
        /// <summary>
        /// 触发时间
        /// </summary>
        public DateTime triggertime { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? completetime { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public int operater { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? operatetime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        public string extend1 { get; set; }
    }
}
