EquipmentHealthVM.cs 1.94 KB
using System;
using System.Data;

namespace Hh.Mes.POJO.ViewModel.Equipment
{
    /// <summary>
    /// 设备健康
    /// </summary>
    public class EquipmentHealthVM
    {
        public EquipmentStatusDto EquipmentStatus { get; set; }

        /// <summary>
        /// 设备未处理故障条数
        /// </summary>
        public int AlarmTotal { get; set; }

        /// <summary>
        /// 设备部件保养提醒条数
        /// </summary>
        public int MaintainTotal { get; set; }

        public string EquipmentCode { get; set; }

        public string EquipmentName { get; set; }

        public string ProjectName { get; set; }

        public string IP { get; set; }

        public string Status { get; set; }

    }

    public class EquipmentStatusDto
    {
        /// <summary>
        /// 当天开机时间【秒】
        /// </summary>
        public double TodayPowerTime { get; set; }

        /// <summary>
        /// 本月开机时间 【秒】
        /// </summary>
        public double CurrentMonthPowerTime { get; set; }

        /// <summary> 
        /// 空闲时间 秒
        /// </summary>
        public double FreeTime { get; set; }

        /// <summary>
        /// 空闲占比
        /// </summary>
        public double FreeProportion { get; set; }

        /// <summary>
        /// 运行时间 秒
        /// </summary>
        public double RunTime { get; set; }

        public double RunProportion { get; set; }

        /// <summary>
        /// 故障时间 秒
        /// </summary>
        public double AlarmTime { get; set; }

        /// <summary>
        /// 故障占比
        /// </summary>
        public double AlarmProportion { get; set; }

        /// <summary>
        /// 离线时间 秒
        /// </summary>
        public double OfflineTime { get; set; }

        /// <summary>
        /// 离线占比
        /// </summary>
        public double OfflineProportion { get; set; }
    }
}