using Business.Core.Attributes; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; namespace Business.Domain { /// /// Bom预处理 /// [CollectionName("dopbase", "b_bom_pretreatment")] [Comment("Bom预处理")] public class b_bom_pretreatment : BaseEntity { /// /// 所属BOM /// [Comment("所属BOM")] public long sourceid { get; set; } /// /// 本级id /// [Comment("本级id")] public long fid { get; set; } /// /// 父级 /// [Comment("父级")] public long? parent_id { get; set; } /// /// bom明细主键 /// [Comment("bom明细主键")] public long? bom_child_id { get; set; } /// /// bom编号 /// [Comment("bom编号")] [StringLength(20)] public string bom_number { get; set; } /// /// 物料id /// [Comment("物料id")] public long? item_id { get; set; } /// /// 物料名称 /// [Comment("物料名称")] [StringLength(80)] public string item_name { get; set; } /// /// 规格型号 /// [Comment("规格型号")] [StringLength(200)] public string model { get; set; } /// /// 物料编号 /// [Comment("物料编号")] [StringLength(80)] public string item_number { get; set; } /// /// level /// [Comment("level")] public int level { get; set; } /// /// BOMid /// [Comment("BOMid")] public long? bom_id { get; set; } /// /// 项次号 /// [Comment("项次号")] [StringLength(20)] public string num { get; set; } /// /// 供排序使用 /// [Comment("供排序使用")] public long? num_order { get; set; } /// /// 类型 0标准件,1替代件 /// [Comment("类型")] public int type { get; set; } /// /// 单位用量 /// [Comment("单位用量")] [Precision(23, 10)] public decimal? qty { get; set; } /// /// 单位 /// [Comment("单位")] [StringLength(80)] public string unit { get; set; } /// /// 物料属性 0.配置类 1.自制 2.委外加工 3.外购 4.虚拟件 /// [Comment("物料属性")] public int erp_cls { get; set; } /// /// 物料属性名称 /// [Comment("物料属性名称")] [StringLength(80)] public string erp_cls_name { get; set; } /// /// 是否倒冲 /// [Comment("是否倒冲")] public int backflush { get; set; } /// /// 存在替代关系 /// [Comment("存在替代关系")] public int haveicsubs { get; set; } /// /// 群组代码 /// [Comment("群组代码")] [StringLength(20)] public string substitute_code { get; set; } /// /// 替代策略 /// [Comment("替代策略")] public int substitute_strategy { get; set; } /// /// 替代方式 /// [Comment("替代方式")] public int substitute_mode { get; set; } /// /// 版本 /// [Comment("版本")] [StringLength(80)] public string version { get; set; } } }