WCS_PalletizingRow.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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_PalletizingRow), "码垛行信息表")]
  10. public class WCS_PalletizingRow
  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 PalletizingLayerId { get; set; }
  22. /// <summary>
  23. /// 码垛信息表Id
  24. /// </summary>
  25. [SugarColumn(IsNullable = true, ColumnDescription = "码垛信息表Id")]
  26. public int PalletizingId { get; set; }
  27. /// <summary>
  28. /// 码垛信息
  29. /// </summary>
  30. [Navigate(NavigateType.OneToOne, nameof(PalletizingId))]
  31. public WCS_Palletizing Palletizing { get; set; }
  32. /// <summary>
  33. /// 是否空置
  34. /// </summary>
  35. [SugarColumn(IsNullable = false, ColumnDescription = "是否空置")]
  36. public bool IsEmpty { get; set; }
  37. /// <summary>
  38. /// 数量上限
  39. /// </summary>
  40. [SugarColumn(IsNullable = false, ColumnDescription = "数量上限")]
  41. public int QtyMaxCount { get; set; }
  42. /// <summary>
  43. /// 行号
  44. /// </summary>
  45. [SugarColumn(IsNullable = false, ColumnDescription = "行号")]
  46. public int RowNo { get; set; }
  47. /// <summary>
  48. /// 是否混合料行
  49. /// </summary>
  50. [SugarColumn(IsNullable = false, ColumnDescription = "是否混合料行")]
  51. public bool IsMixRow { get; set; }
  52. /// <summary>
  53. /// 表示每一个具体位置的商品信息
  54. /// </summary>
  55. [Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLoc.PalletizingRowId))]
  56. public List<WCS_PalletizingLoc> Locs { get; set; }
  57. /// <summary>
  58. /// 行缓存Id
  59. /// </summary>
  60. [SugarColumn(IsNullable = false, ColumnDescription = "任务Id")]
  61. public int CacheLineId { get; set; }
  62. /// <summary>
  63. /// 行缓存
  64. /// </summary>
  65. [Navigate(NavigateType.OneToOne, nameof(CacheLineId))]
  66. public WCS_CacheLine CacheLine { get; set; }
  67. /// <summary>
  68. /// 当前所有的物料号
  69. /// </summary>
  70. [SugarColumn(IsNullable = true, ColumnDescription = "当前所有的物料号")]
  71. public string MatCodeList { get; set; }
  72. /// <summary>
  73. /// 是否结束
  74. /// </summary>
  75. [SugarColumn(IsNullable = false, ColumnDescription = "是否结束")]
  76. public bool Finish { get; set; }
  77. /// <summary>
  78. /// 取货线体号
  79. /// </summary>
  80. [SugarColumn(IsNullable = true, ColumnDescription = "取货线体号")]
  81. public string? LineCode { get; set; }
  82. /// <summary>
  83. /// 创建时间
  84. /// </summary>
  85. [SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
  86. public DateTime AddTime { get; set; }
  87. /// <summary>
  88. /// 编辑时间
  89. /// </summary>
  90. [SugarColumn(IsNullable = true, ColumnDescription = "编辑时间")]
  91. public DateTime EditTime { get; set; }
  92. /// <summary>
  93. /// 仓库编号
  94. /// </summary>
  95. [SugarColumn(ColumnDescription = "仓库编号", IsNullable = true)]
  96. public string WarehouseCode { get; set; }
  97. }
  98. }