增加报警
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Prism.Mvvm;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -15,21 +16,25 @@ namespace CapMachine.Wpf.Dtos
|
||||
/// <summary>
|
||||
/// 等级
|
||||
/// </summary>
|
||||
[Description("等级")]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类
|
||||
/// </summary>
|
||||
[Description("分类")]
|
||||
public string? Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
[Description("内容")]
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Description("创建时间")]
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
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(); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
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