37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System.ComponentModel.DataAnnotations;
|
||
|
||
namespace DOAN.Model.Dto
|
||
{
|
||
/// <summary>
|
||
/// 追溯,扫sn追溯码记录(模板,实际使用需要按时间分表)查询对象
|
||
/// </summary>
|
||
public class TraceSnScanQueryDto : PagerInfo
|
||
{
|
||
}
|
||
|
||
/// <summary>
|
||
/// 追溯,扫sn追溯码记录(模板,实际使用需要按时间分表)输入输出对象
|
||
/// </summary>
|
||
public class TraceSnScanDto
|
||
{
|
||
[Required(ErrorMessage = "追溯扫码标签内容不能为空")]
|
||
[JsonConverter(typeof(ValueToStringConverter))]
|
||
public long Id { get; set; }
|
||
|
||
[Required(ErrorMessage = "项目编号不能为空")]
|
||
public string ProjectCode { get; set; }
|
||
|
||
[Required(ErrorMessage = "零件编号不能为空")]
|
||
public string ProductionCode { get; set; }
|
||
|
||
public string Specification { get; set; }
|
||
|
||
[Required(ErrorMessage = "追溯码SN不能为空")]
|
||
public string PartSn { get; set; }
|
||
|
||
public DateTime? CreateTime { get; set; }
|
||
|
||
|
||
|
||
}
|
||
} |