using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Win_in.Sfs.Shared.Domain;
using Win_in.Sfs.Shared.Domain.Entities;
using Win_in.Sfs.Shared.Domain.Shared;
namespace Win_in.Sfs.Basedata.Domain;
///
/// 物料清单
///
public class Bom : SfsBaseDataAggregateRootBase, IHasTimeRange
{
// ///
// /// BOM代码
// ///
// public string Code { get; set; }
///
/// 父物料号
///
[IgnoreUpdate]
public string Product { get; set; }
///
/// 子物料号
///
[IgnoreUpdate]
public string Component { get; set; }
///
/// 计量单位
///
[Display(Name = "计量单位")]
[MaxLength(SfsPropertyConst.CodeLength)]
public string ComponentUom { get; set; }
///
/// 数量
///
[Display(Name = "数量")]
[Column(TypeName = "decimal(18,6)")]
public decimal ComponentQty { get; set; }
///
/// 开始时间
///
public DateTime? BeginTime { get; set; }
///
/// 结束时间
///
public DateTime? EndTime { get; set; }
///
/// ERP工序
///
public string ERPOp { get; set; }
///
/// 层级
///
public int Layer { get; set; } = 1;
///
/// 制造工序
///
public string MFGOp { get; set; }
///
/// 配送方式
///
public EnumDistributionType DistributionType { get; set; }
///
/// 取整方式
///
public EnumTruncType TruncType { get; set; }
///
/// 计划拆分规则
///
public EnumPlannedSplitRule PlannedSplitRule { get; set; }
}