73 lines
2.0 KiB
C#
73 lines
2.0 KiB
C#
using MessagePack;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace YunDa.SOMS.DataTransferObject.MainStationMaintenanceInfo.OperationReport
|
|
{
|
|
/// <summary>
|
|
/// 装置自检
|
|
/// </summary>
|
|
[MessagePackObject(keyAsPropertyName: true)]
|
|
public class AbnormalComponent
|
|
{
|
|
/// <summary>
|
|
/// 异常元件的名称
|
|
/// </summary>
|
|
[JsonProperty("异常元件")]
|
|
public string ComponentName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 异常原因描述
|
|
/// </summary>
|
|
[JsonProperty("异常原因")]
|
|
public string AbnormalReason { get; set; }
|
|
|
|
/// <summary>
|
|
/// 建议的处理措施
|
|
/// </summary>
|
|
[JsonProperty("处理措施")]
|
|
public string HandlingMeasures { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 装置自检信息
|
|
/// </summary>
|
|
[MessagePackObject(keyAsPropertyName: true)]
|
|
public class EquipmentInfoAbnormalComponent: AbnormalComponent
|
|
{
|
|
public Guid EquipmentInfoId { get; set; }
|
|
}
|
|
[MessagePackObject(keyAsPropertyName: true)]
|
|
public class SecondaryCircuitComponent : AbnormalComponent
|
|
{
|
|
public Guid EquipmentInfoId { get; set; }
|
|
public string SecondaryCircuitName { get; set; }
|
|
|
|
|
|
public Guid SecondaryCircuitId { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 寿命诊断
|
|
/// </summary>
|
|
[MessagePackObject(keyAsPropertyName: true)]
|
|
public class RemainingLifeAssessment
|
|
{
|
|
/// <summary>
|
|
/// 剩余寿命(单位:年)。
|
|
/// </summary>
|
|
[JsonProperty("剩余寿命评估")]
|
|
public string RemainingLifeInYears { get; set; }
|
|
}
|
|
[MessagePackObject(keyAsPropertyName: true)]
|
|
public class EquipmentInfoRemainingLifeAssessment: RemainingLifeAssessment
|
|
{
|
|
/// <summary>
|
|
/// 设备名称。
|
|
/// </summary>
|
|
public Guid EquipmentInfoId { get; set; }
|
|
}
|
|
}
|