WCS_PLC.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using SqlSugar;
  2. namespace WCS.Entity
  3. {
  4. [SugarTable("WCS_PLC")]
  5. public class WCS_PLC : OBJ
  6. {
  7. [SugarColumn(IsIgnore = true)]
  8. public override int ID { get; set; }
  9. [SugarColumn(IsPrimaryKey = true, ColumnDescription = "编号", Length = 20)]
  10. public string CODE { get; set; }
  11. [SugarColumn(ColumnDescription = "名称", Length = 20)]
  12. public string NAME { get; set; }
  13. [SugarColumn(ColumnDescription = "IP", Length = 20)]
  14. public string IP { get; set; }
  15. [SugarColumn(ColumnDescription = "端口", Length = 20)]
  16. public int PORT { get; set; } = 102;
  17. [SugarColumn(ColumnDescription = "插槽号", Length = 20)]
  18. public int SLOT { get; set; }
  19. [SugarColumn(ColumnDescription = "机架号", Length = 20)]
  20. public int RACK { get; set; }
  21. [SugarColumn(ColumnDescription = "厂商", Length = 20)]
  22. public PLCType TYPE { get; set; }
  23. [SugarColumn(ColumnDescription = "型号", Length = 10)]
  24. public string MODEL { get; set; }
  25. }
  26. public enum PLCType
  27. {
  28. 西门子 = 1,
  29. 三菱 = 2,
  30. AB = 3,
  31. 欧姆龙 = 4,
  32. }
  33. }