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

namespace Siger.Middlelayer.Share.Models
{
    public class OeeDetailEntity
    {
        public double Run { get; set; }
        public double Sum { get; set; }
        public double OEE1 { get; private set; }
        public double OEE2 { get; private set; }
        public double OEE3 { get; private set; }

        public double OEE { get; set; }

        public OeeDetailEntity(double oee1 = 0.0, double oee2 = 100.0, double oee3 = 100.0)
        {
            OEE1 = Math.Round(oee1, 2);
            OEE2 = Math.Round(oee2, 2);
            OEE3 = Math.Round(oee3, 2);
            OEE = Math.Round(OEE1 * OEE2 * OEE3 / 10000, 2);
        }
    }
}
