using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 工单BOM资料
///
[SugarTable("prd_mo_bom")]
public partial class PrdMoBom : BaseEntity
{
public PrdMoBom()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 租户ID
///
public string? tenant_id { get; set; }
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 工单明细ID
///
public string mo_detail_id { get; set; } = string.Empty;
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 工单行号
///
public int mo_line { get; set; }
///
/// 物品ID
///
public string material_id { get; set; } = string.Empty;
///
/// 物品代码
///
public string material_code { get; set; } = string.Empty;
///
/// 物品附属信息
///
public string? material_attribute { get; set; }
///
/// 单位
///
public string unit { get; set; } = string.Empty;
///
/// (1入库倒冲/2工序倒冲/3领料/4.虚拟件)
///
public int wip_type { get; set; }
///
/// prdorgid
///
public string? prd_org_id { get; set; }
///
/// 计划发料数量
///
public decimal qty { get; set; }
///
/// 已领数量
///
public decimal? pick_qty { get; set; }
///
/// 已调拨数量
///
public decimal? trans_qty { get; set; }
///
/// 已扫描领用数量
///
public decimal? scan_pick_qty { get; set; }
///
/// 已扫描调拨数量
///
public decimal? scan_trans_qty { get; set; }
///
/// feedqty
///
public decimal? feed_qty { get; set; }
///
/// unitqty
///
public decimal? unit_qty { get; set; }
///
/// 损耗率
///
public decimal? compscap_qty { get; set; }
///
/// 是否计算
///
public int? is_comsume { get; set; }
///
/// 仓库ID
///
public string? wh_id { get; set; }
///
/// 仓库代码
///
public string? wh_code { get; set; }
///
/// 备注
///
public string? remark { get; set; }
///
/// 扩展字段
///
public string? extras { get; set; }
///
/// 时间戳
///
public string? time_stamp { get; set; }
///
/// 创建用户
///
public string? create_id { get; set; }
///
/// 创建时间
///
public DateTime? create_time { get; set; }
///
/// 修改用户
///
public string? modify_id { get; set; }
///
/// 修改时间
///
public DateTime? modify_time { get; set; }
}