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")] public string FkRoutingCode { get; set; } /// /// 所属工序code /// [SugarColumn(ColumnName = "fk_operation_code")] public string FkOperationCode { get; set; } /// /// 是否允许返工 /// [SugarColumn(ColumnName = "is_rework_allowed")] public string IsReworkAllowed { get; set; } /// /// 最大返工次数(如 3 次) /// [SugarColumn(ColumnName = "max_rework_times")] public int? MaxReworkTimes { get; set; } /// /// 返工后回到哪个工序(通常是自身,也可能是前序) /// [SugarColumn(ColumnName = "rework_target_operation_code")] public string ReworkTargetOperationCode { get; set; } /// /// 返工触发条件,如检验结果 = 不合格 /// [SugarColumn(ColumnName = "rework_condition")] public string ReworkCondition { get; set; } /// /// 返工规则描述 /// public string Description { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "cREATED_BY")] public string CreatedBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "cREATED_TIME")] public DateTime? CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "uPDATED_BY")] public string UpdatedBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "uPDATED_TIME")] public DateTime? UpdatedTime { get; set; } } }