namespace WCS.Application;

/// <summary>
/// 工位对应的流程字表
/// </summary>
[SugarTable("WCSPLCPosition", "工位对应的流程字表")]
public class WcsPosition : EntityBaseData
{
    /// <summary>
    /// 设备ID
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "DeviceId", ColumnDescription = "设备ID")]
    public long DeviceId { get; set; }

    /// <summary>
    /// 工位号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "StationNum", ColumnDescription = "工位号", Length = 4)]
    public string StationNum { get; set; }

    /// <summary>
    /// 偏移量
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "PlcPos", ColumnDescription = "偏移量", Length = 32)]
    public string PlcPos { get; set; }

    /// <summary>
    /// 流程字类型
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "PosType", ColumnDescription = "流程字类型")]
    public PLCDataTypeEnum PosType { get; set; }

    /// <summary>
    /// 字符串长度
    /// </summary>
    [SugarColumn(ColumnName = "StringLength", ColumnDescription = "字符串长度")]
    public int? StringLength { get; set; }

    /// <summary>
    /// 显示屏ip地址
    /// </summary>
    [SugarColumn(ColumnName = "LedIP", ColumnDescription = "显示屏ip地址", Length = 50)]
    public string? LedIP { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    [SugarColumn(ColumnName = "Text", ColumnDescription = "描述", Length = 20)]
    public string? Text { get; set; }
    
}