2026-01-10 13:47:54 +08:00
|
|
|
|
namespace MDM.Model.Plant
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// PLC点位
|
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
|
[SugarTable("plant_plc_io_point", "PLC点位")]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public class PlantPlcIoPoint
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <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_workstation_code",Length =50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public string FkWorkstationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 工艺参数code
|
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
|
[SugarColumn(ColumnName = "fk_process_param_code", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public string FkProcessParamCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 设备id
|
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
|
[SugarColumn(ColumnName = "fk_device_code", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public string FkDeviceCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 点位类型,如 AI(模拟输入)、DI等
|
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
|
[SugarColumn(ColumnName = "point_type", Length = 50)]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public string PointType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 点位地址,如 %IW64、DB1.DBW0
|
|
|
|
|
|
/// </summary>
|
2026-01-16 10:40:58 +08:00
|
|
|
|
[SugarColumn( Length = 100)]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否激活(1启用,0停用)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "is_active")]
|
|
|
|
|
|
public int? IsActive { 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 Description { 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; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|