AdoS0ProcessFlowCard.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. /// <summary>
  3. /// 工序流转卡主数据(与工单控制参数 WorkOrdControl 语义区分)。
  4. /// </summary>
  5. [SugarTable("S0ProcessFlowCard", "工序流转卡主数据")]
  6. [SugarIndex("uk_S0ProcessFlowCard_factory_flowcard", nameof(FactoryRefId), OrderByType.Asc, nameof(FlowCardNo), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0ProcessFlowCard
  8. {
  9. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  12. public long CompanyRefId { get; set; }
  13. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  14. public long FactoryRefId { get; set; }
  15. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  16. public string? DomainCode { get; set; }
  17. [SugarColumn(ColumnName = "work_order_no", Length = 100)]
  18. public string WorkOrderNo { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "work_order_batch_no", Length = 100, IsNullable = true)]
  20. public string? WorkOrderBatchNo { get; set; }
  21. [SugarColumn(ColumnName = "flow_card_no", Length = 100)]
  22. public string FlowCardNo { get; set; } = string.Empty;
  23. [SugarColumn(ColumnName = "nature", Length = 100, IsNullable = true)]
  24. public string? Nature { get; set; }
  25. [SugarColumn(ColumnName = "item_num", Length = 100)]
  26. public string ItemNum { get; set; } = string.Empty;
  27. [SugarColumn(ColumnName = "item_name", Length = 200, IsNullable = true)]
  28. public string? ItemName { get; set; }
  29. [SugarColumn(ColumnName = "drawing_no", Length = 100, IsNullable = true)]
  30. public string? DrawingNo { get; set; }
  31. [SugarColumn(ColumnName = "bom_version", Length = 50, IsNullable = true)]
  32. public string? BomVersion { get; set; }
  33. [SugarColumn(ColumnName = "routing_code", Length = 100, IsNullable = true)]
  34. public string? RoutingCode { get; set; }
  35. [SugarColumn(ColumnName = "remarks", Length = 500, IsNullable = true)]
  36. public string? Remarks { get; set; }
  37. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  38. public bool IsActive { get; set; } = true;
  39. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  40. public string? CreateUser { get; set; }
  41. [SugarColumn(ColumnName = "create_time")]
  42. public DateTime CreateTime { get; set; } = DateTime.Now;
  43. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  44. public string? UpdateUser { get; set; }
  45. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  46. public DateTime? UpdateTime { get; set; }
  47. }