using System.Collections.Generic;
using Siger.Middlelayer.CncRepository.Response;

namespace Siger.ApiCNC.Result
{
    public class ProductionEfficiencyanalysisResult : CncResultBase
    {
        public IList<ResponseGetListEfficiencyAnalysis> list { get; set; }

        public EfficiencySummary summary { get; set; }

        public int page { get; set; }

        public int pagesize { get; set; }

        public int total { get; set; }

        public int msg { get; set; } = 1;

        public ProductionEfficiencyanalysisResult()
        {
            list = new List<ResponseGetListEfficiencyAnalysis>();
            summary = new EfficiencySummary();
        }
    }

    public class EfficiencySummary
    {
        public double total_eff { get; set; } = 0;

        public double idle_loss { get; set; } = 0;

        public double debug_loss { get; set; } = 0;

        public double fault_loss { get; set; } = 0;

        public double shutdown_loss { get; set; } = 0;
    }
}
