QualityLineRestDto.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. namespace Admin.NET.Plugin.AiDOP.Production;
  2. /// <summary>产线休息时间列表</summary>
  3. public class QualityLineRestListInput
  4. {
  5. public int Page { get; set; } = 1;
  6. public int PageSize { get; set; } = 20;
  7. public string? ProdLine { get; set; }
  8. public string? OrderBy { get; set; }
  9. public string? Sort { get; set; }
  10. }
  11. /// <summary>保存产线休息时间(页面 E:ProdLine + RestTimePoint + RestTime + 备注 Ufld1)</summary>
  12. public class QualityLineRestSaveInput
  13. {
  14. public long? Id { get; set; }
  15. /// <summary>工厂域(选生产线时带出)</summary>
  16. [Required(ErrorMessage = "公司域名不能为空")]
  17. [MaxLength(8)]
  18. public string Domain { get; set; } = string.Empty;
  19. /// <summary>地点,缺省与 Domain 相同</summary>
  20. [MaxLength(8)]
  21. public string? Site { get; set; }
  22. [Required(ErrorMessage = "生产线不能为空")]
  23. [MaxLength(12)]
  24. public string ProdLine { get; set; } = string.Empty;
  25. /// <summary>休息开始 HH:mm,写入 RestTimePoint</summary>
  26. [Required(ErrorMessage = "休息开始不能为空")]
  27. [MaxLength(30)]
  28. public string RestTimePoint { get; set; } = string.Empty;
  29. /// <summary>休息时长(分钟)</summary>
  30. [Range(0, int.MaxValue)]
  31. public int RestTime { get; set; }
  32. /// <summary>备注,写入 Ufld1</summary>
  33. [MaxLength(8)]
  34. public string? Remark { get; set; }
  35. }