using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace Business.Domain
{
///
/// Bom明细检查结果
///
[CollectionName("dopbase", "b_bom_child_examine")]
[Comment("Bom明细检查结果")]
public class b_bom_child_examine : BaseEntity
{
///
/// 资源检查ID
///
[Comment("资源检查ID")]
public long? examine_id { get; set; }
///
/// 本级id
///
[Comment("本级id")]
public long fid { get; set; }
///
/// 父级id
///
[Comment("父级id")]
public long? parent_id { get; set; }
///
/// bom明细主键
///
[Comment("bom明细主键")]
public long? bom_child_id { get; set; }
///
/// 版本
///
[StringLength(80)]
[Comment("版本")]
public string version { get; set; }
///
/// bom编号
///
[Comment("bom编号")]
[StringLength(20)]
public string bom_number { get; set; }
///
/// 物料编号
///
[Comment("物料编号")]
[StringLength(80)]
public string item_number { get; set; }
///
/// level
///
[Comment("level")]
public int? level { get; set; }
///
/// 订单行ID
///
[Comment("订单行ID")]
public long? sentry_id { get; set; }
///
/// BOMid
///
[Comment("BOMid")]
public long? bom_id { get; set; }
///
/// 项次号
///
[Comment("项次号")]
[StringLength(50)]
public string num { get; set; }
///
/// 排序使用
///
[Comment("排序使用")]
public long? num_order { get; set; }
///
/// 类型 0标准件,1替代件
///
[Comment("类型")]
public int? type { get; set; }
///
/// 物料id
///
[Comment("物料id")]
public long? item_id { get; set; }
///
/// 物料名称
///
[Comment("物料名称")]
[StringLength(200)]
public string item_name { get; set; }
///
/// 规格型号
///
[Comment("规格型号")]
[StringLength(200)]
public string model { 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("单位用量")]
[Precision(23, 10)]
public decimal? qty { get; set; }
///
/// 库存数量
///
[Comment("库存数量")]
[Precision(23, 10)]
public decimal? sqty { get; set; }
///
/// 库存占用数量
///
[Comment("库存占用数量")]
[Precision(23, 10)]
public decimal? use_qty { get; set; }
///
/// 本级缺料数量
///
[Comment("本级缺料数量")]
[Precision(23, 10)]
public decimal? self_lack_qty { get; set; }
///
/// 缺料数量
///
[Comment("缺料数量")]
[Precision(23, 10)]
public decimal? lack_qty { get; set; }
///
/// 在制占用数量
///
[Comment("在制占用数量")]
[Precision(23, 10)]
public decimal? mo_qty { get; set; }
///
/// 自制数量
///
[Comment("自制数量")]
[Precision(23, 10)]
public decimal? make_qty { get; set; }
///
/// 采购数量
///
[Comment("采购数量")]
[Precision(23, 10)]
public decimal? purchase_qty { get; set; }
///
/// 采购明细占用数量
///
[Comment("采购明细占用数量")]
[Precision(23, 10)]
public decimal? purchase_occupy_qty { get; set; }
///
/// 委外数量
///
[Comment("委外数量")]
[Precision(23, 10)]
public decimal? subcontracting_qty { get; set; }
///
/// 齐套时间
///
[Comment("齐套时间")]
public DateTime? kitting_time { get; set; }
///
/// 自制时长(天)
///
[Comment("自制时长(天)")]
public int? make_time { get; set; }
///
/// 采购前置(需加上自制)
///
[Comment("采购前置时间")]
public int? pre_time { get; set; }
///
/// 满足时间
///
[Comment("满足时间")]
public DateTime? satisfy_time { get; set; }
///
/// 是否BOM
///
[Comment("是否BOM")]
public int? isbom { get; set; }
///
/// 存在替代关系
///
[Comment("存在替代关系")]
public int? haveicsubs { get; set; }
///
/// 群组代码
///
[Comment("群组代码")]
[StringLength(20)]
public string substitute_code { get; set; }
///
/// 群组优先级
///
[Comment("群组优先级")]
public int? substitute_all_num { get; set; }
///
/// 替代策略
///
[Comment("替代策略")]
public int? substitute_strategy { get; set; }
///
/// 替代方式
///
[Comment("替代方式")]
public int? substitute_mode { get; set; }
///
/// 物料状态-- -1.无需求 0.缺料 1.充足 2.可制,时间满足 3.可制,时间不满足 4.采购 5.委外
///
[Comment("物料状态")]
public int? stock_state { get; set; }
///
/// 单个产品总需要用量
///
[Comment("单个产品总需要用量")]
[Precision(23, 10)]
public decimal? needCount { get; set; }
///
/// 是否使用此物料
///
[Comment("是否使用此物料")]
public bool is_use { get; set; }
}
}