WCS_Palletizing.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace WCS.Entity
  5. {
  6. /// <summary>
  7. /// 码垛信息记录主表
  8. /// </summary>
  9. [SugarTable(nameof(WCS_Palletizing), "码垛信息主表")]
  10. public class WCS_Palletizing
  11. {
  12. /// <summary>
  13. /// Id
  14. /// </summary>
  15. [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "ID")]
  16. public int Id { get; set; }
  17. /// <summary>
  18. /// 任务Id
  19. /// </summary>
  20. [SugarColumn(IsNullable = false, ColumnDescription = "任务Id")]
  21. public int TaskId { get; set; }
  22. /// <summary>
  23. /// 任务
  24. /// </summary>
  25. [Navigate(NavigateType.OneToOne, nameof(TaskId))]
  26. public WCS_TaskInfo? TaskInfo { get; set; }
  27. /// <summary>
  28. /// 触发任务的下一个地址
  29. /// </summary>
  30. [SugarColumn(IsNullable = true, ColumnDescription = "触发任务的下一个地址")]
  31. public string TaskAddNext { get; set; }
  32. /// <summary>
  33. /// 托盘条码
  34. /// </summary>
  35. [SugarColumn(IsNullable = true, ColumnDescription = "任务Id")]
  36. public string PalleCode { get; set; }
  37. /// <summary>
  38. /// 垛型编码
  39. /// </summary>
  40. [SugarColumn(IsNullable = false, ColumnDescription = "垛型编码")]
  41. public string Code { get; set; }
  42. /// <summary>
  43. /// 短垛型编码
  44. /// </summary>
  45. [SugarColumn(IsNullable = false, ColumnDescription = "短垛型编码")]
  46. public short ShortCode { get; set; }
  47. /// <summary>
  48. /// 帘线物料编码
  49. /// </summary>
  50. [SugarColumn(IsNullable = false, ColumnDescription = "帘线物料编码")]
  51. public string ProMaterCode { get; set; }
  52. /// <summary>
  53. /// 绑定的码垛工位
  54. /// </summary>
  55. [SugarColumn(IsNullable = true, ColumnDescription = "码垛工位")]
  56. public string? PalletizingStation { get; set; }
  57. /// <summary>
  58. /// 产品总数
  59. /// </summary>
  60. [SugarColumn(IsNullable = false, ColumnDescription = "产品总数")]
  61. public int CountQty { get; set; }
  62. /// <summary>
  63. /// 托盘类型
  64. /// </summary>
  65. [SugarColumn(IsNullable = false, ColumnDescription = "托盘类型")]
  66. public string TpTypeCode { get; set; }
  67. /// <summary>
  68. /// 层数
  69. /// </summary>
  70. [SugarColumn(IsNullable = false, ColumnDescription = "层数")]
  71. public int LayerCountQty { get; set; }
  72. /// <summary>
  73. /// 层信息
  74. /// </summary>
  75. [Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLayer.PalletizingId))]
  76. public List<WCS_PalletizingLayer> Layers { get; set; }
  77. /// <summary>
  78. /// 位信息
  79. /// </summary>
  80. [Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLoc.PalletizingId))]
  81. public List<WCS_PalletizingLoc> Locs { get; set; }
  82. /// <summary>
  83. /// 垛型大类
  84. /// </summary>
  85. [SugarColumn(IsNullable = false, ColumnDescription = "垛型大类")]
  86. public int StampType { get; set; }
  87. /// <summary>
  88. /// 是否结束
  89. /// </summary>
  90. [SugarColumn(IsNullable = false, ColumnDescription = "是否结束")]
  91. public bool Finish { get; set; }
  92. /// <summary>
  93. /// 是否二次绑盘
  94. /// </summary>
  95. [SugarColumn(IsNullable = true, ColumnDescription = "是否二次绑盘")]
  96. public bool isItHalf { get; set; }
  97. /// <summary>
  98. /// 当前所有的物料号
  99. /// </summary>
  100. [SugarColumn(IsNullable = true, ColumnDescription = "当前所有的物料号")]
  101. public string MatCodeList { get; set; }
  102. /// <summary>
  103. /// 仓库编号
  104. /// </summary>
  105. [SugarColumn(ColumnDescription = "仓库编号", IsNullable = true)]
  106. public string WarehouseCode { get; set; }
  107. /// <summary>
  108. /// 执行设备编号,桁架/机械手/、、、
  109. /// </summary>
  110. [SugarColumn(ColumnDescription = "执行设备编号", IsNullable = true)]
  111. public string DeviceCode { get; set; }
  112. /// <summary>
  113. /// 创建时间
  114. /// </summary>
  115. [SugarColumn(IsNullable = false, ColumnDescription = "创建时间")]
  116. public DateTime AddTime { get; set; }
  117. /// <summary>
  118. /// 编辑时间
  119. /// </summary>
  120. [SugarColumn(IsNullable = true, ColumnDescription = "编辑时间")]
  121. public DateTime EditTime { get; set; }
  122. }
  123. }