AdoS0WarehouseOtherDtos.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Warehouse;
  2. // ========== 零件包装规格 ==========
  3. public class AdoS0ItemPackQueryDto
  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? PackingType { get; set; }
  10. public bool? IsActive { get; set; }
  11. public int Page { get; set; } = 1;
  12. public int PageSize { get; set; } = 20;
  13. }
  14. public class AdoS0ItemPackUpsertDto
  15. {
  16. /// <summary>
  17. /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
  18. /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
  19. /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
  20. /// </summary>
  21. public long CompanyRefId { get; set; }
  22. /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
  23. public long FactoryRefId { get; set; }
  24. [MaxLength(50)]
  25. public string? DomainCode { get; set; }
  26. [Required(ErrorMessage = "物料编码不能为空")]
  27. [MaxLength(100)]
  28. public string ItemNum { get; set; } = string.Empty;
  29. public decimal? PackingQty { get; set; }
  30. public decimal? SmallPackingQty { get; set; }
  31. [MaxLength(50)]
  32. public string? PackingType { get; set; }
  33. public decimal? NetWeight { get; set; }
  34. [MaxLength(20)]
  35. public string? WeightUM { get; set; }
  36. public decimal? Length { get; set; }
  37. public decimal? Width { get; set; }
  38. public decimal? High { get; set; }
  39. [MaxLength(50)]
  40. public string? IssSpecific { get; set; }
  41. [MaxLength(100)]
  42. public string? CustItem { get; set; }
  43. [MaxLength(500)]
  44. public string? Remark { get; set; }
  45. public bool IsActive { get; set; } = true;
  46. [MaxLength(100)]
  47. public string? CreateUser { get; set; }
  48. [MaxLength(100)]
  49. public string? UpdateUser { get; set; }
  50. }
  51. // ========== 物料职责 ==========
  52. public class AdoS0EmpWorkDutyQueryDto
  53. {
  54. public long? CompanyRefId { get; set; }
  55. public long? FactoryRefId { get; set; }
  56. public string? DomainCode { get; set; }
  57. public string? Keyword { get; set; }
  58. public string? Employee { get; set; }
  59. public string? Location { get; set; }
  60. public string? ItemNum { get; set; }
  61. public int Page { get; set; } = 1;
  62. public int PageSize { get; set; } = 20;
  63. }
  64. public class AdoS0EmpWorkDutyUpsertDto
  65. {
  66. /// <summary>
  67. /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
  68. /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
  69. /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
  70. /// </summary>
  71. public long CompanyRefId { get; set; }
  72. /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
  73. public long FactoryRefId { get; set; }
  74. [MaxLength(50)]
  75. public string? DomainCode { get; set; }
  76. [Required(ErrorMessage = "员工编码不能为空")]
  77. [MaxLength(100)]
  78. public string Employee { get; set; } = string.Empty;
  79. [MaxLength(100)]
  80. public string? ItemNum { get; set; }
  81. [MaxLength(100)]
  82. public string? ItemNum1 { get; set; }
  83. [MaxLength(100)]
  84. public string? ItemNum2 { get; set; }
  85. [MaxLength(100)]
  86. public string? Location { get; set; }
  87. [MaxLength(100)]
  88. public string? ProdLine { get; set; }
  89. [MaxLength(500)]
  90. public string? Duty { get; set; }
  91. [MaxLength(50)]
  92. public string? EmpType { get; set; }
  93. [MaxLength(255)]
  94. public string? Ufld2 { get; set; }
  95. [MaxLength(100)]
  96. public string? CreateUser { get; set; }
  97. [MaxLength(100)]
  98. public string? UpdateUser { get; set; }
  99. }
  100. // ========== 物料状态任务指派 ==========
  101. public class AdoS0TaskAssignmentQueryDto
  102. {
  103. public long? CompanyRefId { get; set; }
  104. public long? FactoryRefId { get; set; }
  105. public string? DomainCode { get; set; }
  106. public string? Keyword { get; set; }
  107. public string? Rwlx { get; set; }
  108. public string? Zt { get; set; }
  109. public string? Sqr { get; set; }
  110. public int Page { get; set; } = 1;
  111. public int PageSize { get; set; } = 20;
  112. }
  113. public class AdoS0TaskAssignmentUpsertDto
  114. {
  115. /// <summary>
  116. /// 公司。**服务端忽略**:新增由 AdoS0OrgScope.ResolveAsync(tenantId) 在当前租户内解析后强制 stamp,
  117. /// 编辑 pin 既有原值。保留字段仅为 payload 向后兼容,不做校验——原 [Range(1, long.MaxValue)]
  118. /// 是失效前置门:值不参与落库,却会在模型绑定阶段把"租户未配置机构"误报成"公司不能为空",故移除。
  119. /// </summary>
  120. public long CompanyRefId { get; set; }
  121. /// <summary>工厂。**服务端忽略**,同 <see cref="CompanyRefId"/>。</summary>
  122. public long FactoryRefId { get; set; }
  123. [MaxLength(50)]
  124. public string? DomainCode { get; set; }
  125. public DateTime? Tcrq { get; set; }
  126. [MaxLength(100)]
  127. public string? Sqr { get; set; }
  128. [MaxLength(50)]
  129. public string? Rwlx { get; set; }
  130. [MaxLength(100)]
  131. public string? Wlbm { get; set; }
  132. public decimal? Sl { get; set; }
  133. [MaxLength(100)]
  134. public string? Rqpc { get; set; }
  135. [MaxLength(100)]
  136. public string? Yskw { get; set; }
  137. [MaxLength(100)]
  138. public string? Mdkw { get; set; }
  139. public DateTime? Xqsj { get; set; }
  140. [MaxLength(100)]
  141. public string? Clr { get; set; }
  142. [MaxLength(500)]
  143. public string? Bz { get; set; }
  144. [MaxLength(50)]
  145. public string? Zt { get; set; }
  146. [MaxLength(100)]
  147. public string? CreateUser { get; set; }
  148. [MaxLength(100)]
  149. public string? UpdateUser { get; set; }
  150. }