zhuangpei-mesbackend/DOAN.Model/MES/process/Dto/ProcessmodelOperationDto.cs

71 lines
1.8 KiB
C#
Raw Normal View History

2025-09-20 15:33:58 +08:00
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.process.Dto
{
/// <summary>
/// 工序表查询对象
/// </summary>
public class ProcessmodelOperationQueryDto : PagerInfo
{
2025-09-23 16:53:22 +08:00
/// <summary>
/// 工序编码
/// </summary>
public string OperationCode { get; set; }
/// <summary>
/// 工序名称
/// </summary>
public string OperationName { get; set; }
/// <summary>
/// 所属工艺路线ID
/// </summary>
public string RoutingCode { get; set; }
2025-09-20 15:33:58 +08:00
}
/// <summary>
/// 工序表输入输出对象
/// </summary>
public class ProcessmodelOperationDto
{
2025-09-20 16:36:06 +08:00
2025-09-20 15:33:58 +08:00
public int Id { get; set; }
[Required(ErrorMessage = "工序编码不能为空")]
public string OperationCode { get; set; }
[Required(ErrorMessage = "工序名称不能为空")]
public string OperationName { get; set; }
2025-09-22 08:57:15 +08:00
[Required(ErrorMessage = "所属工艺路线Code不能为空")]
2025-09-23 16:53:22 +08:00
public string RoutingCode { get; set; }
2025-09-20 15:33:58 +08:00
[Required(ErrorMessage = "工序顺序号不能为空")]
public int OperationSeq { get; set; }
public string WorkCenter { get; set; }
public decimal StandardTime { get; set; }
public string Description { get; set; }
[Required(ErrorMessage = "创建时间不能为空")]
public DateTime? CreateTime { get; set; }
public DateTime? UpdateTime { get; set; }
[Required(ErrorMessage = "是否有效1=有效0=无效不能为空")]
public string IsActive { get; set; }
}
public class ProcessmodelRouteParentDto :ProcessmodelRouting
{
public int parentId { get; set; }
2025-09-20 15:52:04 +08:00
public List<ProcessmodelOperationDto> children { get; set; }
2025-09-20 15:33:58 +08:00
}
}