124 lines
3.7 KiB
C#
124 lines
3.7 KiB
C#
|
||
namespace MDM.Model.Plant
|
||
{
|
||
/// <summary>
|
||
/// 工站/资源组
|
||
/// </summary>
|
||
[SugarTable("plant_workstation", "工站/资源组")]
|
||
public class PlantWorkstation
|
||
{
|
||
/// <summary>
|
||
/// 工站id
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "workstation_id")]
|
||
public int WorkstationId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工厂code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_factory_site_code",Length =50)]
|
||
public string FkFactorySiteCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 车间code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_workshop_code", Length = 50)]
|
||
public string FkWorkshopCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 生产线体code
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "fk_productlinebody", Length = 50)]
|
||
public string FkProductlinebody { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工站code
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "workstation_code",Length =50)]
|
||
public string WorkstationCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工站name
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workstation_name",Length =50)]
|
||
public string WorkstationName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工站类别
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workstaion_type", Length = 50)]
|
||
public string WorkstaionType { get; set; }
|
||
|
||
|
||
|
||
|
||
/// <summary>
|
||
///PLC地址
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "plc_ip")]
|
||
public string PlcIP { get; set; }
|
||
|
||
/// <summary>
|
||
///机架号(多数中小型 PLC 默认 0)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "Rack")]
|
||
public int Rack { get; set; }
|
||
|
||
/// <summary>
|
||
///插槽号(如 S7-1200/1500 默认 1)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "Slot")]
|
||
public int Slot { get; set; }
|
||
|
||
/// <summary>
|
||
/// 描述
|
||
/// </summary>
|
||
[SugarColumn(Length = 50)]
|
||
public string Description { get; set; }
|
||
|
||
/// <summary>
|
||
/// 功能组编码,相同值的工站为相同功能,可互换
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "function_group_code",Length =50)]
|
||
public string FunctionGroupCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 功能组名称,如焊接组、装配组
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "function_group_name", Length = 50)]
|
||
public string FunctionGroupName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否可替换:1=可替换,0=不可替换
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "is_replaceable", Length = 50)]
|
||
public int? IsReplaceable { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "cREATED_BY", Length = 50)]
|
||
public string CreatedBy { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "cREATED_TIME")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "uPDATED_BY", Length = 50)]
|
||
public string UpdatedBy { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "uPDATED_TIME")]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
|
||
[SugarColumn(ColumnName = "status")]
|
||
public int Status { get; set; }
|
||
}
|
||
} |