2026-01-10 13:47:54 +08:00
|
|
|
|
|
|
|
|
namespace MDM.Model.Process
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工序
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarTable("process_operation", "工序")]
|
2026-01-10 13:47:54 +08:00
|
|
|
public class ProcessOperation
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工序id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "operation_id")]
|
|
|
|
|
public int OperationId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// fk工艺路线code
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "fk_routing_code", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string FkRoutingCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工序code
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "operation_code", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string OperationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工序name
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "operation_name", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string OperationName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工序序号(工序流转号)
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "operation_seq", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public int? OperationSeq { get; set; }
|
|
|
|
|
|
2026-01-26 20:41:34 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 上一站工序序号(工序流转号)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "last_operation_seq", Length = 50)]
|
|
|
|
|
public int? LastOperationSeq { get; set; }
|
|
|
|
|
|
2026-01-10 13:47:54 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 工序类别
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "operation_type", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string OperationType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 描述
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn( Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 标准时间(秒)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "standard_time")]
|
|
|
|
|
public int? StandardTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 控制策略(枚举[1,2,3,4])
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "control_strategy", Length =50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string ControlStrategy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否允许跳过该工序(跳站)
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "is_skippable", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public int IsSkippable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否允许返工
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "is_reworkable")]
|
|
|
|
|
public int IsReworkable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否准许并行
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "is_parallel")]
|
|
|
|
|
public int IsParallel { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 并行组编号(如有)
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "parallel_group_code", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string ParallelGroupCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 默认的下一个工序(可为空,由流转控制表决定)
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "default_next_operation_code",Length =50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string DefaultNextOperationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建人
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "cREATED_BY", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string CreatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "cREATED_TIME")]
|
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新人
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
[SugarColumn(ColumnName = "uPDATED_BY", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
public string UpdatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "uPDATED_TIME")]
|
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|