Valeo_Line_MES_backend/MDM/Models/Process/ProcessOperationWorkstationMapping.cs

110 lines
3.2 KiB
C#
Raw Permalink Normal View History

2026-01-10 13:47:54 +08:00
using System.ComponentModel.DataAnnotations;
namespace MDM.Model.Process
{
/// <summary>
///
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarTable("process_operation_workstation_mapping","工序工位映射")]
2026-01-10 13:47:54 +08:00
public class ProcessOperationWorkstationMapping
{
/// <summary>
/// Id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 工序路线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(ColumnName = "fk_operation_code", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkOperationCode { get; set; }
/// <summary>
/// 生产线体/工作中心code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_productlinebody_code", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkProductlinebodyCode { get; set; }
/// <summary>
/// 工厂code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_factory_code", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkFactoryCode { get; set; }
/// <summary>
/// 车间code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_workshopcode", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkWorkshopcode { get; set; }
/// <summary>
/// 工位code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_workstation_code", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkWorkstationCode { get; set; }
/// <summary>
/// 是否有效1=有效0=无效
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "is_active", Length = 50)]
2026-01-10 13:47:54 +08:00
public string IsActive { get; set; }
/// <summary>
/// 优先级(可选):如果某工位可执行多个工序,用来排序优先级
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// 标准加工时间(分钟/小时,可选)
/// </summary>
[SugarColumn(ColumnName = "standard_time")]
public decimal StandardTime { get; set; }
/// <summary>
/// 准备时间(如换模等,可选)
/// </summary>
[SugarColumn(ColumnName = "setup_time")]
public decimal SetupTime { get; set; }
/// <summary>
/// CreatedTime
/// </summary>
[SugarColumn(ColumnName = "created_time")]
public DateTime? CreatedTime { 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>
2026-01-16 10:40:58 +08:00
[SugarColumn( Length = 50)]
2026-01-10 13:47:54 +08:00
public string Remark { get; set; }
/// <summary>
/// UpdatedTime
/// </summary>
[SugarColumn(ColumnName = "updated_time")]
public DateTime? UpdatedTime { 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; }
}
}