AdoS0SupplyDtos.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Supply;
  2. /// <summary>供应商主数据启停(SuppMaster / IsActive)</summary>
  3. public class AdoS0SuppMasterToggleActiveDto
  4. {
  5. public bool IsActive { get; set; }
  6. }
  7. public class AdoS0SuppMasterQueryDto
  8. {
  9. public long? CompanyRefId { get; set; }
  10. public long? FactoryRefId { get; set; }
  11. public string? DomainCode { get; set; }
  12. /// <summary>同时匹配供应商编码、简称</summary>
  13. public string? Keyword { get; set; }
  14. public string? Supp { get; set; }
  15. public string? SortName { get; set; }
  16. public string? Address { get; set; }
  17. public string? Contact { get; set; }
  18. public string? Position { get; set; }
  19. public string? ContactInfo { get; set; }
  20. public string? CertificationLevel { get; set; }
  21. public string? CrTerms { get; set; }
  22. public string? Curr { get; set; }
  23. public string? Type { get; set; }
  24. public bool? TaxIn { get; set; }
  25. public string? TaxClass { get; set; }
  26. public string? PurContact { get; set; }
  27. public bool? IsActive { get; set; }
  28. public int Page { get; set; } = 1;
  29. public int PageSize { get; set; } = 20;
  30. }
  31. public class AdoS0SuppMasterUpsertDto
  32. {
  33. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  34. public long CompanyRefId { get; set; }
  35. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  36. public long FactoryRefId { get; set; }
  37. [MaxLength(50)]
  38. public string? DomainCode { get; set; }
  39. [Required(ErrorMessage = "供应商编码不能为空")]
  40. [MaxLength(100)]
  41. public string Supp { get; set; } = string.Empty;
  42. [MaxLength(200)]
  43. public string? SortName { get; set; }
  44. [MaxLength(500)]
  45. public string? Address { get; set; }
  46. [MaxLength(200)]
  47. public string? Contact { get; set; }
  48. [MaxLength(200)]
  49. public string? Position { get; set; }
  50. [MaxLength(200)]
  51. public string? ContactInfo { get; set; }
  52. [MaxLength(100)]
  53. public string? CertificationLevel { get; set; }
  54. [MaxLength(100)]
  55. public string? PurContact { get; set; }
  56. [MaxLength(50)]
  57. public string? CrTerms { get; set; }
  58. [MaxLength(20)]
  59. public string? Curr { get; set; }
  60. [MaxLength(50)]
  61. public string? Type { get; set; }
  62. public bool TaxIn { get; set; } = true;
  63. [MaxLength(50)]
  64. public string? TaxClass { get; set; }
  65. public int? APStartDay1 { get; set; }
  66. public int? APEndDay1 { get; set; }
  67. public int? APStartDay2 { get; set; }
  68. public int? APEndDay2 { get; set; }
  69. [MaxLength(1000)]
  70. public string? Remark { get; set; }
  71. public bool IsActive { get; set; } = true;
  72. [MaxLength(100)]
  73. public string? CreateUser { get; set; }
  74. [MaxLength(100)]
  75. public string? UpdateUser { get; set; }
  76. }
  77. public class AdoS0CategoryLeadTimeQueryDto
  78. {
  79. public long? CompanyRefId { get; set; }
  80. public long? FactoryRefId { get; set; }
  81. public string? DomainCode { get; set; }
  82. public string? CategoryCode { get; set; }
  83. public string? OwnerApplication { get; set; }
  84. public string? Keyword { get; set; }
  85. public bool? IsActive { get; set; }
  86. public int Page { get; set; } = 1;
  87. public int PageSize { get; set; } = 20;
  88. }
  89. public class AdoS0CategoryLeadTimeUpsertDto
  90. {
  91. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  92. public long CompanyRefId { get; set; }
  93. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  94. public long FactoryRefId { get; set; }
  95. [MaxLength(50)]
  96. public string? DomainCode { get; set; }
  97. [Required(ErrorMessage = "品类编码不能为空")]
  98. [MaxLength(100)]
  99. public string CategoryCode { get; set; } = string.Empty;
  100. [MaxLength(200)]
  101. public string? CategoryName { get; set; }
  102. [Required(ErrorMessage = "物料属性不能为空")]
  103. [MaxLength(100)]
  104. public string OwnerApplication { get; set; } = string.Empty;
  105. [Range(0, int.MaxValue, ErrorMessage = "采购前置期不能为负")]
  106. public int LeadTimeDays { get; set; }
  107. [MaxLength(500)]
  108. public string? Remarks { get; set; }
  109. public bool IsActive { get; set; } = true;
  110. [MaxLength(100)]
  111. public string? CreateUser { get; set; }
  112. [MaxLength(100)]
  113. public string? UpdateUser { get; set; }
  114. }
  115. public class AdoS0CategoryLeadTimeToggleActiveDto
  116. {
  117. public bool IsActive { get; set; }
  118. }
  119. public class AdoS0SrmPurchaseQueryDto
  120. {
  121. public long? CompanyRefId { get; set; }
  122. public long? FactoryRefId { get; set; }
  123. public string? DomainCode { get; set; }
  124. /// <summary>物料编码 / 名称关键字</summary>
  125. public string? Keyword { get; set; }
  126. public string? SupplierType { get; set; }
  127. public string? IsActive { get; set; }
  128. public string? SupplierName { get; set; }
  129. public string? SupplierNumber { get; set; }
  130. public long? CurrencyType { get; set; }
  131. public int Page { get; set; } = 1;
  132. public int PageSize { get; set; } = 20;
  133. }
  134. public class AdoS0SrmPurchaseUpsertDto
  135. {
  136. // 放宽 1→0:srm_purchase 历史货源记录存在 company/factory=0(未组织化)数据,编辑保存需放行 0;
  137. // 如后续要求强制组织维度,改回 Range(1, long.MaxValue) 即可。
  138. [Range(0, long.MaxValue, ErrorMessage = "公司不能为空")]
  139. public long CompanyRefId { get; set; }
  140. [Range(0, long.MaxValue, ErrorMessage = "工厂不能为空")]
  141. public long FactoryRefId { get; set; }
  142. [MaxLength(50)]
  143. public string? DomainCode { get; set; }
  144. [Range(1, long.MaxValue, ErrorMessage = "物料不能为空")]
  145. public long IcitemId { get; set; }
  146. [MaxLength(200)]
  147. public string? IcitemName { get; set; }
  148. [MaxLength(50)]
  149. public string? SupplierType { get; set; }
  150. [MaxLength(64)]
  151. public string? IsActive { get; set; }
  152. [Range(1, long.MaxValue, ErrorMessage = "供应商不能为空")]
  153. public long SupplierId { get; set; }
  154. [MaxLength(200)]
  155. public string? SupplierName { get; set; }
  156. [MaxLength(100)]
  157. public string? SupplierNumber { get; set; }
  158. public decimal? OrderPrice { get; set; }
  159. public long? CurrencyType { get; set; }
  160. public decimal? Taxrate { get; set; }
  161. public decimal? Tariff { get; set; }
  162. public decimal? Freight { get; set; }
  163. [MaxLength(200)]
  164. public string? PriceTerms { get; set; }
  165. public DateTime? EffectiveDate { get; set; }
  166. public DateTime? ExpiringDate { get; set; }
  167. public decimal? QuotaRate { get; set; }
  168. public decimal? LeadTime { get; set; }
  169. public decimal? QtyMin { get; set; }
  170. public decimal? PackagingQty { get; set; }
  171. [MaxLength(100)]
  172. public string? OrderRectorName { get; set; }
  173. [MaxLength(100)]
  174. public string? OrderRectorNum { get; set; }
  175. public int IsRequireGoods { get; set; }
  176. [MaxLength(100)]
  177. public string? CreateUser { get; set; }
  178. [MaxLength(100)]
  179. public string? UpdateUser { get; set; }
  180. }
  181. public class AdoS0MaterialPlanCycleQueryDto
  182. {
  183. public long? CompanyRefId { get; set; }
  184. public long? FactoryRefId { get; set; }
  185. public string? DomainCode { get; set; }
  186. public string? OrderType { get; set; }
  187. public string? Keyword { get; set; }
  188. public bool? IsActive { get; set; }
  189. public int Page { get; set; } = 1;
  190. public int PageSize { get; set; } = 20;
  191. }
  192. public class AdoS0MaterialPlanCycleUpsertDto
  193. {
  194. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  195. public long CompanyRefId { get; set; }
  196. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  197. public long FactoryRefId { get; set; }
  198. [MaxLength(50)]
  199. public string? DomainCode { get; set; }
  200. /// <summary>订单类型;留空表示默认/不限。</summary>
  201. [MaxLength(100)]
  202. public string? OrderType { get; set; }
  203. [Range(0, int.MaxValue, ErrorMessage = "标准时长不能为负")]
  204. public int StdHours { get; set; }
  205. [MaxLength(500)]
  206. public string? Remarks { get; set; }
  207. public bool IsActive { get; set; } = true;
  208. [MaxLength(100)]
  209. public string? CreateUser { get; set; }
  210. [MaxLength(100)]
  211. public string? UpdateUser { get; set; }
  212. }
  213. public class AdoS0MaterialPlanCycleToggleActiveDto
  214. {
  215. public bool IsActive { get; set; }
  216. }