using Microsoft.EntityFrameworkCore;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations.Schema;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWare.Wms.Core
|
{
|
[Table("EquipmentCurrentMonitor")]
|
[Comment("实时设备状态")]
|
public class EquipmentCurrentMonitor : DEntityBase
|
{
|
/// <summary>
|
/// 设备编号
|
/// </summary>
|
[Comment("设备编号")]
|
[Required, MaxLength(32)]
|
public string EquipmentID { get; set; }
|
|
/// <summary>
|
/// 当前状态
|
/// </summary>
|
[Comment("当前状态")]
|
[MaxLength(32)]
|
public string EquipmentCurrentState { get; set; }
|
|
/// <summary>
|
/// 工序
|
/// </summary>
|
[Comment("工序")]
|
[MaxLength(32)]
|
public string WorkingProcedure { get; set; }
|
|
/// <summary>
|
/// 工件号
|
/// </summary>
|
[Comment("工件号")]
|
[MaxLength(32)]
|
public string WorkPieceID { get; set; }
|
|
/// <summary>
|
/// 上线时间
|
/// </summary>
|
[Comment("上线时间")]
|
public DateTime? OnlineTime { get; set; }
|
|
/// <summary>
|
/// 加工时长
|
/// </summary>
|
[Comment("加工时长")]
|
public int? WorkTime { get; set; }
|
|
/// <summary>
|
/// 刀具使用寿命
|
/// </summary>
|
[Comment("刀具使用寿命")]
|
public int? KnifeToolLife { get; set; }
|
|
/// <summary>
|
/// 主轴电流
|
/// </summary>
|
[Comment("主轴电流")]
|
[MaxLength(32)]
|
public string SpindleCurrent { get; set; }
|
|
/// <summary>
|
/// 主轴扭矩
|
/// </summary>
|
[Comment("主轴扭矩")]
|
[MaxLength(32)]
|
public string SpindleTorque { get; set; }
|
|
/// <summary>
|
/// 主轴负载
|
/// </summary>
|
[Comment("主轴负载")]
|
[MaxLength(32)]
|
public string SpindleLoad { get; set; }
|
|
/// <summary>
|
/// 报警时间
|
/// </summary>
|
[Comment("报警时间")]
|
public DateTime? AlertTime { get; set; }
|
|
/// <summary>
|
/// 故障代码
|
/// </summary>
|
[Comment("故障代码")]
|
[MaxLength(32)]
|
public string FailureType { get; set; }
|
|
/// <summary>
|
/// 告警代码
|
/// </summary>
|
[Comment("告警代码")]
|
[MaxLength(32)]
|
public string WarnType { get; set; }
|
|
/// <summary>
|
/// 报警信息
|
/// </summary>
|
[Comment("报警信息")]
|
[MaxLength(255)]
|
public string Alertmsg { get; set; }
|
|
/// <summary>
|
/// 备注
|
/// </summary>
|
[Comment("备注")]
|
[MaxLength(255)]
|
public string Remarks { get; set; }
|
|
|
/// <summary>
|
/// 告警是否关闭
|
/// </summary>
|
[Comment("告警是否关闭")]
|
public bool IsCloseAlert { get; set; } = false;
|
|
|
[Comment("message 时间")]
|
public DateTime? WarnTime { get; set; }
|
[Comment("message 内容")]
|
public string Warnmsg { get; set; }
|
}
|
}
|