AdoWorkOrder.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. /// <summary>
  3. /// Demo 工单表 ado_work_orders
  4. /// </summary>
  5. [SugarTable("ado_work_orders", "AiDOP Demo 工单")]
  6. public class AdoWorkOrder
  7. {
  8. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "integer")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnDescription = "工单号", Length = 50)]
  11. public string WorkOrderNo { get; set; } = string.Empty;
  12. [SugarColumn(ColumnDescription = "计划Id", IsNullable = true)]
  13. public long? PlanId { get; set; }
  14. [SugarColumn(ColumnDescription = "计划号", Length = 50, IsNullable = true)]
  15. public string? PlanNo { get; set; }
  16. [SugarColumn(ColumnDescription = "产品Id", IsNullable = true)]
  17. public long? ProductId { get; set; }
  18. [SugarColumn(ColumnDescription = "产品", Length = 200)]
  19. public string Product { get; set; } = string.Empty;
  20. [SugarColumn(ColumnDescription = "数量")]
  21. public int Quantity { get; set; }
  22. [SugarColumn(ColumnDescription = "已完成数量")]
  23. public int CompletedQuantity { get; set; }
  24. [SugarColumn(ColumnDescription = "工作中心", Length = 100)]
  25. public string WorkCenter { get; set; } = string.Empty;
  26. [SugarColumn(ColumnDescription = "班组", Length = 100, IsNullable = true)]
  27. public string? Team { get; set; }
  28. [SugarColumn(ColumnDescription = "负责人", Length = 100, IsNullable = true)]
  29. public string? Owner { get; set; }
  30. [SugarColumn(ColumnDescription = "开始日期", IsNullable = true)]
  31. public DateTime? StartDate { get; set; }
  32. [SugarColumn(ColumnDescription = "计划完工", IsNullable = true)]
  33. public DateTime? PlanEndDate { get; set; }
  34. [SugarColumn(ColumnDescription = "实际完工", IsNullable = true)]
  35. public DateTime? ActualEndDate { get; set; }
  36. [SugarColumn(ColumnDescription = "状态", Length = 50)]
  37. public string Status { get; set; } = "待生产";
  38. [SugarColumn(ColumnDescription = "优先级", Length = 50)]
  39. public string Priority { get; set; } = "中";
  40. [SugarColumn(ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  41. public string? Remark { get; set; }
  42. [SugarColumn(ColumnDescription = "创建时间")]
  43. public DateTime CreatedTime { get; set; }
  44. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  45. public DateTime? UpdatedTime { get; set; }
  46. [SugarColumn(ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  47. public string? CreatedBy { get; set; }
  48. }