From 1b118e5148c0568d7bb64bf59b9a06712c9a6842 Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期六, 28 九月 2024 08:12:11 +0800
Subject: [PATCH] 问题修改
---
Admin.NET/WCS.Application/Entity/WcsPlc.cs | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/Admin.NET/WCS.Application/Entity/WcsPlc.cs b/Admin.NET/WCS.Application/Entity/WcsPlc.cs
index e92777f..916fa20 100644
--- a/Admin.NET/WCS.Application/Entity/WcsPlc.cs
+++ b/Admin.NET/WCS.Application/Entity/WcsPlc.cs
@@ -1,11 +1,13 @@
锘�
+using Org.BouncyCastle.Crypto;
+
namespace WCS.Application;
/// <summary>
/// PLC琛�
/// </summary>
-[SugarTable("WCSPLC","PLC琛�")]
-public class WcsPlc : EntityBaseData
+[SugarTable("WCSPLC", "PLC琛�")]
+public class WcsPlc : EntityBaseData
{
/// <summary>
/// PLCIP鍦板潃
@@ -13,6 +15,12 @@
[Required]
[SugarColumn(ColumnName = "IP", ColumnDescription = "PLCIP鍦板潃", Length = 20)]
public string IP { get; set; }
+
+ /// <summary>
+ /// PLC绔彛鍙�
+ /// </summary>
+ [SugarColumn(ColumnName = "Port", ColumnDescription = "PLC绔彛鍙�")]
+ public int Port { get; set; }
/// <summary>
/// PLC绫诲瀷
@@ -27,17 +35,28 @@
[Required]
[SugarColumn(ColumnName = "Type", ColumnDescription = "璁惧绫诲瀷")]
public PLCTypeEnum Type { get; set; }
-
+
/// <summary>
/// 浠撳簱鍙�
/// </summary>
[SugarColumn(ColumnName = "WareHouseNo", ColumnDescription = "浠撳簱鍙�", Length = 20)]
public string? WareHouseNo { get; set; }
-
+
/// <summary>
/// 鎻忚堪
/// </summary>
[SugarColumn(ColumnName = "Text", ColumnDescription = "鎻忚堪", Length = 100)]
public string? Text { get; set; }
-
+
+ /// <summary>
+ /// 鏄惁鍚敤
+ /// </summary>
+ [SugarColumn(ColumnName = "Enable", ColumnDescription = "鏄惁鍚敤")]
+ public YesNoEnum Enable { get; set; }
+
+ /// <summary>
+ /// 鏄惁杩炴帴
+ /// </summary>
+ [SugarColumn(IsIgnore = true)]
+ public bool IsConn { get; set; } = false;
}
--
Gitblit v1.8.0