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

namespace EquipmentApi.Model.Input
{
    public class WoMaintainBaseInput
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";

        /// <summary>
        /// 保养计划
        /// </summary>
        public string plan { get; set; } = "";
        /// <summary>
        /// 项目名称
        /// </summary>
        public string proname { get; set; } = "";
        /// <summary>
        /// 检查事项
        /// </summary>
        public string[] matterids { get; set; }
        ///// <summary>
        ///// 系统名称
        ///// </summary>
        //public string sysname { get; set; } = "";

        ///// <summary>
        ///// 设备名称
        ///// </summary>
        //public string[] equipname { get; set; }
        /// <summary>
        /// 工单开始时间
        /// </summary>
        public DateTime starttime { get; set; }
        /// <summary>
        /// 工单结束时间
        /// </summary>
        public DateTime endtime { get; set; }
        /// <summary>
        /// 上次保养时间
        /// </summary>
        public DateTime lastmaintaintime { get; set; }

        /// <summary>
        /// 上次保养结果
        /// </summary>
        public int lastmaintainresult { get; set; } = 0;
        /// <summary>
        /// 上次保养类别
        /// </summary>
        public List<string> lastmaintaintype { get; set; }

        /// <summary>
        /// 本次保养时间
        /// </summary>
        public DateTime maintaintime { get; set; }
        /// <summary>
        /// 工单名称
        /// </summary>
        public string woname { get; set; } = "";
        /// <summary>
        /// 保养内容
        /// </summary>
        public string maintaincontent { get; set; } = "";
        /// <summary>
        /// 保养要求
        /// </summary>
        public string maintainclim { get; set; } = "";
        /// <summary>
        /// 本次保养类别
        /// </summary>
        public List<string> timemaintaintype { get; set; }
        #region 处理信息
        /// <summary>
        /// 保养单位
        /// </summary>
        public string maintainunit { get; set; } = "";

        /// <summary>
        /// 保养人
        /// </summary>
        //public string maintainman { get; set; } = "";
        public List<string> maintainuser { get; set; }

        /// <summary>
        /// 保养类别
        /// </summary>
        public List<string> maintaintype { get; set; } = null;

        /// <summary>
        /// 更换说明
        /// </summary>
        public string replacedes { get; set; } = "";

        /// <summary>
        /// 保养图片
        /// </summary>
        public List<FileBaseModel> maintainpic { get; set; } = null;
        /// <summary>
        /// 扩展字段 - 自定义
        /// </summary>
        public List<ExtensionFileModel> extensionlist { get; set; } = null;
        /// <summary>
        /// 设备状态 0正常，1异常
        /// </summary>
        public int equipstate { get; set; } = 0;

        /// <summary>
        /// 异常说明
        /// </summary>
        public string exceptiondes { get; set; } = "";

        /// <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; } = "";
        public List<string> dealuser { get; set; }
        #endregion
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime createtime { get; set; }

        /// <summary>
        /// 提交人
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isdelete { get; set; } = false;
        #region 计划中只能传string，所以另外单独出来字段
        public string timemaintaintype1 { get; set; } = "";
        #endregion
    }
}
