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