using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 序列号转换历史记录
///
[SugarTable("prd_onwip_rcardtrans")]
public partial class PrdOnwipRcardtrans : BaseEntity
{
public PrdOnwipRcardtrans()
{
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 t_card { get; set; } = string.Empty;
///
/// 转换前的产品序列号流水号
///
public int t_card_seq { get; set; }
///
/// 最初的产品序列号
///
public string source_card { get; set; } = string.Empty;
///
/// 最初的产品序列号流水号
///
public int source_card_seq { get; set; }
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 产品序列号
///
public string item_code { get; set; } = string.Empty;
///
/// 产品分类代码
///
public string category_code { get; set; } = string.Empty;
///
/// 关联比例
///
public decimal relation_qty { 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 segment_code { get; set; } = string.Empty;
///
/// 工厂代码
///
public string factory_code { get; set; } = string.Empty;
///
/// 产线代码
///
public string production_line_code { get; set; } = string.Empty;
///
/// 岗位代码
///
public string station_code { get; set; } = string.Empty;
///
/// 班制代码
///
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;
///
/// 序列号转换类型 IdMerge: 序列号转换, Router: 分板, Replace:序列号替换
///
public int id_merge_type { get; set; }
///
/// 备注
///
public string? remark { 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; }
}