using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace EquipmentApi.Model.Dto
{
    public class EquipmentRunningDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 项目名称id
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 系统名称id
        /// </summary>
        public string sysnameid { get; set; }
        /// <summary>
        /// 设备名称id
        /// </summary>
        public string equipmentid { get; set; }
        /// <summary>
        /// 计划id
        /// </summary>
        public string planid { get; set; }
        /// <summary>
        /// 上次巡检时间
        /// </summary>
        public DateTime lastchecktime { get; set; }
        /// <summary>
        /// 本次巡检时间
        /// </summary>
        public DateTime thischeckime { get; set; }
        /// <summary>
        /// 上次巡检结果 1正常，0异常
        /// </summary>
        public int lastcheckresultid { get; set; } = 1;
        /// <summary>
        /// 异常说明
        /// </summary>
        public string abnormalcontent { get; set; } = "";
        /// <summary>
        /// 提交人 usercode
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime createtime { get; set; }
        /// <summary>
        /// 是否删除(0正常，-1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除人工号
        /// </summary>
        public string deleteby { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime deletetime { get; set; }
        /// <summary>
        /// 到期时间
        /// </summary>
        public DateTime expirytime { get; set; }
        /// <summary>
        /// 提前展示时长（分钟）
        /// </summary>
        public int advancelong { get; set; } = 0;
        #region 处理信息
        /// <summary>
        /// 巡检人 usercode
        /// </summary>
        public string checkby { get; set; } = "";
        /// <summary>
        /// 设备状态 1正常，0异常
        /// </summary> 
        public int quipmenttype { get; set; } = 1;
        /// <summary>
        /// 异常说明
        /// </summary>
        public string checkcontent { get; set; } = "";
        /// <summary>
        /// 巡检图片
        /// </summary>
        public List<FileBaseModel> checkpic { get; set; }
        /// <summary>
        /// 扩展字段 - 自定义
        /// </summary>
        public List<ExtensionModel> extensionlist { get; set; } = null;
        /// <summary>
        /// 任务状态:0创建工单，1已转派，3已处理，6挂起 
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 处理提交时间
        /// </summary>
        public DateTime dealtime { get; set; }
        /// <summary>
        /// 处理人 usercode
        /// </summary>
        public string dealby { get; set; } = "";
        #endregion
    }
}
