chengsc
2025-04-14 d2588d8d1305171e7716055b23a6b5706e9cc04b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
using Org.BouncyCastle.Crypto;
 
namespace WCS.Application;
 
/// <summary>
/// PLC表
/// </summary>
[SugarTable("WCSPLC", "PLC表")]
public class WcsPlc : EntityBaseData
{
    /// <summary>
    /// PLCIP地址
    /// </summary>
    [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类型
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "PLCType", ColumnDescription = "PLC类型")]
    public PLCEnum PLCType { get; set; }
 
    /// <summary>
    /// 设备类型
    /// </summary>
    [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;
}