FTask.cs 4.36 KB
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XingYe_ACS.BaseStruct
{
    [ImplementPropertyChanged]
    public class FTask
    {
        /// <summary>
        /// 任务号
        /// </summary>
        public string strTaskNo { get; set; }

        /// <summary>
        /// 任务ID 例如 SMT-001
        /// </summary>
        public string strTaskID { get; set; }

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

        /// <summary>
        /// 任务名称 例如 PCBA-SMT原材料-SW01-AS1-SMT01
        /// </summary>
        public string strTaskName { get; set; }

        /// <summary>
        /// 任务类型 例如SMT原材料
        /// </summary>
        public string strTaskType { get; set; }

        /// <summary>
        /// 小车类型
        /// </summary>
        public EnumMsg.AreaType agvType { get; set; }

        /// <summary>
        /// 任务开始分解序号
        /// </summary>
        public int intTaskSplitStep { get; set; }

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

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

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

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

        /// <summary>
        /// 主任务的起点信息
        /// </summary>
        public Point startPoint { get; set; }

        /// <summary>
        /// 主任务的终点信息
        /// </summary>
        public Point endPoint { get; set; }

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

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

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

        /// <summary>
        /// 子任务集合
        /// </summary>
        public ObservableCollection<SonTask> sonTaskList { get; set; }

        /// <summary>
        /// 任务的开始时间
        /// </summary>
        public string strBeginTime { get; set; }

        /// <summary>
        /// 任务的结束时间
        /// </summary>
        public string strEndTime { get; set; }

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

        /// <summary>
        /// 方向
        /// </summary>
        public EnumMsg.OriDial direction { get; set; }

        /// <summary>
        /// 主任务状态
        /// </summary>
        public string taskState { get; set; }

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


        /// <summary>
        /// 任务停止标志
        /// </summary>
        public int taskStopSign { get; set; }

        /// <summary>
        /// 任务停止时间
        /// </summary>
        public DateTime taskStopTime { get; set; }

    }
    /// <summary>
    /// 任务状态改变
    /// </summary>
    public class WebApiTask
    {
        #region webApi调用
        /**
         * 
         * {"TaskNo":"DC202104210010","TaskGroup":"","AgvNo":"","BeginBarcode":"1","EndBarcode":"21","Status":"0"}
         */
        /// <summary>
        /// 任务号
        /// </summary>
        public string TaskNo { get; set; }
        /// <summary>
        /// 任务群组
        /// </summary>
        public string TaskGroup { get; set; }
        /// <summary>
        /// 任务号
        /// </summary>
        public string AgvNo { get; set; }
        /// <summary>
        /// 起点
        /// </summary>
        public string BeginBarcode { get; set; }
        /// <summary>
        /// 终点
        /// </summary>
        public string EndBarcode { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public string TaskType { get; set; }
        #endregion
    }
}