using System.ComponentModel.DataAnnotations;
namespace MDM.Model.Plant.Dto
{
///
/// 工站/资源组查询对象
///
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; }
}
///
/// 工站/资源组输入输出对象
///
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; }
}
}