Valeo_Line_MES_backend/MDM/Models/Plant/Dto/PlantWorkstationDto.cs
2026-01-10 13:47:54 +08:00

69 lines
1.8 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace MDM.Model.Plant.Dto
{
/// <summary>
/// 工站/资源组查询对象
/// </summary>
public class PlantWorkstationQueryDto : PagerInfo
{
public string? FkFactorySiteCode { get; set; }
public string? FkWorkshopCode { get; set; }
public string? FkProductlinebody { get; set; }
public string? PlcAddress { get; set; }
public string? WorkstationCode { get; set; }
public string? WorkstationName { get; set; }
public string? FunctionGroupCode { get; set; }
public string? FunctionGroupName { get; set; }
}
/// <summary>
/// 工站/资源组输入输出对象
/// </summary>
public class PlantWorkstationDto
{
[Required(ErrorMessage = "工站id不能为空")]
public int WorkstationId { get; set; }
public string FkFactorySiteCode { get; set; }
public string FkWorkshopCode { get; set; }
public string FkProductlinebody { get; set; }
[Required(ErrorMessage = "工站code不能为空")]
public string WorkstationCode { get; set; }
public string WorkstationName { get; set; }
public string PlcAddress { get; set; }
public string WorkstaionType { get; set; }
public string Description { get; set; }
[Required(ErrorMessage = "功能组编码,相同值的工站为相同功能,可互换不能为空")]
public string FunctionGroupCode { get; set; }
public string FunctionGroupName { get; set; }
public int? IsReplaceable { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
}