andon项目

This commit is contained in:
quowingwang
2025-12-10 13:55:42 +08:00
parent 76c70da708
commit 9439286219
27 changed files with 1354 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.andon.Dto
{
/// <summary>
/// 报警联系人表查询对象
/// </summary>
public class AndonAlarmContactQueryDto : PagerInfo
{
}
/// <summary>
/// 报警联系人表输入输出对象
/// </summary>
public class AndonAlarmContactDto
{
[Required(ErrorMessage = "ID不能为空")]
public int Id { get; set; }
public string UserId { get; set; }
public string UserName { get; set; }
public string Position { get; set; }
public string Role { get; set; }
public string ManagerId { get; set; }
public string ManagerName { get; set; }
public string Phone { get; set; }
public string LineCode { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,39 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.andon.Dto
{
/// <summary>
/// 报警等级表查询对象
/// </summary>
public class AndonAlarmLevelQueryDto : PagerInfo
{
}
/// <summary>
/// 报警等级表输入输出对象
/// </summary>
public class AndonAlarmLevelDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string LevelName { get; set; }
public string LightColor { get; set; }
public int? HandleTimeout { get; set; }
public string ApplyScenario { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,55 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.andon.Dto
{
/// <summary>
/// 报警记录查询对象
/// </summary>
public class AndonAlarmRecordQueryDto : PagerInfo
{
}
/// <summary>
/// 报警记录输入输出对象
/// </summary>
public class AndonAlarmRecordDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string LineCode { get; set; }
public string AlarmType { get; set; }
public string Sender { get; set; }
public DateTime? SendTime { get; set; }
public string Receiver { get; set; }
public DateTime? ResponseTime { get; set; }
public DateTime? HandleTime { get; set; }
public int? DurationTime { get; set; }
public string AlarmLevel { get; set; }
public string AlarmInfo { get; set; }
public string Status { get; set; }
public string HandleResult { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -0,0 +1,35 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.andon.Dto
{
/// <summary>
/// 报警类型字典查询对象
/// </summary>
public class AndonAlarmTypeDictQueryDto : PagerInfo
{
}
/// <summary>
/// 报警类型字典输入输出对象
/// </summary>
public class AndonAlarmTypeDictDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string TypeCode { get; set; }
public string TypeName { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}