diff --git a/ZR.Model/MES/md/MdBom.cs~合并 b/ZR.Model/MES/md/MdBom.cs~合并 new file mode 100644 index 00000000..007a62f8 --- /dev/null +++ b/ZR.Model/MES/md/MdBom.cs~合并 @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace ZR.Model.mes.md +{ + /// + /// 物料清单 + /// + [SugarTable("md_bom")] + public class MdBom + { + + /// + /// 流水号 + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] + public int Id { get; set; } + + /// + /// 父产品id + /// + [SugarColumn(ColumnName = "parent_product_id")] + public int? ParentProductId { get; set; } + + /// + /// 产品编号 + /// + [SugarColumn(ColumnName = "product_code")] + public string ProductCode { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName = "product_name")] + public string ProductName { get; set; } + /// + /// 零件类型 + /// + [SugarColumn(ColumnName = "product_type")] + public string ProductType { get; set; } + /// + /// 安全库存 + /// + [SugarColumn(ColumnName = "safety_stock")] + public int? SafetyStock { get; set; } + /// + /// 位置/来源 + /// + [SugarColumn(ColumnName = "product_position")] + public string ProductPosition { get; set; } + /// + /// 需求数量 + /// + [SugarColumn(ColumnName = "requireNum")] + public int? RequireNum { get; set; } + /// + /// 单位id + /// + [SugarColumn(ColumnName = "unit_id")] + public int? UnitId { get; set; } + /// + /// 租户号 + /// + [SugarColumn(ColumnName = "TENANT_ID")] + public string TenantId { get; set; } + /// + /// 乐观锁 + /// + [SugarColumn(ColumnName = "REVISION")] + public int? Revision { get; set; } + /// + /// 创建人 + /// + [SugarColumn(ColumnName = "CREATED_BY")] + public string CreatedBy { get; set; } + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "CREATED_TIME")] + public DateTime? CreatedTime { get; set; } + /// + /// 更新人 + /// + [SugarColumn(ColumnName = "UPDATED_BY")] + public string UpdatedBy { get; set; } + /// + /// 更新时间 + /// + [SugarColumn(ColumnName = "UPDATED_TIME")] + public DateTime? UpdatedTime { get; set; } + + + [SqlSugar.SugarColumn(IsIgnore = true)] + public List Child { get; set; } + + } +} diff --git a/ZR.Model/mes/md/MdBom.cs b/ZR.Model/mes/md/MdBom.cs new file mode 100644 index 00000000..007a62f8 --- /dev/null +++ b/ZR.Model/mes/md/MdBom.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace ZR.Model.mes.md +{ + /// + /// 物料清单 + /// + [SugarTable("md_bom")] + public class MdBom + { + + /// + /// 流水号 + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] + public int Id { get; set; } + + /// + /// 父产品id + /// + [SugarColumn(ColumnName = "parent_product_id")] + public int? ParentProductId { get; set; } + + /// + /// 产品编号 + /// + [SugarColumn(ColumnName = "product_code")] + public string ProductCode { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName = "product_name")] + public string ProductName { get; set; } + /// + /// 零件类型 + /// + [SugarColumn(ColumnName = "product_type")] + public string ProductType { get; set; } + /// + /// 安全库存 + /// + [SugarColumn(ColumnName = "safety_stock")] + public int? SafetyStock { get; set; } + /// + /// 位置/来源 + /// + [SugarColumn(ColumnName = "product_position")] + public string ProductPosition { get; set; } + /// + /// 需求数量 + /// + [SugarColumn(ColumnName = "requireNum")] + public int? RequireNum { get; set; } + /// + /// 单位id + /// + [SugarColumn(ColumnName = "unit_id")] + public int? UnitId { get; set; } + /// + /// 租户号 + /// + [SugarColumn(ColumnName = "TENANT_ID")] + public string TenantId { get; set; } + /// + /// 乐观锁 + /// + [SugarColumn(ColumnName = "REVISION")] + public int? Revision { get; set; } + /// + /// 创建人 + /// + [SugarColumn(ColumnName = "CREATED_BY")] + public string CreatedBy { get; set; } + /// + /// 创建时间 + /// + [SugarColumn(ColumnName = "CREATED_TIME")] + public DateTime? CreatedTime { get; set; } + /// + /// 更新人 + /// + [SugarColumn(ColumnName = "UPDATED_BY")] + public string UpdatedBy { get; set; } + /// + /// 更新时间 + /// + [SugarColumn(ColumnName = "UPDATED_TIME")] + public DateTime? UpdatedTime { get; set; } + + + [SqlSugar.SugarColumn(IsIgnore = true)] + public List Child { get; set; } + + } +}