using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 上料历史记录
///
[SugarTable("prd_onwipmaterial")]
public partial class PrdOnwipmaterial : BaseEntity
{
public PrdOnwipmaterial()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 租户ID
///
public string? tenant_id { get; set; }
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 产品序列号
///
public string r_card { get; set; } = string.Empty;
///
/// 产品序列号过站次序
///
public int r_card_seq { get; set; }
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 物料上料次序
///
public int material_seq { get; set; }
///
/// 最小包装号或半成品的产品序列号
///
public string material_card { get; set; } = string.Empty;
///
/// 产品类型代码
///
public string category_code { get; set; } = string.Empty;
///
/// 产品代码
///
public string item_code { get; set; } = string.Empty;
///
/// 物料代码
///
public string material_code { get; set; } = string.Empty;
///
/// 物料类型
///
public int material_type { get; set; }
///
/// 数量
///
public decimal qty { get; set; }
///
/// 供应商代码
///
public string vendor_code { get; set; } = string.Empty;
///
/// 供应商LOT号
///
public string vendor_lot { get; set; } = string.Empty;
///
/// 生产日期(入库日期)
///
public int date_code { get; set; }
///
/// 班制代码
///
public string shift_type_code { get; set; } = string.Empty;
///
/// 班次代码
///
public string shift_code { get; set; } = string.Empty;
///
/// 时段代码
///
public string tp_code { get; set; } = string.Empty;
///
/// 工作天
///
public int shift_day { get; set; }
///
/// 工艺路线代码
///
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 factory_code { get; set; } = string.Empty;
///
/// 工段代码
///
public string segment_code { get; set; } = string.Empty;
///
/// 产线代码
///
public string production_line_code { get; set; } = string.Empty;
///
/// 岗位代码
///
public string station_code { get; set; } = string.Empty;
///
/// 事件类型:1:上料, 2:拆解
///
public string action_type { get; set; } = string.Empty;
///
/// 拆解人姓名
///
public string? drop_user_name { get; set; }
///
/// 拆解人员ID
///
public string? drop_user_id { get; set; }
///
/// 拆解时间
///
public DateTime? drop_time { get; set; }
///
/// 拆解岗位
///
public string? drop_station { get; set; }
///
/// 拆解工序
///
public string? drop_process_code { get; set; }
///
/// 时间戳
///
public string? time_stamp { get; set; }
///
/// 扩展字段
///
public string? extras { 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; }
}