using System;
using System.Text.RegularExpressions;
namespace ProductionLineMonitor.Web.Services.LineService
{
public class Statistic
{
///
/// 机种
///
public string ModuleType { get; set; } = string.Empty;
///
/// Capa
///
public int Capa { get; set; }
///
/// 计划产能
///
public int PlanCapacity { get; set; }
///
/// TT
///
public double TT { get; set; }
///
/// 产能
///
public int Capacity { get; set; }
///
/// 早班产能
///
public int MorningShiftCapacity { get; set; }
///
/// 夜班产能
///
public int NightShiftCapacity { get; set; }
///
/// 时间稼动率
///
public double Availability { get; set; }
///
/// 性能稼动率
///
public double Performance { get; set; }
///
/// 良率
///
public double Quality { get; set; }
///
/// 设备综合效率
///
public double OEE { get; set; }
///
/// 运行时间
///
public double RunTime { get; set; }
///
/// 待料时间
///
public double IdelTime { get; set; }
///
/// 宕机时间
///
public double DownTime { get; set; }
///
/// 负荷时间
///
public double LoadTime { get; set; }
public double Reload { get; set; }
public double AchievementRate
{
get
{
if (PlanCapacity == 0)
{
return 0;
}
return Math.Round((float)Capacity / PlanCapacity * 100, 0);
}
}
}
}