增加报警
This commit is contained in:
56
CapMachine.Wpf/Dtos/HistoryAlarmDto.cs
Normal file
56
CapMachine.Wpf/Dtos/HistoryAlarmDto.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// 历史报警模型
|
||||
/// </summary>
|
||||
public class HistoryAlarmDto : BindableBase
|
||||
{
|
||||
private string? _Category;
|
||||
[Description("分类")]
|
||||
public string? Category
|
||||
{
|
||||
get { return _Category; }
|
||||
set { _Category = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private string? _AlarmLevel;
|
||||
[Description("报警等级")]
|
||||
public string? AlarmLevel
|
||||
{
|
||||
get { return _AlarmLevel; }
|
||||
set { _AlarmLevel = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private string? _Name;
|
||||
[Description("报警名称")]
|
||||
public string? Name
|
||||
{
|
||||
get { return _Name; }
|
||||
set { _Name = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private long _Duration;
|
||||
[Description("报警时长")]
|
||||
public long Duration
|
||||
{
|
||||
get { return _Duration; }
|
||||
set { _Duration = value; RaisePropertyChanged(); }
|
||||
}
|
||||
|
||||
private DateTime _CreateTime;
|
||||
[Description("报警时间")]
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return _CreateTime; }
|
||||
set { _CreateTime = value; RaisePropertyChanged(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user