WorkOrdMaster.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. namespace Admin.NET.Plugin.AiDOP.WorkOrder;
  2. /// <summary>
  3. /// 工单主数据(WorkOrdMaster)
  4. /// </summary>
  5. [SugarTable("WorkOrdMaster", "工单主数据")]
  6. public class WorkOrdMaster
  7. {
  8. /// <summary>自增列</summary>
  9. [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true, IsIdentity = true)]
  10. public long RecID { get; set; }
  11. [SugarColumn(ColumnName = "Domain", Length = 8, IsNullable = true)]
  12. public string? Domain { get; set; }
  13. [SugarColumn(ColumnName = "WorkOrd", Length = 64, IsNullable = true)]
  14. public string? WorkOrd { get; set; }
  15. [SugarColumn(ColumnName = "ItemNum", Length = 30, IsNullable = true)]
  16. public string? ItemNum { get; set; }
  17. [SugarColumn(ColumnName = "Site", Length = 8, IsNullable = true)]
  18. public string? Site { get; set; }
  19. [SugarColumn(ColumnName = "Status", Length = 1, IsNullable = true)]
  20. public string? Status { get; set; }
  21. [SugarColumn(ColumnName = "Typed", Length = 1, IsNullable = true)]
  22. public string? Typed { get; set; }
  23. [SugarColumn(ColumnName = "QtyOrded", IsNullable = true)]
  24. public decimal? QtyOrded { get; set; }
  25. [SugarColumn(ColumnName = "QtyCompleted", IsNullable = true)]
  26. public decimal? QtyCompleted { get; set; }
  27. [SugarColumn(ColumnName = "QtyReject", IsNullable = true)]
  28. public decimal? QtyReject { get; set; }
  29. [SugarColumn(ColumnName = "OrdDate", IsNullable = true)]
  30. public DateTime? OrdDate { get; set; }
  31. [SugarColumn(ColumnName = "DueDate", IsNullable = true)]
  32. public DateTime? DueDate { get; set; }
  33. [SugarColumn(ColumnName = "ReleaseDate", IsNullable = true)]
  34. public DateTime? ReleaseDate { get; set; }
  35. [SugarColumn(ColumnName = "ProdLine", Length = 8, IsNullable = true)]
  36. public string? ProdLine { get; set; }
  37. [SugarColumn(ColumnName = "Location", Length = 10, IsNullable = true)]
  38. public string? Location { get; set; }
  39. [SugarColumn(ColumnName = "Project", Length = 24, IsNullable = true)]
  40. public string? Project { get; set; }
  41. [SugarColumn(ColumnName = "Drawing", Length = 64, IsNullable = true)]
  42. public string? Drawing { get; set; }
  43. [SugarColumn(ColumnName = "Rev", Length = 6, IsNullable = true)]
  44. public string? Rev { get; set; }
  45. [SugarColumn(ColumnName = "Engineer", Length = 8, IsNullable = true)]
  46. public string? Engineer { get; set; }
  47. [SugarColumn(ColumnName = "Remark", Length = 512, IsNullable = true)]
  48. public string? Remark { get; set; }
  49. [SugarColumn(ColumnName = "Priority", IsNullable = true)]
  50. public int? Priority { get; set; }
  51. [SugarColumn(ColumnName = "Urgent", IsNullable = true)]
  52. public int? Urgent { get; set; }
  53. [SugarColumn(ColumnName = "CustNo", Length = 64, IsNullable = true)]
  54. public string? CustNo { get; set; }
  55. [SugarColumn(ColumnName = "Class", Length = 64, IsNullable = true)]
  56. public string? Class { get; set; }
  57. [SugarColumn(ColumnName = "ItemName", Length = 256, IsNullable = true)]
  58. public string? ItemName { get; set; }
  59. [SugarColumn(ColumnName = "Batch", Length = 64, IsNullable = true)]
  60. public string? Batch { get; set; }
  61. [SugarColumn(ColumnName = "RoutingCode", Length = 32, IsNullable = true)]
  62. public string? RoutingCode { get; set; }
  63. [SugarColumn(ColumnName = "BOMFormula", Length = 32, IsNullable = true)]
  64. public string? BOMFormula { get; set; }
  65. // 成本相关字段
  66. [SugarColumn(ColumnName = "MaterialCost", IsNullable = true)]
  67. public decimal? MaterialCost { get; set; }
  68. [SugarColumn(ColumnName = "LaborCost1", IsNullable = true)]
  69. public decimal? LaborCost1 { get; set; }
  70. [SugarColumn(ColumnName = "BurdenCost", IsNullable = true)]
  71. public decimal? BurdenCost { get; set; }
  72. [SugarColumn(ColumnName = "SubcontractCost1", IsNullable = true)]
  73. public decimal? SubcontractCost1 { get; set; }
  74. [SugarColumn(ColumnName = "UnitCost", IsNullable = true)]
  75. public decimal? UnitCost { get; set; }
  76. [SugarColumn(ColumnName = "WipCost", IsNullable = true)]
  77. public decimal? WipCost { get; set; }
  78. // 其他业务字段
  79. [SugarColumn(ColumnName = "Ufld1", Length = 64, IsNullable = true)]
  80. public string? Ufld1 { get; set; }
  81. [SugarColumn(ColumnName = "Ufld2", Length = 64, IsNullable = true)]
  82. public string? Ufld2 { get; set; }
  83. [SugarColumn(ColumnName = "Department", Length = 64, IsNullable = true)]
  84. public string? Department { get; set; }
  85. [SugarColumn(ColumnName = "ModelItem", Length = 64, IsNullable = true)]
  86. public string? ModelItem { get; set; }
  87. [SugarColumn(ColumnName = "FlowStatus", Length = 32, IsNullable = true)]
  88. public string? FlowStatus { get; set; }
  89. // 审批字段
  90. [SugarColumn(ColumnName = "BusinessID", IsNullable = true)]
  91. public long? BusinessID { get; set; }
  92. [SugarColumn(ColumnName = "CreateUser", Length = 8, IsNullable = true)]
  93. public string? CreateUser { get; set; }
  94. [SugarColumn(ColumnName = "CreateTime", IsNullable = true)]
  95. public DateTime? CreateTime { get; set; }
  96. [SugarColumn(ColumnName = "UpdateUser", Length = 8, IsNullable = true)]
  97. public string? UpdateUser { get; set; }
  98. [SugarColumn(ColumnName = "UpdateTime", IsNullable = true)]
  99. public DateTime? UpdateTime { get; set; }
  100. [SugarColumn(ColumnName = "IsActive", IsNullable = true)]
  101. public int? IsActive { get; set; }
  102. [SugarColumn(ColumnName = "IsConfirm", IsNullable = true)]
  103. public int? IsConfirm { get; set; }
  104. /// <summary>租户ID(多租户隔离)</summary>
  105. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  106. public long? TenantId { get; set; }
  107. }