AdoS0SupplyDtos.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. public string? DomainCode { get; set; }
  38. [Required(ErrorMessage = "供应商编码不能为空")]
  39. public string Supp { get; set; } = string.Empty;
  40. public string? SortName { get; set; }
  41. public string? Address { get; set; }
  42. public string? Contact { get; set; }
  43. public string? Position { get; set; }
  44. public string? ContactInfo { get; set; }
  45. public string? CertificationLevel { get; set; }
  46. public string? PurContact { get; set; }
  47. public string? CrTerms { get; set; }
  48. public string? Curr { get; set; }
  49. public string? Type { get; set; }
  50. public bool TaxIn { get; set; } = true;
  51. public string? TaxClass { get; set; }
  52. public int? APStartDay1 { get; set; }
  53. public int? APEndDay1 { get; set; }
  54. public int? APStartDay2 { get; set; }
  55. public int? APEndDay2 { get; set; }
  56. public string? Remark { get; set; }
  57. public bool IsActive { get; set; } = true;
  58. public string? CreateUser { get; set; }
  59. public string? UpdateUser { get; set; }
  60. }
  61. public class AdoS0CategoryLeadTimeQueryDto
  62. {
  63. public long? CompanyRefId { get; set; }
  64. public long? FactoryRefId { get; set; }
  65. public string? DomainCode { get; set; }
  66. public string? CategoryCode { get; set; }
  67. public string? OwnerApplication { get; set; }
  68. public string? Keyword { get; set; }
  69. public bool? IsActive { get; set; }
  70. public int Page { get; set; } = 1;
  71. public int PageSize { get; set; } = 20;
  72. }
  73. public class AdoS0CategoryLeadTimeUpsertDto
  74. {
  75. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  76. public long CompanyRefId { get; set; }
  77. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  78. public long FactoryRefId { get; set; }
  79. public string? DomainCode { get; set; }
  80. [Required(ErrorMessage = "品类编码不能为空")]
  81. public string CategoryCode { get; set; } = string.Empty;
  82. public string? CategoryName { get; set; }
  83. [Required(ErrorMessage = "物料属性不能为空")]
  84. public string OwnerApplication { get; set; } = string.Empty;
  85. [Range(0, int.MaxValue, ErrorMessage = "采购前置期不能为负")]
  86. public int LeadTimeDays { get; set; }
  87. public string? Remarks { get; set; }
  88. public bool IsActive { get; set; } = true;
  89. public string? CreateUser { get; set; }
  90. public string? UpdateUser { get; set; }
  91. }
  92. public class AdoS0CategoryLeadTimeToggleActiveDto
  93. {
  94. public bool IsActive { get; set; }
  95. }
  96. public class AdoS0SrmPurchaseQueryDto
  97. {
  98. public long? CompanyRefId { get; set; }
  99. public long? FactoryRefId { get; set; }
  100. public string? DomainCode { get; set; }
  101. /// <summary>物料编码 / 名称关键字</summary>
  102. public string? Keyword { get; set; }
  103. public string? SupplierType { get; set; }
  104. public bool? IsActive { get; set; }
  105. public string? SupplierName { get; set; }
  106. public string? SupplierNumber { get; set; }
  107. public string? CurrencyType { get; set; }
  108. public int Page { get; set; } = 1;
  109. public int PageSize { get; set; } = 20;
  110. }
  111. public class AdoS0SrmPurchaseUpsertDto
  112. {
  113. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  114. public long CompanyRefId { get; set; }
  115. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  116. public long FactoryRefId { get; set; }
  117. public string? DomainCode { get; set; }
  118. [Range(1, long.MaxValue, ErrorMessage = "物料不能为空")]
  119. public long IcitemId { get; set; }
  120. public string? IcitemName { get; set; }
  121. public string? SupplierType { get; set; }
  122. public bool IsActive { get; set; } = true;
  123. [Range(1, long.MaxValue, ErrorMessage = "供应商不能为空")]
  124. public long SupplierId { get; set; }
  125. public string? SupplierName { get; set; }
  126. public string? SupplierNumber { get; set; }
  127. public decimal? OrderPrice { get; set; }
  128. public string? CurrencyType { get; set; }
  129. public decimal? Taxrate { get; set; }
  130. public decimal? Tariff { get; set; }
  131. public decimal? Freight { get; set; }
  132. public string? PriceTerms { get; set; }
  133. public DateTime? EffectiveDate { get; set; }
  134. public DateTime? ExpiringDate { get; set; }
  135. public decimal? QuotaRate { get; set; }
  136. public int? LeadTime { get; set; }
  137. public decimal? QtyMin { get; set; }
  138. public decimal? PackagingQty { get; set; }
  139. public string? OrderRectorName { get; set; }
  140. public string? OrderRectorNum { get; set; }
  141. public bool IsRequireGoods { get; set; }
  142. public string? CreateUser { get; set; }
  143. public string? UpdateUser { get; set; }
  144. }
  145. public class AdoS0MaterialPlanCycleQueryDto
  146. {
  147. public long? CompanyRefId { get; set; }
  148. public long? FactoryRefId { get; set; }
  149. public string? DomainCode { get; set; }
  150. public string? OrderType { get; set; }
  151. public string? Keyword { get; set; }
  152. public bool? IsActive { get; set; }
  153. public int Page { get; set; } = 1;
  154. public int PageSize { get; set; } = 20;
  155. }
  156. public class AdoS0MaterialPlanCycleUpsertDto
  157. {
  158. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  159. public long CompanyRefId { get; set; }
  160. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  161. public long FactoryRefId { get; set; }
  162. [MaxLength(50)]
  163. public string? DomainCode { get; set; }
  164. /// <summary>订单类型;留空表示默认/不限。</summary>
  165. [MaxLength(100)]
  166. public string? OrderType { get; set; }
  167. [Range(0, int.MaxValue, ErrorMessage = "标准时长不能为负")]
  168. public int StdHours { get; set; }
  169. [MaxLength(500)]
  170. public string? Remarks { get; set; }
  171. public bool IsActive { get; set; } = true;
  172. public string? CreateUser { get; set; }
  173. public string? UpdateUser { get; set; }
  174. }
  175. public class AdoS0MaterialPlanCycleToggleActiveDto
  176. {
  177. public bool IsActive { get; set; }
  178. }