AdoLegacyEntities.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. /// <summary>订单(看板基础查询用,对应旧版 ado_order 表)</summary>
  3. [IgnoreTable]
  4. [SugarTable("ado_order")]
  5. public class AdoOrder
  6. {
  7. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  8. public long Id { get; set; }
  9. [SugarColumn(IsNullable = true, Length = 200)]
  10. public string? Product { get; set; }
  11. [SugarColumn(IsNullable = true, Length = 100)]
  12. public string? OrderNo { get; set; }
  13. }
  14. /// <summary>工单(看板基础查询用,对应旧版 ado_work_order 表)</summary>
  15. [IgnoreTable]
  16. [SugarTable("ado_work_order")]
  17. public class AdoWorkOrder
  18. {
  19. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  20. public long Id { get; set; }
  21. [SugarColumn(IsNullable = true, Length = 200)]
  22. public string? Product { get; set; }
  23. [SugarColumn(IsNullable = true, Length = 100)]
  24. public string? WorkCenter { get; set; }
  25. }
  26. /// <summary>计划(看板基础查询用,对应旧版 ado_plan 表)</summary>
  27. [IgnoreTable]
  28. [SugarTable("ado_plan")]
  29. public class AdoPlan
  30. {
  31. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  32. public long Id { get; set; }
  33. [SugarColumn(IsNullable = true, Length = 200)]
  34. public string? ProductName { get; set; }
  35. }
  36. /// <summary>通用代码主数据(legacy GeneralizedCodeMaster 只读投影,用于 BarcodeStatus 等状态码翻译)。</summary>
  37. [IgnoreTable]
  38. [SugarTable("GeneralizedCodeMaster")]
  39. public class AdoGeneralizedCodeRecord
  40. {
  41. [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true)]
  42. public long Id { get; set; }
  43. [SugarColumn(ColumnName = "FldName", Length = 100, IsNullable = true)]
  44. public string? FldName { get; set; }
  45. [SugarColumn(ColumnName = "Val", Length = 50)]
  46. public string Val { get; set; } = "";
  47. [SugarColumn(ColumnName = "Comments", Length = 50, IsNullable = true)]
  48. public string? Comments { get; set; }
  49. }