AdoS0WarehouseNbrDtos.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
  2. // ========== 单号类型 ==========
  3. public class AdoS0NbrTypeQueryDto
  4. {
  5. public long? CompanyRefId { get; set; }
  6. public long? FactoryRefId { get; set; }
  7. public string? DomainCode { get; set; }
  8. public string? Keyword { get; set; }
  9. public string? Dept { get; set; }
  10. public string? NbrClass { get; set; }
  11. public bool? IsActive { get; set; }
  12. public int Page { get; set; } = 1;
  13. public int PageSize { get; set; } = 20;
  14. }
  15. public class AdoS0NbrTypeUpsertDto
  16. {
  17. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  18. public long CompanyRefId { get; set; }
  19. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  20. public long FactoryRefId { get; set; }
  21. [MaxLength(8)]
  22. public string? DomainCode { get; set; }
  23. [MaxLength(8)]
  24. public string? Dept { get; set; }
  25. [MaxLength(4)]
  26. public string? NbrClass { get; set; }
  27. [Required(ErrorMessage = "单号类型编码不能为空")]
  28. [MaxLength(8)]
  29. public string NbrType { get; set; } = string.Empty;
  30. [MaxLength(24)]
  31. public string? Descr1 { get; set; }
  32. public bool IsActive { get; set; } = true;
  33. [MaxLength(24)]
  34. public string? CreateUser { get; set; }
  35. [MaxLength(24)]
  36. public string? UpdateUser { get; set; }
  37. }
  38. // ========== 单号规则 ==========
  39. public class AdoS0NbrControlQueryDto
  40. {
  41. public long? CompanyRefId { get; set; }
  42. public long? FactoryRefId { get; set; }
  43. public string? DomainCode { get; set; }
  44. public string? Keyword { get; set; }
  45. public int Page { get; set; } = 1;
  46. public int PageSize { get; set; } = 20;
  47. }
  48. public class AdoS0NbrControlUpsertDto
  49. {
  50. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  51. public long CompanyRefId { get; set; }
  52. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  53. public long FactoryRefId { get; set; }
  54. [MaxLength(50)]
  55. public string? DomainCode { get; set; }
  56. [Required(ErrorMessage = "单号类型编码不能为空")]
  57. [MaxLength(50)]
  58. public string NbrType { get; set; } = string.Empty;
  59. [MaxLength(50)]
  60. public string? Description { get; set; }
  61. [MaxLength(50)]
  62. public string? NbrPre1 { get; set; }
  63. [MaxLength(50)]
  64. public string? NbrPre2 { get; set; }
  65. [MaxLength(50)]
  66. public string? NbrPre3 { get; set; }
  67. public int? IniValue { get; set; }
  68. public int? MinValue { get; set; }
  69. public int? MaxValue { get; set; }
  70. public bool AllowReset { get; set; }
  71. public bool AllowSkip { get; set; }
  72. public bool AllowManual { get; set; }
  73. [MaxLength(50)]
  74. public string? DateType { get; set; }
  75. public bool IsDateType { get; set; }
  76. [MaxLength(24)]
  77. public string? CreateUser { get; set; }
  78. [MaxLength(24)]
  79. public string? UpdateUser { get; set; }
  80. }