using System;
using System.Collections.Generic;
using System.Text;

namespace EquipmentApi.Model.Dto
{
    /// <summary>
    /// 报修统计详情统计
    /// </summary>
    public class Wo_Repair_BaseDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        ///// <summary>
        ///// 项目名称
        ///// </summary>
        //public string proname { get; set; } = "";
        ///// <summary>
        ///// 设备名称
        ///// </summary>
        //public string equipname { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理，4已评价，5已取消 ,6挂起
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 工单状态: 0未完成 1已完成
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int isfinish { get; set; } = 0;
        public string floorname { get; set; }
    }

    /// <summary>
    /// 设备状态详情统计
    /// </summary>
    public class Wo_Repair_BaseEquDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string proname { get; set; } = "";
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipname { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理，4已评价，5已取消 ,6挂起
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 工单状态: 0未完成 1已完成
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int isfinish { get; set; } = 0;
        public string floorname { get; set; }
    }

    /// <summary>
    /// 满意度统计详情统计
    /// </summary>
    public class Wo_Repair_BaseEvaluateDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        public int issatisfied { get; set; } = 0;
        /// <summary>
        /// 设备名称
        /// </summary>
        public string equipname { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理，4已评价，5已取消 ,6挂起
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int wostate { get; set; } = 0;
    }

    /// <summary>
    /// 满意度统计详情统计 - 项目主管
    /// </summary>
    public class Wo_User_AccountEvaluateDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 用户工号
        /// </summary>
        public string usercode { get; set; } = "";
        /// <summary>
        /// 用户名称
        /// </summary>
        public string username { get; set; } = "";
        ///// <summary>
        ///// 项目id
        ///// </summary>
        //public string projectid { get; set; }
        ///// <summary>
        ///// 项目
        ///// </summary>
        //public string projectname { get; set; }
        /// <summary>
        /// 满意
        /// </summary>
        public int satisfied { get; set; }
        /// <summary>
        /// 不满意
        /// </summary>
        public int nosatisfied { get; set; }
        ///// <summary>
        ///// 满意率
        ///// </summary>
        //public string satisfiedrate { get; set; }
        ///// <summary>
        ///// 不满意率
        ///// </summary>
        //public string nosatisfiedrate { get; set; }
    }

    /// <summary>
    /// 维修及时率统计详情
    /// </summary>
    public class Wo_Repair_BaseRepaireTimeDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理，4已评价，5已取消 ,6挂起
        /// 注释：已转派和已抢单均为已接单，已评价和已取消的均为完结工单
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 2小时内
        /// </summary>
        public int istwohour { get; set; } = 0;
        /// <summary>
        /// 4小时内
        /// </summary>
        public int isfourhour { get; set; } = 0;
        /// <summary>
        /// 8小时内
        /// </summary>
        public int iseighthour { get; set; } = 0;
        /// <summary>
        /// 24小时内
        /// </summary>
        public int istfourhour { get; set; } = 0;
        /// <summary>
        /// 24小时以上
        /// </summary>
        public int istfouruphour { get; set; } = 0;
    }
    /// <summary>
    /// 巡检详情统计
    /// </summary>
    public class Wo_Running_BaseDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理
        /// 注释：已转派和已抢单均为已接单
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 工单状态: 0未完成 1已完成
        /// 注释：已转派和已抢单均为已接单
        /// </summary>
        public int isfinish { get; set; } = 0;
        /// <summary>
        /// 设备状态：0正常，1异常
        /// </summary>
        public int isnormal { get; set; } = 0;
    }
    /// <summary>
    /// 保养详情统计
    /// </summary>
    public class Wo_Maintain_ChartDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        public string projectid { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string wocode { get; set; } = "";
        /// <summary>
        /// 工单状态:0创建工单，1已转派，2已抢单，3已处理
        /// 注释：已转派和已抢单均为已接单
        /// </summary>
        public int wostate { get; set; } = 0;
        /// <summary>
        /// 工单状态: 0未完成 1已完成
        /// 注释：已转派和已抢单均为已接单
        /// </summary>
        public int isfinish { get; set; } = 0;
        /// <summary>
        /// 设备状态：0正常，1异常
        /// </summary>
        public int isnormal { get; set; } = 0;
    }
}
