增加报警
This commit is contained in:
57
CapMachine.Wpf/Dtos/AlarmRtDto.cs
Normal file
57
CapMachine.Wpf/Dtos/AlarmRtDto.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using CapMachine.Model.Alarm;
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// 报警实时模型
|
||||
/// </summary>
|
||||
public class AlarmRtDto:BindableBase
|
||||
{
|
||||
private string? _Name;
|
||||
/// <summary>
|
||||
/// 报警名称
|
||||
/// </summary>
|
||||
public string? Name
|
||||
{
|
||||
get { return _Name; }
|
||||
set { _Name = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private string? _Message;
|
||||
/// <summary>
|
||||
/// 报警消息
|
||||
/// </summary>
|
||||
public string? Message
|
||||
{
|
||||
get { return _Message; }
|
||||
set { _Message = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private string? _Category;
|
||||
/// <summary>
|
||||
/// 报警消息分类
|
||||
/// </summary>
|
||||
public string? Category
|
||||
{
|
||||
get { return _Category; }
|
||||
set { _Category = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private AlarmLevel? _AlarmLevel;
|
||||
/// <summary>
|
||||
/// 报警等级
|
||||
/// </summary>
|
||||
public AlarmLevel? AlarmLevel
|
||||
{
|
||||
get { return _AlarmLevel; }
|
||||
set { _AlarmLevel = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user