namespace MDM.Model.Process
{
///
/// 工序返工规则
///
[SugarTable("process_operation_rework_rule", "工序返工规则")]
public class ProcessOperationReworkRule
{
///
/// id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "rework_rule_id")]
public int ReworkRuleId { get; set; }
///
/// 所属工艺code
///
[SugarColumn(ColumnName = "fk_routing_code", Length = 50)]
public string FkRoutingCode { get; set; }
///
/// 所属工序code
///
[SugarColumn(ColumnName = "fk_operation_code", Length = 50)]
public string FkOperationCode { get; set; }
///
/// 是否允许返工
///
[SugarColumn(ColumnName = "is_rework_allowed", Length = 50)]
public string IsReworkAllowed { get; set; }
///
/// 最大返工次数(如 3 次)
///
[SugarColumn(ColumnName = "max_rework_times")]
public int? MaxReworkTimes { get; set; }
///
/// 返工后回到哪个工序(通常是自身,也可能是前序)
///
[SugarColumn(ColumnName = "rework_target_operation_code", Length = 50)]
public string ReworkTargetOperationCode { get; set; }
///
/// 返工触发条件,如检验结果 = 不合格
///
[SugarColumn(ColumnName = "rework_condition", Length = 50)]
public string ReworkCondition { get; set; }
///
/// 返工规则描述
///
[SugarColumn(ColumnDataType ="text")]
public string Description { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnName = "cREATED_BY", Length = 50)]
public string CreatedBy { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "cREATED_TIME")]
public DateTime? CreatedTime { get; set; }
///
/// 更新人
///
[SugarColumn(ColumnName = "uPDATED_BY", Length = 50)]
public string UpdatedBy { get; set; }
///
/// 更新时间
///
[SugarColumn(ColumnName = "uPDATED_TIME")]
public DateTime? UpdatedTime { get; set; }
}
}