namespace Siger.Middlelayer.TpmRepository.Request
{
    public class RequestSubmitRepair
    {
        public int machineid { get; set; }

        /// <summary>
        /// 故障类型
        /// </summary>
        public int faultid { get; set; }

        /// <summary>
        /// 失效模式
        /// </summary>
        public int real_faultid { get; set; }

        //是否停线 0=>未停线 1=>停线
        public int offlinestatus { get; set; }

        public string remark { get; set; }

        public string images { get; set; }
        public string work_order { get; set; }
        public int expection_id { get; set; }
    }

    public class RequestSubmitRepairFeedback
    {
        /// <summary>
        /// 合作维修人
        /// </summary>
        public string add_repairmid { get; set; }

        public int repairid { get; set; }

        /// <summary>
        /// 失效原因id
        /// </summary>
        public string fault_description { get; set; }

        /// <summary>
        /// 修复行动id
        /// </summary>
        public string repair_process { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string repair_remark { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string fault_desc_img { get; set; }

        /// <summary>
        /// 失效模式id
        /// </summary>
        public int real_faultid { get; set; }

        /// <summary>
        /// 0=>非编辑提交 1=>是编辑提交
        /// </summary>
        public int edit_repair { get; set; }

        public string cost { get; set; }

        public int machineid { get; set; } = 0;
    }

    public class RequestEditRepairFeedback
    {
        public int repairid { get; set; }

        /// <summary>
        /// 故障描述
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 排查过程
        /// </summary>
        public string process { get; set; }

        /// <summary>
        /// 维修备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 故障原因
        /// </summary>
        public string reason { get; set; }

        /// <summary>
        /// 所用配件
        /// </summary>
        public string sparepart { get; set; }
    }
}

