using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 工位派工单 /// [SugarTable("prd_dispatch_station")] public partial class PrdDispatchStation : BaseEntity { public PrdDispatchStation() { id = SnowflakeIdHelper.NextId(); } /// /// 租户ID /// public string? tenant_id { get; set; } /// /// 所属组织 /// public string? org_id { get; set; } /// /// 派工单代码 /// public string dispatch_code { get; set; } = string.Empty; /// /// 派工单序号(1开始,最大+1,不强制连续) /// public int seq { get; set; } /// /// 工单代码 /// public string mo_code { get; set; } = string.Empty; /// /// 工序代码 /// public string process_code { get; set; } = string.Empty; /// /// 工位代码 /// public string station_code { get; set; } = string.Empty; /// /// 计划派工数 /// public decimal plan_qty { get; set; } /// /// 工作中心代码 /// public string work_center_code { get; set; } = string.Empty; /// /// 状态 /// public string status { get; set; } = string.Empty; /// /// 派工单状态:10 未派工 20 已派工 /// public string? dispatch_status { 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; } }