HolidayMasterDto.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace Admin.NET.Plugin.AiDOP.Production;
  2. /// <summary>产线节假日列表</summary>
  3. public class HolidayMasterListInput
  4. {
  5. public int Page { get; set; } = 1;
  6. public int PageSize { get; set; } = 20;
  7. /// <summary>类型:休假 / 调班(Ufld1)</summary>
  8. public string? HolidayType { get; set; }
  9. public string? OrderBy { get; set; }
  10. public string? Sort { get; set; }
  11. }
  12. /// <summary>保存 HolidayMaster</summary>
  13. public class HolidayMasterSaveInput
  14. {
  15. public long? Id { get; set; }
  16. [Required(ErrorMessage = "节假日名称不能为空")]
  17. [MaxLength(8)]
  18. public string Holiday { get; set; } = string.Empty;
  19. [Required(ErrorMessage = "日期不能为空")]
  20. public DateTime? Dated { get; set; }
  21. /// <summary>休假 / 调班</summary>
  22. [Required(ErrorMessage = "类型不能为空")]
  23. [MaxLength(8)]
  24. public string Ufld1 { get; set; } = string.Empty;
  25. [Required(ErrorMessage = "工厂编码不能为空")]
  26. [MaxLength(8)]
  27. public string Domain { get; set; } = string.Empty;
  28. [Required(ErrorMessage = "地点不能为空")]
  29. [MaxLength(4)]
  30. public string Site { get; set; } = string.Empty;
  31. }