using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 批控管料备料(岗位用料信息)
///
[SugarTable("prd_station_prepare_material")]
public partial class PrdStationPrepareMaterial : BaseEntity
{
public PrdStationPrepareMaterial()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 物料备料顺序(按单个物料进行排序)
///
public int seq { get; set; }
///
/// 工序BOM物料代码(主料)
///
public string bom_material_code { get; set; } = string.Empty;
///
/// 备料物料代码(主料或替代料)
///
public string prepare_material_code { get; set; } = string.Empty;
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 产品类型代码
///
public string category_code { get; set; } = string.Empty;
///
/// 产品代码
///
public string item_code { get; set; } = string.Empty;
///
/// 工序BOM版本
///
public string process_bom_version { get; set; } = string.Empty;
///
/// 工艺路线代码
///
public string route_code { get; set; } = string.Empty;
///
/// 工艺路线版本
///
public string route_version { get; set; } = string.Empty;
///
/// 工序代码
///
public string process_code { get; set; } = string.Empty;
///
/// 岗位代码
///
public string station_code { get; set; } = string.Empty;
///
/// 最小包装号或半成品的产品序列号,INV_BARCODE.BARCODE
///
public string material_card { get; set; } = string.Empty;
///
/// 数量
///
public decimal qty { get; set; }
///
/// 供应商代码
///
public string vendor_code { get; set; } = string.Empty;
///
/// 供应商LOT号
///
public string vendor_lot { get; set; } = string.Empty;
///
/// 生产日期(入库日期)
///
public DateTime date_code { get; set; } = DateTime.Now;
///
/// 时间戳
///
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; }
///
/// 扩展字段
///
public string? extras { get; set; }
}