using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 过站事件历史记录 /// [SugarTable("prd_onwip")] public partial class PrdOnwip : BaseEntity { public PrdOnwip() { 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 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 action { get; set; } = string.Empty; /// /// 过帐事件结果 /// public string action_result { get; set; } = string.Empty; /// /// NG总次数 /// public int ng_times { get; set; } /// /// 自增长Serial(Oracle脚本创建) /// public string serial { get; set; } = string.Empty; /// /// 过站开始时间 /// public DateTime begin_time { get; set; } = DateTime.Now; /// /// 过站结束时间 /// public DateTime? end_time { get; set; } /// /// 是否做过产量计算 /// public int processed { get; set; } /// /// 人员表 /// public string? staffs { 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; } }