WCS_PLC.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using WCS.Data;
  8. using WCS.Data.Models;
  9. namespace WCS_Client.Frm
  10. {
  11. public class WCS_PLC
  12. {
  13. #region 属性
  14. [SugarColumn(IsPrimaryKey = true)]
  15. public string PLC_NAME { get; set; }
  16. public string PLC_IP { get; set; }
  17. public string PLC_EQUIPMENTTYPE { get; set; }
  18. public bool PLC_ISENABLE { get; set; }
  19. public bool PLC_CONNECTSTATUS { get; set; }
  20. public int PLC_PORT { get; set; }
  21. public int PLC_SLOT { get; set; }
  22. public int PLC_RACK { get; set; }
  23. /// <summary>
  24. /// WCS系统
  25. /// </summary>
  26. public string PLC_WCSSYSTEM { get; set; }
  27. public string PLC_NOTES { get; set; }
  28. /// <summary>
  29. /// 最后完成时间
  30. /// </summary>
  31. public DateTime? PLC_LASTFINISHTIME { get; set; }
  32. //DB集合
  33. public List<WCS_DBDEFINITION> WCS_DBSet = new List<WCS_DBDEFINITION>();
  34. //扫描的条码集合
  35. [SugarColumn(IsIgnore = true)]
  36. public List<WCS_SCANN> WCS_ScannSet { get; set; }
  37. //设备信号集合
  38. [SugarColumn(IsIgnore = true)]
  39. public List<WCS_EQUIPMENTINFO> WCS_EquipmentInfoSet { get; set; }
  40. #endregion;
  41. #region 函数
  42. public void Init()
  43. {
  44. foreach (var item in WCS_DBSet)
  45. {
  46. item.DB_EQUDATA = new byte[item.DB_TOLLENGTH];
  47. }
  48. }
  49. #endregion;
  50. }
  51. }