using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace Business.Domain
{
///
/// 物料齐套明细
///
[CollectionName("dopbase", "b_order_detail")]
[Comment("物料齐套明细")]
public class b_order_detail : BaseEntity
{
///
/// 工单齐套检查id
///
[Comment("工单齐套检查id")]
public long? order_examine_id { get; set; }
///
/// 本级id
///
[Comment("本级id")]
public long fid { get; set; }
///
/// 父级
///
[Comment("父级")]
public long? parent_id { get; set; }
///
/// 物料id
///
[Comment("物料id")]
public long? item_id { get; set; }
///
/// bom编号
///
[Comment("bom编号")]
public string bom_number { get; set; }
///
/// 物料编号
///
[Comment("物料编号")]
public string item_number { get; set; }
///
/// 物料名称
///
[Comment("物料名称")]
public string item_name { get; set; }
///
/// 项次号
///
[Comment("项次号")]
[StringLength(50)]
public string num { get; set; }
///
/// 排序使用
///
[Comment("排序使用")]
public long? num_order { get; set; }
///
/// 用量
///
[Comment("用量")]
[Precision(23, 10)]
public decimal? qty { get; set; }
///
/// 本级缺料数量
///
[Comment("本级缺料数量")]
[Precision(23, 10)]
public decimal? self_lack_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? 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 string substitute_code { get; set; }
///
/// 替代策略
///
[Comment("替代策略")]
public int? substitute_strategy { get; set; }
///
/// 替代方式
///
[Comment("替代方式")]
public int? substitute_mode { get; set; }
///
/// 是否使用此物料
///
[Comment("是否使用此物料")]
public bool? is_use { get; set; }
}
}