From bd07dc56f2d923f204a2b40504175e2658258cb4 Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期四, 29 八月 2024 16:59:41 +0800 Subject: [PATCH] 报警信息调整 --- Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs b/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs index 5b6c957..1244ff8 100644 --- a/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs +++ b/Admin.NET/WCS.Application/Entity/WcsAlarmInfo.cs @@ -5,19 +5,28 @@ /// 鎶ヨ淇℃伅琛� /// </summary> [SugarTable("WCSAlarmInfo","鎶ヨ淇℃伅琛�")] -public class WcsAlarmInfo : EntityBaseData +public class WcsAlarmInfo : EntityBaseData { /// <summary> /// PLCIP鍦板潃 /// </summary> + [Required] [SugarColumn(ColumnName = "PlcIP", ColumnDescription = "PLCIP鍦板潃", Length = 20)] - public string? PlcIP { get; set; } + public string PlcIP { get; set; } + + /// <summary> + /// PLCIP鍦板潃 + /// </summary> + [Required] + [SugarColumn(ColumnName = "PlcPort", ColumnDescription = "PLCIP鍦板潃")] + public int PlcPort { get; set; } /// <summary> /// 鎶ヨ缂栧彿 /// </summary> + [Required] [SugarColumn(ColumnName = "AlarmCode", ColumnDescription = "鎶ヨ缂栧彿", Length = 20)] - public string? AlarmCode { get; set; } + public string AlarmCode { get; set; } /// <summary> /// 鎶ヨ鎻忚堪 @@ -30,18 +39,18 @@ /// </summary> [SugarColumn(ColumnName = "LedIP", ColumnDescription = "鏄剧ず灞廼p鍦板潃", Length = 20)] public string? LedIP { get; set; } - + /// <summary> /// 鐘舵�� /// </summary> [SugarColumn(ColumnName = "Status", ColumnDescription = "鐘舵��")] - public YesNoEnum? Status { get; set; } = YesNoEnum.N; + public YesNoEnum? Status { get; set; } /// <summary> /// 璁惧绫诲瀷 /// </summary> [SugarColumn(ColumnName = "Type", ColumnDescription = "璁惧绫诲瀷", Length = 20)] - public string? Type { get; set; } + public PLCTypeEnum Type { get; set; } /// <summary> /// 鎶ヨ鏃ユ湡 -- Gitblit v1.8.0