报警记录处理过程

This commit is contained in:
quowingwang
2025-12-11 11:11:56 +08:00
parent 467f71a150
commit af414d27c9
12 changed files with 483 additions and 56 deletions

View File

@@ -13,52 +13,30 @@ namespace ZR.Model.MES.andon
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 报警编码
/// </summary>
[SugarColumn(ColumnName = "alarm_code")]
public string AlarmCode { get; set; }
/// <summary>
/// 产线
/// </summary>
[SugarColumn(ColumnName = "line_code")]
public string LineCode { get; set; }
/// <summary>
/// 产线名称
/// </summary>
[SugarColumn(ColumnName = "line_name")]
public string LineName { get; set; }
/// <summary>
/// 报警类型
/// </summary>
[SugarColumn(ColumnName = "alarm_type")]
public string AlarmType { get; set; }
/// <summary>
/// 发送方
/// </summary>
public string Sender { get; set; }
/// <summary>
/// 发送时间
/// </summary>
[SugarColumn(ColumnName = "send_time")]
public DateTime? SendTime { get; set; }
/// <summary>
/// 接收方
/// </summary>
public string Receiver { get; set; }
/// <summary>
/// 响应时间
/// </summary>
[SugarColumn(ColumnName = "response_time")]
public DateTime? ResponseTime { get; set; }
/// <summary>
/// 处理结束时间
/// </summary>
[SugarColumn(ColumnName = "handle_time")]
public DateTime? HandleTime { get; set; }
/// <summary>
/// 持续时间
/// </summary>
[SugarColumn(ColumnName = "duration_time")]
public int? DurationTime { get; set; }
/// <summary>
/// 报警级别
/// </summary>
@@ -71,6 +49,45 @@ namespace ZR.Model.MES.andon
[SugarColumn(ColumnName = "alarm_info")]
public string AlarmInfo { get; set; }
/// <summary>
/// 发送方ID
/// </summary>
public string Sender { get; set; }
/// <summary>
/// 发送方名称
/// </summary>
[SugarColumn(ColumnName = "sender_name")]
public string SenderName { get; set; }
/// <summary>
/// 发送时间
/// </summary>
[SugarColumn(ColumnName = "send_time")]
public DateTime? SendTime { get; set; }
/// <summary>
/// 接收方
/// </summary>
public string Receiver { get; set; }
/// <summary>
/// 接收方名称
/// </summary>
[SugarColumn(ColumnName = "receiver_name")]
public string ReceiverName { get; set; }
/// <summary>
/// 序号
/// </summary>
public int? Sequence { get; set; }
/// <summary>
/// 持续时间
/// </summary>
[SugarColumn(ColumnName = "duration_time")]
public int? DurationTime { get; set; }
/// <summary>
/// 状态(未处理、已处理、上报、超时)
/// </summary>
@@ -82,6 +99,11 @@ namespace ZR.Model.MES.andon
[SugarColumn(ColumnName = "handle_result")]
public string HandleResult { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remarks { get; set; }
/// <summary>
/// 创建人
/// </summary>

View File

@@ -0,0 +1,74 @@
namespace ZR.Model.MES.andon
{
/// <summary>
/// 安灯报警处理过程
/// </summary>
[SugarTable("andon_alarm_record_process")]
public class AndonAlarmRecordProcess
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 报警记录编码
/// </summary>
[SugarColumn(ColumnName = "alarm_code")]
public string AlarmCode { get; set; }
/// <summary>
/// 操作
/// </summary>
public string Operate { get; set; }
/// <summary>
/// 操作人
/// </summary>
public string Operator { get; set; }
/// <summary>
/// 操作人名称
/// </summary>
[SugarColumn(ColumnName = "operator_name")]
public string OperatorName { get; set; }
/// <summary>
/// 操作时间
/// </summary>
[SugarColumn(ColumnName = "operate_time")]
public DateTime? OperateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remarks { get; set; }
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnName = "cREATED_BY")]
public string CreatedBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "cREATED_TIME")]
public DateTime? CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[SugarColumn(ColumnName = "uPDATED_BY")]
public string UpdatedBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[SugarColumn(ColumnName = "uPDATED_TIME")]
public DateTime? UpdatedTime { get; set; }
}
}

View File

@@ -17,30 +17,38 @@ namespace ZR.Model.MES.andon.Dto
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string AlarmCode { get; set; }
public string LineCode { get; set; }
public string LineName { 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 Sender { get; set; }
public string SenderName { get; set; }
public DateTime? SendTime { get; set; }
public string Receiver { get; set; }
public string ReceiverName { get; set; }
public int? Sequence { get; set; }
public int? DurationTime { get; set; }
public string Status { get; set; }
public string HandleResult { get; set; }
public string Remarks { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }

View File

@@ -0,0 +1,43 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.andon.Dto
{
/// <summary>
/// 安灯报警处理过程查询对象
/// </summary>
public class AndonAlarmRecordProcessQueryDto : PagerInfo
{
}
/// <summary>
/// 安灯报警处理过程输入输出对象
/// </summary>
public class AndonAlarmRecordProcessDto
{
[Required(ErrorMessage = "主键不能为空")]
public int Id { get; set; }
public string AlarmCode { get; set; }
public string Operate { get; set; }
public string Operator { get; set; }
public string OperatorName { get; set; }
public DateTime? OperateTime { get; set; }
public string Remarks { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}