ItemMaster.cs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. namespace Admin.NET.Plugin.AiDOP.Universal;
  2. /// <summary>
  3. /// 物料主数据(ItemMaster 表,外部 ERP 表,只读映射)
  4. /// </summary>
  5. [IgnoreTable]
  6. [SugarTable("ItemMaster", "物料主数据")]
  7. public class ItemMaster
  8. {
  9. /// <summary>自增列</summary>
  10. [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true, IsIdentity = true)]
  11. public int RecID { get; set; }
  12. /// <summary>域名</summary>
  13. [SugarColumn(ColumnName = "Domain", Length = 8, IsNullable = true)]
  14. public string? Domain { get; set; }
  15. /// <summary>零件号</summary>
  16. [SugarColumn(ColumnName = "ItemNum", Length = 30, IsNullable = true)]
  17. public string? ItemNum { get; set; }
  18. /// <summary>描述</summary>
  19. [SugarColumn(ColumnName = "Descr", Length = 60, IsNullable = true)]
  20. public string? Descr { get; set; }
  21. /// <summary>描述1</summary>
  22. [SugarColumn(ColumnName = "Descr1", Length = 60, IsNullable = true)]
  23. public string? Descr1 { get; set; }
  24. /// <summary>单位</summary>
  25. [SugarColumn(ColumnName = "UM", Length = 4, IsNullable = true)]
  26. public string? UM { get; set; }
  27. /// <summary>库位</summary>
  28. [SugarColumn(ColumnName = "Location", Length = 10, IsNullable = true)]
  29. public string? Location { get; set; }
  30. /// <summary>版本</summary>
  31. [SugarColumn(ColumnName = "Rev", Length = 4, IsNullable = true)]
  32. public string? Rev { get; set; }
  33. /// <summary>图纸</summary>
  34. [SugarColumn(ColumnName = "Drawing", Length = 30, IsNullable = true)]
  35. public string? Drawing { get; set; }
  36. /// <summary>状态</summary>
  37. [SugarColumn(ColumnName = "Status", Length = 1, IsNullable = true)]
  38. public string? Status { get; set; }
  39. /// <summary>零件类型</summary>
  40. [SugarColumn(ColumnName = "ItemType", Length = 2, IsNullable = true)]
  41. public string? ItemType { get; set; }
  42. /// <summary>P/L 件(P=采购/L=制造)</summary>
  43. [SugarColumn(ColumnName = "PurMfg", Length = 1, IsNullable = true)]
  44. public string? PurMfg { get; set; }
  45. /// <summary>地点</summary>
  46. [SugarColumn(ColumnName = "Site", Length = 8, IsNullable = true)]
  47. public string? Site { get; set; }
  48. /// <summary>购买者</summary>
  49. [SugarColumn(ColumnName = "Buyer", Length = 8, IsNullable = true)]
  50. public string? Buyer { get; set; }
  51. /// <summary>计划员</summary>
  52. [SugarColumn(ColumnName = "Planner", Length = 8, IsNullable = true)]
  53. public string? Planner { get; set; }
  54. /// <summary>生产线</summary>
  55. [SugarColumn(ColumnName = "ProdLine", Length = 10, IsNullable = true)]
  56. public string? ProdLine { get; set; }
  57. /// <summary>采购计量单位</summary>
  58. [SugarColumn(ColumnName = "PurUM", Length = 4, IsNullable = true)]
  59. public string? PurUM { get; set; }
  60. /// <summary>变更日期</summary>
  61. [SugarColumn(ColumnName = "ModDate", IsNullable = true)]
  62. public DateTime? ModDate { get; set; }
  63. /// <summary>创建时间</summary>
  64. [SugarColumn(ColumnName = "CreateTime", IsNullable = true)]
  65. public DateTime? CreateTime { get; set; }
  66. /// <summary>更新时间</summary>
  67. [SugarColumn(ColumnName = "UpdateTime", IsNullable = true)]
  68. public DateTime? UpdateTime { get; set; }
  69. /// <summary>有效</summary>
  70. [SugarColumn(ColumnName = "IsActive", IsNullable = true)]
  71. public int? IsActive { get; set; }
  72. /// <summary>备注</summary>
  73. [SugarColumn(ColumnName = "Remark", Length = 255, IsNullable = true)]
  74. public string? Remark { get; set; }
  75. }