using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 维修主资料 /// [SugarTable("prd_repair")] public partial class PrdRepair : BaseEntity { public PrdRepair() { 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 source_card { get; set; } = string.Empty; /// /// 转换前的产品序列号流水号 /// public int source_card_seq { get; set; } /// /// Card类型: cardtype_product: 成品, cardtype_part: 物料 /// public string card_type { 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; /// /// 送修途程代码 /// public string from_route_code { get; set; } = string.Empty; /// /// 送修途程版本 /// public string from_route_version { get; set; } = string.Empty; /// /// 送修工序代码 /// public string from_process_code { get; set; } = string.Empty; /// /// 送修工段代码 /// public string from_segment_code { get; set; } = string.Empty; /// /// 送修产线代码 /// public string from_product_linecode { get; set; } = string.Empty; /// /// 送修工位代码 /// public string from_station_code { get; set; } = string.Empty; /// /// 送修年份 /// public int from_year { get; set; } /// /// 送修月份 /// public int from_month { get; set; } /// /// 送修周别 /// public int from_week { 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 from_user_name { get; set; } = string.Empty; /// /// 送修备注 /// public string? from_memo { get; set; } /// /// 送修时间 /// public DateTime from_time { get; set; } = DateTime.Now; /// /// 维修来源类型 Onwip, Repair, RMA /// public string from_input_type { get; set; } = string.Empty; /// /// NG次数 /// public int ng_times { get; set; } /// /// 维修状态 New, (产线发现不良) Confirm, (送修完) Repair, (维修中) Complete, (维修完成) Reflow, (维修回流) Scrap, (报废) Repeatng, OffMO, (脱离工单) Split(拆解) /// public string repair_status { get; set; } = string.Empty; /// /// 维修完成人名称 /// public string? repaired_user_name { get; set; } /// /// 维修完成时间 /// public DateTime? repaired_time { get; set; } /// /// 维修完成备注 /// public string? repaired_demo { get; set; } /// /// 确认工位代码 /// public string? confirm_station_code { get; set; } /// /// 确认产线代码 /// public string? confirm_process_code { get; set; } /// /// 确认人员名称 /// public string? confirm_user_name { get; set; } /// /// 确认时间 /// public DateTime? confirm_time { get; set; } /// /// 回流工单代码 /// public string? reflow_mo_code { get; set; } /// /// 回流途程代码 /// public string? reflow_route_code { get; set; } /// /// 回流涂程版本 /// public string? reflow_route_version { get; set; } /// /// 回流工序代码 /// public string? reflow_process_code { get; set; } /// /// 回流岗位代码 /// public string? reflow_station_code { get; set; } /// /// 维修岗位代码 /// public string? repair_station_code { get; set; } /// /// 报废原因 /// public string? scrap_cause { get; set; } /// /// 送修线外工序 /// public string? from_out_route_code { get; set; } /// /// 维修类型 Normal: 普通, Misjudge: 误判 /// public string? repair_type { get; set; } /// /// RMA单号 /// public string? rma_bill_code { get; set; } /// /// 维修人员ID /// public string? repair_user_id { get; set; } /// /// 维修人员姓名 /// public string? repair_user_name { get; set; } /// /// 维修时间 /// public DateTime? repair_time { get; set; } /// /// 备注 /// public string? remark { 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; } }