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

namespace Siger.ApiDashboard.Tasks.Model
{
    public class OeeResult
    {
        public OeeResult()
        {
            echartData = new List<oee_echartData>();
            tableData = new List<oee_tableData>();
        }
        /// <summary>
        /// /// UI 画图主键
        /// </summary>
        public string type { get; set; } = "MachineOEE";
        public string title { get; set; }
        public List<oee_echartData> echartData { get; set; }

        public List<oee_tableData> tableData { get; set; }
    }

    public class oee_echartData
    {
        public double number { get; set; }
        public string name { get; set; }
        public string color { get; set; }
    }
    public class oee_tableData
    {
        public string location { get; set; }

        public string program_no { get; set; }

        public string product_name { get; set; }

        public string route_name { get; set; }

        public string theory_yield { get; set; }

        public double actual_output { get; set; }

        public string total_efficiency { get; set; }

        public string idle_loss { get; set; }

        public string debug_loss { get; set; }

        public string fault_loss { get; set; }

        public string shutdown_loss { get; set; }
    }
}
