From d45c65cd7247b7865e0d820f9f8b8f001bc3de2c Mon Sep 17 00:00:00 2001 From: "qianhao.xu" Date: Mon, 13 Nov 2023 13:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Model/MES/md/MdBom.cs~合并 | 97 +++++++++++++++++++++++++++++++++++ ZR.Model/mes/md/MdBom.cs | 97 +++++++++++++++++++++++++++++++++++ 2 files changed, 194 insertions(+) create mode 100644 ZR.Model/MES/md/MdBom.cs~合并 create mode 100644 ZR.Model/mes/md/MdBom.cs 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; } + + } +}