using Siger.Middlelayer.Common.ModuleEnum;
using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.ToolRepository.Response
{
    public class ResponMoniterDisplay
    {
        public ReponseMoniterDashboardTotal Total { get; set; }
        public List<ReponseMoniterDashboard> Machine { get; set; }
    }
    public class ReponseMoniterDashboard
    {
        public int SectionId { get; set; }
        public int MachineId { get; set; }
        public string MachineName { get; set; }
        public string Progam { get; set; }
        public string Setionlist { get; set; }


        public List<ReponseMoniterDashboardTools>Tools { get; set; }
    }
 
    public class ReponseMoniterDashboardTotal
    {

        public int NormalCount { get; set; }
        /// <summary>
        /// 寿命到达数量
        /// </summary>
        public int LifeCount { get; set; }
        // 断刀数量
        //  public int DestroyedCount { get; set; }
        /// <summary>
        /// 崩刃 + 断刀 数量
        /// </summary>
        public int BrokenCount { get; set; }
        /// <summary>
        /// 磨损数量
        /// </summary>
        public int WearCount { get; set; }
        /// <summary>
        /// 质量异常数量
        /// </summary>
        public int QualityCount { get; set; }
    }

    public class ReponseMoniterDashboardTools
    {
        /// <summary>
        /// 刀位 主轴+刀位
        /// </summary>
        public string Tooloacte { get; set; }
        public string Spindle { get; set; }
        /// <summary>
        /// 刀位名称
        /// </summary>
        public string CutterName { get; set; }
        /// <summary>
        /// 刀具名称
        /// </summary>
        public string Tool { get; set; }
        /// <summary>
        /// 额定寿命
        /// </summary>
        public int Ratedlife { get; set; }
        /// <summary>
        /// 使用
        /// </summary>
        public int Usage { get; set; }
        /// <summary>
        /// 剩余寿命
        /// </summary>
        public int Surplus { get; set; }
        /// <summary>
        /// 报警类型
        /// </summary>
        public AlarmGrade AlarmGrade { get; set; }

        public string BackColor { get; set; }

        /// <summary>
        /// 当前程序号未运行
        /// </summary>
        public int PnNotRunning { get; set; }
        /// <summary>
        /// 剩余百分比
        /// </summary>
        public decimal Percent { get; set; }
    }
}
