using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
namespace Business.Domain
{
///
/// 物料BOM明细
///
[CollectionName("dopbase", "ic_bom_child")]
[Comment("物料BOM明细")]
[Index(nameof(bom_number), nameof(item_number), nameof(version), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
public class ic_bom_child : BaseEntity
{
public ic_bom_child(long Id) : base(Id)
{
}
///
/// bom主键
///
[Required]
[Comment("bom主键")]
public long? bom_id { get; set; }
///
/// bom单编号
///
[StringLength(20)]
[Comment("bom单编号")]
public string bom_number { get; set; }
///
/// 是否是BOM
///
[Comment("是否是BOM")]
public int? is_bom { get; set; }
///
/// 物料id
///
[Required]
[Comment("物料id")]
public long? icitem_id { get; set; }
///
/// 物料代码
///
[StringLength(80)]
[Comment("物料代码")]
public string item_number { get; set; }
///
/// 物料名称
///
[StringLength(200)]
[Comment("物料名称")]
public string item_name { get; set; }
///
/// 单位
///
[StringLength(20)]
[Comment("单位")]
public string unit { get; set; }
///
/// 用量
///
[Precision(23, 10)]
[Comment("用量")]
public decimal? qty { get; set; }
///
/// 损耗率
///
[Precision(23, 10)]
[Comment("损耗率")]
public decimal? scrap { get; set; }
///
/// 是否倒冲
///
[Comment("是否倒冲")]
public int? backflush { get; set; }
///
/// 是否关键件
///
[Comment("是否关键件")]
public int? iskeyitem { get; set; }
///
/// 存在替代关系
///
[Comment("存在替代关系")]
public int? haveicsubs { get; set; }
///
/// 群组代码
///
[StringLength(20)]
[Comment("群组代码")]
public string substitute_code { get; set; }
///
/// 是否群组替代
///
[Comment("是否群组替代")]
public int? is_replace { get; set; }
///
/// 组合模式
///
[StringLength(2000)]
[Comment("组合模式")]
public string icitem_ids { get; set; }
///
/// 备注
///
[StringLength(1000)]
[Comment("备注")]
public string note { get; set; }
///
/// 顺序号
///
[Comment("顺序号")]
public int? entryid { get; set; }
///
/// 物料类型
///
[Comment("物料类型")]
public int? type { get; set; }
///
/// 物料属性
///
[Comment("物料属性")]
public int? erp_cls { get; set; }
///
/// 使用状态
///
[Comment("使用状态")]
public int? use_status { get; set; }
///
/// 生效日期
///
[Comment("生效日期")]
public DateTime? begin_day { get; set; }
///
/// 失效日期
///
[Comment("失效日期")]
public DateTime? end_day { get; set; }
///
/// 操作时间
///
[Comment("操作时间")]
public DateTime? op_time { get; set; }
///
/// 序号
///
[Comment("序号")]
public int? child_num { get; set; }
///
/// 版本
///
[StringLength(80)]
[Comment("版本")]
public string version { get; set; }
//[ForeignKey("Id")]
//public virtual ic_bom Bom { get; set; }
}
}