using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 工序派工单
///
[SugarTable("prd_dispatch")]
public partial class PrdDispatch : BaseEntity
{
public PrdDispatch()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 租户ID
///
public string? tenant_id { get; set; }
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 派工单代码
///
public string dispatch_code { get; set; } = string.Empty;
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 工序代码
///
public string process_code { get; set; } = string.Empty;
///
/// 计划派工数
///
public decimal plan_qty { get; set; }
///
/// 工作中心代码
///
public string work_center_code { get; set; } = string.Empty;
///
/// 派工单状态:10 未派工 20 已派工 30 工位派工
///
public string status { get; set; } = string.Empty;
///
/// 派工单状态
///
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; }
}