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