using Org.BouncyCastle.Crypto; namespace WCS.Application; /// /// PLC表 /// [SugarTable("WCSPLC", "PLC表")] public class WcsPlc : EntityBaseData { /// /// PLCIP地址 /// [Required] [SugarColumn(ColumnName = "IP", ColumnDescription = "PLCIP地址", Length = 20)] public string IP { get; set; } /// /// PLC端口号 /// [SugarColumn(ColumnName = "Port", ColumnDescription = "PLC端口号")] public int Port { get; set; } /// /// PLC类型 /// [Required] [SugarColumn(ColumnName = "PLCType", ColumnDescription = "PLC类型")] public PLCEnum PLCType { get; set; } /// /// 设备类型 /// [Required] [SugarColumn(ColumnName = "Type", ColumnDescription = "设备类型")] public PLCTypeEnum Type { get; set; } /// /// 仓库号 /// [SugarColumn(ColumnName = "WareHouseNo", ColumnDescription = "仓库号", Length = 20)] public string? WareHouseNo { get; set; } /// /// 描述 /// [SugarColumn(ColumnName = "Text", ColumnDescription = "描述", Length = 100)] public string? Text { get; set; } /// /// 是否启用 /// [SugarColumn(ColumnName = "Enable", ColumnDescription = "是否启用")] public YesNoEnum Enable { get; set; } /// /// 是否连接 /// [SugarColumn(IsIgnore = true)] public bool IsConn { get; set; } = false; }