namespace IStation.Application
{
///
///
///
public class StationMapMonitorKpiLastStatusDto
{
///
///
///
public StationMapMonitorKpiLastStatusDto(Yw.Model.Equipment equipment, Yw.Model.RunRealRecord record)
{
this.EquipmentID = equipment.ID;
this.Name = equipment.Name;
this.DataTime = record?.DataTime;
this.RunStatus = record == null ? Yw.Run.RunStatus.Shut : record.RSa;
}
///
/// 设备id
///
public long EquipmentID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 数据时间
///
public DateTime? DataTime { get; set; }
///
/// 运行状态
///
public int RunStatus { get; set; }
}
}