WCS_Palletizing.cs 3.5 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_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 = "任务Id")]
  31. public string PalleCode { get; set; }
  32. /// <summary>
  33. /// 垛型编码
  34. /// </summary>
  35. [SugarColumn(IsNullable = false, ColumnDescription = "垛型编码")]
  36. public string Code { get; set; }
  37. /// <summary>
  38. /// 短垛型编码
  39. /// </summary>
  40. [SugarColumn(IsNullable = false, ColumnDescription = "短垛型编码")]
  41. public short ShortCode { get; set; }
  42. /// <summary>
  43. /// 帘线物料编码
  44. /// </summary>
  45. [SugarColumn(IsNullable = false, ColumnDescription = "帘线物料编码")]
  46. public string ProMaterCode { get; set; }
  47. /// <summary>
  48. /// 绑定的码垛工位
  49. /// </summary>
  50. [SugarColumn(IsNullable = true, ColumnDescription = "码垛工位")]
  51. public string? PalletizingStation { get; set; }
  52. /// <summary>
  53. /// 产品总数
  54. /// </summary>
  55. [SugarColumn(IsNullable = false, ColumnDescription = "产品总数")]
  56. public int CountQty { get; set; }
  57. /// <summary>
  58. /// 托盘类型
  59. /// </summary>
  60. [SugarColumn(IsNullable = false, ColumnDescription = "托盘类型")]
  61. public string TpTypeCode { get; set; }
  62. /// <summary>
  63. /// 层数
  64. /// </summary>
  65. [SugarColumn(IsNullable = false, ColumnDescription = "层数")]
  66. public int LayerCountQty { get; set; }
  67. /// <summary>
  68. /// 层信息
  69. /// </summary>
  70. [Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLayer.PalletizingId))]
  71. public List<WCS_PalletizingLayer> Layers { get; set; }
  72. /// <summary>
  73. /// 位信息
  74. /// </summary>
  75. [Navigate(NavigateType.OneToMany, nameof(WCS_PalletizingLoc.PalletizingId))]
  76. public List<WCS_PalletizingLoc> Locs { get; set; }
  77. /// <summary>
  78. /// 垛型大类
  79. /// </summary>
  80. [SugarColumn(IsNullable = false, ColumnDescription = "垛型大类")]
  81. public int StampType { get; set; }
  82. /// <summary>
  83. /// 是否结束
  84. /// </summary>
  85. [SugarColumn(IsNullable = false, ColumnDescription = "是否结束")]
  86. public bool Finish { get; set; }
  87. /// <summary>
  88. /// 当前所有的物料号
  89. /// </summary>
  90. [SugarColumn(IsNullable = true, ColumnDescription = "当前所有的物料号")]
  91. public string MatCodeList { get; set; }
  92. /// <summary>
  93. /// 创建时间
  94. /// </summary>
  95. [SugarColumn(IsNullable = false, ColumnDescription = "创建时间")]
  96. public DateTime AddTime { get; set; }
  97. }
  98. }