using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 批次在制品信息 /// [SugarTable("prd_lot_simulation")] public partial class PrdLotSimulation : BaseEntity { public PrdLotSimulation() { id = SnowflakeIdHelper.NextId(); } /// /// 租户ID /// public string? tenant_id { get; set; } /// /// 所属组织 /// public string? org_id { get; set; } /// /// 批次号/派工单代码 /// public string lot_no { get; set; } = string.Empty; /// /// 工单代码 /// public string mo_code { get; set; } = string.Empty; /// /// 产品代码 /// public string item_code { get; set; } = string.Empty; /// /// 工艺路线代码 /// 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 station_code { get; set; } = string.Empty; /// /// 开工时间 /// public DateTime start_time { get; set; } = DateTime.Now; /// /// 完工时间 /// public DateTime? end_time { get; set; } /// /// 作业总人时(分钟数) /// public decimal? man_time { get; set; } /// /// 作业总机时(分钟数) /// public decimal? machine_time { get; set; } /// /// 作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工 /// public string status { get; set; } = string.Empty; /// /// 进站数量 /// public decimal? input_qty { get; set; } /// /// 合格数量 /// public decimal? qualifity_qty { get; set; } /// /// 不合格数量 /// public decimal? un_qualifity_qty { get; set; } /// /// 报废数量 /// public decimal? scrap_qty { 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; } }