AdoS0WarehouseNbrDtos.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. public string? DomainCode { get; set; }
  22. public string? Dept { get; set; }
  23. public string? NbrClass { get; set; }
  24. [Required(ErrorMessage = "单号类型编码不能为空")]
  25. public string NbrType { get; set; } = string.Empty;
  26. public string? Descr1 { get; set; }
  27. public bool IsActive { get; set; } = true;
  28. public string? CreateUser { get; set; }
  29. public string? UpdateUser { get; set; }
  30. }
  31. // ========== 单号规则 ==========
  32. public class AdoS0NbrControlQueryDto
  33. {
  34. public long? CompanyRefId { get; set; }
  35. public long? FactoryRefId { get; set; }
  36. public string? DomainCode { get; set; }
  37. public string? Keyword { get; set; }
  38. public int Page { get; set; } = 1;
  39. public int PageSize { get; set; } = 20;
  40. }
  41. public class AdoS0NbrControlUpsertDto
  42. {
  43. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  44. public long CompanyRefId { get; set; }
  45. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  46. public long FactoryRefId { get; set; }
  47. public string? DomainCode { get; set; }
  48. [Required(ErrorMessage = "单号类型编码不能为空")]
  49. public string NbrType { get; set; } = string.Empty;
  50. public string? Description { get; set; }
  51. public string? NbrPre1 { get; set; }
  52. public string? NbrPre2 { get; set; }
  53. public string? NbrPre3 { get; set; }
  54. public int? IniValue { get; set; }
  55. public int? MinValue { get; set; }
  56. public int? MaxValue { get; set; }
  57. public bool AllowReset { get; set; }
  58. public bool AllowSkip { get; set; }
  59. public bool AllowManual { get; set; }
  60. public string? DateType { get; set; }
  61. public bool IsDateType { get; set; }
  62. public string? CreateUser { get; set; }
  63. public string? UpdateUser { get; set; }
  64. }