using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 在制品历史记录 /// [SugarTable("prd_simulationreport")] public partial class PrdSimulationreport : BaseEntity { public PrdSimulationreport() { id = SnowflakeIdHelper.NextId(); } /// /// 所属组织 /// 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 string source_card { get; set; } = string.Empty; /// /// 转换前的产品序列号流水号 /// public int source_card_seq { get; set; } /// /// 产品类型代码 /// public string category_code { get; set; } = string.Empty; /// /// 产品代码 /// public string item_code { get; set; } = string.Empty; /// /// 关联比例 /// public decimal relation_qty { 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; /// /// 装箱条码 /// public string? carton_code { get; set; } /// /// 抽检批号 /// public string? lot_no { get; set; } /// /// 产品状态: GOOD, OFFLINE, OFFMO, OUTLINE, NG, REJECT, SCRAP /// public string product_status { get; set; } = string.Empty; /// /// 最后过站事件代码 /// public string last_action { get; set; } = string.Empty; /// /// 过站事件列表 /// public string action_list { get; set; } = string.Empty; /// /// NG总次数 /// public int ng_times { get; set; } /// /// 过站开始时间 /// public DateTime begin_time { get; set; } = DateTime.Now; /// /// 过站结束时间 /// public DateTime? end_time { get; set; } /// /// 是否完工 /// public int is_complete { get; set; } /// /// 员工表 /// public string? staffs { 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; } /// /// 扩展字段 /// public string? extras { get; set; } }