namespace Admin.NET.Plugin.AiDOP.Universal; /// /// 物料主数据(ItemMaster 表,外部 ERP 表,只读映射) /// [IgnoreTable] [SugarTable("ItemMaster", "物料主数据")] public class ItemMaster { /// 自增列 [SugarColumn(ColumnName = "RecID", IsPrimaryKey = true, IsIdentity = true)] public int RecID { get; set; } /// 域名 [SugarColumn(ColumnName = "Domain", Length = 8, IsNullable = true)] public string? Domain { get; set; } /// 零件号 [SugarColumn(ColumnName = "ItemNum", Length = 30, IsNullable = true)] public string? ItemNum { get; set; } /// 描述 [SugarColumn(ColumnName = "Descr", Length = 60, IsNullable = true)] public string? Descr { get; set; } /// 描述1 [SugarColumn(ColumnName = "Descr1", Length = 60, IsNullable = true)] public string? Descr1 { get; set; } /// 单位 [SugarColumn(ColumnName = "UM", Length = 4, IsNullable = true)] public string? UM { get; set; } /// 库位 [SugarColumn(ColumnName = "Location", Length = 10, IsNullable = true)] public string? Location { get; set; } /// 版本 [SugarColumn(ColumnName = "Rev", Length = 4, IsNullable = true)] public string? Rev { get; set; } /// 图纸 [SugarColumn(ColumnName = "Drawing", Length = 30, IsNullable = true)] public string? Drawing { get; set; } /// 状态 [SugarColumn(ColumnName = "Status", Length = 1, IsNullable = true)] public string? Status { get; set; } /// 零件类型 [SugarColumn(ColumnName = "ItemType", Length = 2, IsNullable = true)] public string? ItemType { get; set; } /// P/L 件(P=采购/L=制造) [SugarColumn(ColumnName = "PurMfg", Length = 1, IsNullable = true)] public string? PurMfg { get; set; } /// 地点 [SugarColumn(ColumnName = "Site", Length = 8, IsNullable = true)] public string? Site { get; set; } /// 购买者 [SugarColumn(ColumnName = "Buyer", Length = 8, IsNullable = true)] public string? Buyer { get; set; } /// 计划员 [SugarColumn(ColumnName = "Planner", Length = 8, IsNullable = true)] public string? Planner { get; set; } /// 生产线 [SugarColumn(ColumnName = "ProdLine", Length = 10, IsNullable = true)] public string? ProdLine { get; set; } /// 采购计量单位 [SugarColumn(ColumnName = "PurUM", Length = 4, IsNullable = true)] public string? PurUM { get; set; } /// 变更日期 [SugarColumn(ColumnName = "ModDate", IsNullable = true)] public DateTime? ModDate { get; set; } /// 创建时间 [SugarColumn(ColumnName = "CreateTime", IsNullable = true)] public DateTime? CreateTime { get; set; } /// 更新时间 [SugarColumn(ColumnName = "UpdateTime", IsNullable = true)] public DateTime? UpdateTime { get; set; } /// 有效 [SugarColumn(ColumnName = "IsActive", IsNullable = true)] public int? IsActive { get; set; } /// 备注 [SugarColumn(ColumnName = "Remark", Length = 255, IsNullable = true)] public string? Remark { get; set; } }