using System;
using System.Collections.Generic;
using System.Text;
namespace DllEapEntity.Dtos
{
[Serializable]
///
/// 机台效率分析
///
public class MachineEfficiency
{
///
/// 设备分类树
///
public string Name { get; set; }
///
/// 设备数量
///
public int Count { get; set; }
public string PCode { get; set; }
///
/// 综合效率 | 时间效率*性能效率*100%
///
public decimal OverallEfficiency { get; set; } = 0;
///
/// 性能效率 | 有效的嫁动时间/嫁动时间*100%
///
public decimal PerformanceEfficiency { get; set; } = 0;
///
/// 时间效率 | (嫁动时间-LOSS时间)/嫁动时间*100%
///
public decimal TimeEfficiency { get; set; } = 0;
///
/// 工作比例 | (1 - R/D时间比)*100%
///
public decimal LoadRate { get; set; } = 0;
///
/// 待料比例 | 设备中没有产品在生产的时候停止时间/一天总时间*100%
///
public decimal RDRate { get; set; } = 0;
///
/// 总时长 | 一天总时间(单位:s)
///
public decimal TotalTime { get; set; } = 0;
///
/// 运行时长 | 一天总时间-LOSS总时间(单位:s)
///
public decimal RunTime { get; set; } = 0;
///
/// 稼动率 | Run总时间/ 一天的总时间
///
public decimal RunRate { get; set; } = 0;
///
/// 故障率 | 报警时间/一天总时间
///
public decimal AlarmRate { get; set; } = 0;
///
/// 闲置率 | 闲置时间/一天总时间
///
public decimal IdleRate { get; set; } = 0;
///
/// 停机时间 | LOSS总时间(设备一天运行所有的STOP到START之间的时间累积)(单位:s)
///
public decimal LossTime { get; set; } = 0;
public string Key { get; set; }
public bool HasChildren { get; set; }
public string Type { get; set; }
public int Index { get; set; }
///
/// 停机次数
///
public int? StopCount { get; set; } = 0;
public string Factory { get; set; }
public string RegionName { get; set; }
}
public class MachineEffiencyDto
{
public string McaCode { get; set; }
public string EventCode { get; set; }
public string MacModel { get; set; }
public string PCode { get; set; }
public int Count { get; set; }
public int TimeLength { get; set; }
}
public class MachineEfDto
{
///
/// 厂区
///
public string FactoryName { get; set; }
public string PlantName { get; set; }
///
/// 楼层
///
public string FloorName { get; set; }
///
/// 制程代码
///
public string PCode { get; set; }
///
/// 设备类型
///
public string ModelName { get; set; }
///
/// 设备编号
///
public string MacCode { get; set; }
///
/// 机台编号
///
public string macnumber { get; set; }
///
/// 稼动率
///
public string RunrRate { get; set; }
///
/// 待机率
///
public string IdleRate { get; set; }
///
/// 故障率
///
public string ErrorRate { get; set; }
///
/// 生产
///
public string ErrorRateOne { get; set; }
///
/// ME
///
public string ErrorRateTwo { get; set; }
///
/// 总时长
///
public int AllTime { get; set; }
///
/// 运行时长
///
public int RunTime { get; set; }
///
/// 待机时长
///
public int IdleTime { get; set; }
public int ErrorTime { get; set; }
///
/// 生产
///
public int ErrorTimeOne { get; set; }
///
/// ME
///
public int ErrorTimeTwo { get; set; }
public string StatusName { get; set; }
public string GetValue(string name)
{
try
{
return Convert.ToString(this.GetType().GetProperty(name).GetValue(this, null));
}
catch(Exception ex)
{
return "";
}
}
}
public class StatusDto
{
public string MacCode { get; set; }
public string StatusName { get; set; }
}
public class MachineEfFactoryDto
{
///
/// 厂区
///
public string FactoryName { get; set; }
public string FactoryID { get; set; }
public string FloorID { get; set; }
///
/// 稼动率
///
public string RunrRate { get; set; }
///
/// 待机率
///
public string IdleRate { get; set; }
///
/// 故障率
///
public string ErrorRate { get; set; }
///
/// 总时长
///
public string AllTime { get; set; }
}
}