Valeo_Line_MES_backend/MDM/Models/Plant/PlantWorkstation.cs

124 lines
3.7 KiB
C#
Raw Normal View History

2026-01-10 13:47:54 +08:00
namespace MDM.Model.Plant
{
/// <summary>
/// 工站/资源组
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarTable("plant_workstation", "工站/资源组")]
2026-01-10 13:47:54 +08:00
public class PlantWorkstation
{
/// <summary>
/// 工站id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "workstation_id")]
public int WorkstationId { get; set; }
/// <summary>
/// 工厂code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_factory_site_code",Length =50)]
2026-01-10 13:47:54 +08:00
public string FkFactorySiteCode { get; set; }
/// <summary>
/// 车间code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "fk_workshop_code", 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_productlinebody", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FkProductlinebody { get; set; }
/// <summary>
/// 工站code
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "workstation_code",Length =50)]
2026-01-10 13:47:54 +08:00
public string WorkstationCode { get; set; }
/// <summary>
/// 工站name
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "workstation_name",Length =50)]
2026-01-10 13:47:54 +08:00
public string WorkstationName { get; set; }
/// <summary>
/// 工站类别
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "workstaion_type", Length = 50)]
2026-01-10 13:47:54 +08:00
public string WorkstaionType { get; set; }
/// <summary>
///PLC地址
/// </summary>
2026-01-17 10:42:02 +08:00
[SugarColumn(ColumnName = "plc_ip")]
public string PlcIP { get; set; }
2026-01-10 13:47:54 +08:00
2026-01-19 13:46:29 +08:00
/// <summary>
///机架号(多数中小型 PLC 默认 0
/// </summary>
[SugarColumn(ColumnName = "Rack")]
public int Rack { get; set; }
2026-01-10 13:47:54 +08:00
2026-01-19 13:46:29 +08:00
/// <summary>
///插槽号(如 S7-1200/1500 默认 1
/// </summary>
[SugarColumn(ColumnName = "Slot")]
public int Slot { get; set; }
2026-01-10 13:47:54 +08:00
/// <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>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "function_group_code",Length =50)]
2026-01-10 13:47:54 +08:00
public string FunctionGroupCode { get; set; }
/// <summary>
/// 功能组名称,如焊接组、装配组
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "function_group_name", Length = 50)]
2026-01-10 13:47:54 +08:00
public string FunctionGroupName { get; set; }
/// <summary>
/// 是否可替换1=可替换0=不可替换
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "is_replaceable", Length = 50)]
2026-01-10 13:47:54 +08:00
public int? IsReplaceable { 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; }
2026-01-19 13:46:29 +08:00
[SugarColumn(ColumnName = "status")]
public int Status { get; set; }
2026-01-10 13:47:54 +08:00
}
}