AdoS0WarehouseNbrDtos.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. /// <summary>
  18. /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
  19. /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
  20. /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
  21. /// </summary>
  22. public long CompanyRefId { get; set; }
  23. /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
  24. public long FactoryRefId { get; set; }
  25. [MaxLength(8)]
  26. public string? DomainCode { get; set; }
  27. [MaxLength(8)]
  28. public string? Dept { get; set; }
  29. [MaxLength(4)]
  30. public string? NbrClass { get; set; }
  31. [Required(ErrorMessage = "单号类型编码不能为空")]
  32. [MaxLength(8)]
  33. public string NbrType { get; set; } = string.Empty;
  34. [MaxLength(24)]
  35. public string? Descr1 { get; set; }
  36. public bool IsActive { get; set; } = true;
  37. [MaxLength(24)]
  38. public string? CreateUser { get; set; }
  39. [MaxLength(24)]
  40. public string? UpdateUser { get; set; }
  41. }
  42. // ========== 单号规则 ==========
  43. public class AdoS0NbrControlQueryDto
  44. {
  45. public long? CompanyRefId { get; set; }
  46. public long? FactoryRefId { get; set; }
  47. public string? DomainCode { get; set; }
  48. public string? Keyword { get; set; }
  49. public int Page { get; set; } = 1;
  50. public int PageSize { get; set; } = 20;
  51. }
  52. public class AdoS0NbrControlUpsertDto
  53. {
  54. /// <summary>
  55. /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
  56. /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
  57. /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
  58. /// </summary>
  59. public long CompanyRefId { get; set; }
  60. /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
  61. public long FactoryRefId { get; set; }
  62. [MaxLength(50)]
  63. public string? DomainCode { get; set; }
  64. [Required(ErrorMessage = "单号类型编码不能为空")]
  65. [MaxLength(50)]
  66. public string NbrType { get; set; } = string.Empty;
  67. [MaxLength(50)]
  68. public string? Description { get; set; }
  69. [MaxLength(50)]
  70. public string? NbrPre1 { get; set; }
  71. [MaxLength(50)]
  72. public string? NbrPre2 { get; set; }
  73. [MaxLength(50)]
  74. public string? NbrPre3 { get; set; }
  75. public int? IniValue { get; set; }
  76. public int? MinValue { get; set; }
  77. public int? MaxValue { get; set; }
  78. public bool AllowReset { get; set; }
  79. public bool AllowSkip { get; set; }
  80. public bool AllowManual { get; set; }
  81. [MaxLength(50)]
  82. public string? DateType { get; set; }
  83. public bool IsDateType { get; set; }
  84. [MaxLength(24)]
  85. public string? CreateUser { get; set; }
  86. [MaxLength(24)]
  87. public string? UpdateUser { get; set; }
  88. }