shgx_tz_mom/ZR.Model/MES/qc/DTO/backend/QcBackEndBaseDefectDto.cs

72 lines
1.7 KiB
C#
Raw Normal View History

2025-04-29 16:48:28 +08:00
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 后道基础缺陷项查询对象
/// </summary>
public class QcBackEndBaseDefectQueryDto : PagerInfo
2025-04-29 16:48:28 +08:00
{
}
/// <summary>
/// 后道基础缺陷项输入输出对象
/// </summary>
public class QcBackEndBaseDefectDto
{
[Required(ErrorMessage = "序号不能为空")]
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string Group { get; set; }
public string Type { get; set; }
public string Status { get; set; }
public string Remark { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
public class QcBackEndAlterationDefectDto
{
/// <summary>
/// 缺陷项组别
/// </summary>
public string GroupName { get; set; }
public List<QcBackEndChildrenDefectDto> Children { get; set; }
}
public class QcBackEndChildrenDefectDto
{
/// <summary>
/// 缺陷项名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 缺陷项编号
/// </summary>
public string Code { get; set; }
/// <summary>
/// 缺陷项类别 1-抛光 2-打磨 3-报废
/// </summary>
public string Type { get; set; }
/// <summary>
/// 缺陷项数量
/// </summary>
public int Num { get; set; } = 0;
}
}