using System.Collections.Generic;
using System.Linq;

namespace Siger.Middlelayer.Repository.Response
{
    public class ResponseRepairWorkCount
    {
        public string title { get; set; }
        /// <summary>
        /// 接单
        /// </summary>
        public int handle { get; set; }
        public int handle_count { get; set; }
        /// <summary>
        /// 签到
        /// </summary>
        public int sign { get; set; }
        public int sign_count { get; set; }
        /// <summary>
        /// 维修完成
        /// </summary>
        public int complete { get; set; }
        public int complete_count { get; set; }
        /// <summary>
        /// 维护新增
        /// </summary>
        public int plan_add { get; set; }
        /// <summary>
        /// 维护完成
        /// </summary>
        public int plan_complete { get; set; }
        /// <summary>
        /// 备件流动
        /// </summary>
        public int sparepart { get; set; }
    }
    public class TempRepairData
    {
        public string add_repairmid { get; set; }
        public List<string> mids { get { return add_repairmid.Split(',').ToList(); } }
        public int count { get { return mids?.Count + 1 ?? 1; } }
    }

    public class TempRepairList
    {
        public int id { get; set; }
        /// <summary>
        /// 异常类型
        /// </summary>
        public int excptype { get; set; }
        /// <summary>
        /// 异常类型岗位
        /// </summary>
        public string typeStation { get; set; }
        public int creatmid { get; set; }
        public int takemid { get; set; }
        public int signmid { get; set; }
        public int complatemid { get; set; }
        public int status { get; set; }
        public string SignStation { get; set; }

    }
}
