AdoS0SalesDtos.cs 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Sales;
  2. public class AdoS0ToggleEnabledDto
  3. {
  4. public bool IsEnabled { get; set; }
  5. }
  6. public class AdoS0ItemSubstituteDetailQueryDto
  7. {
  8. public string? Domain { get; set; }
  9. public string? Keyword { get; set; }
  10. public int Page { get; set; } = 1;
  11. public int PageSize { get; set; } = 20;
  12. }
  13. /// <summary>
  14. /// 选择替代方案(ic_substitute)只读查询
  15. /// </summary>
  16. public class AdoS0SubstituteSchemeQueryDto
  17. {
  18. /// <summary>源平台 company_id;为空则不按公司过滤。</summary>
  19. public long? CompanyId { get; set; }
  20. /// <summary>源平台 factory_id;为空则不按工厂过滤。</summary>
  21. public long? FactoryId { get; set; }
  22. /// <summary>替代方案编码(模糊匹配)</summary>
  23. public string? SubstituteCode { get; set; }
  24. public int Page { get; set; } = 1;
  25. public int PageSize { get; set; } = 20;
  26. }
  27. public class AdoS0ItemSubstituteDetailUpsertDto
  28. {
  29. [Required(ErrorMessage = "父级物料不能为空")]
  30. public string ParentItem { get; set; } = string.Empty;
  31. [Required(ErrorMessage = "物料编码不能为空")]
  32. public string ItemNum { get; set; } = string.Empty;
  33. [Required(ErrorMessage = "替代物料不能为空")]
  34. public string SubstituteItem { get; set; } = string.Empty;
  35. public decimal? SubstituteQty { get; set; }
  36. public string? Remark { get; set; }
  37. [Required(ErrorMessage = "工厂域不能为空")]
  38. public string Domain { get; set; } = string.Empty;
  39. public string? CreateUser { get; set; }
  40. public DateTime? CreateTime { get; set; }
  41. public string? UpdateUser { get; set; }
  42. public DateTime? UpdateTime { get; set; }
  43. }
  44. /// <summary>客户主数据启停(CustMaster / IsActive)</summary>
  45. public class AdoS0CustMasterToggleActiveDto
  46. {
  47. public bool IsActive { get; set; }
  48. }
  49. public class AdoS0CustMasterQueryDto
  50. {
  51. public long? CompanyRefId { get; set; }
  52. public long? FactoryRefId { get; set; }
  53. public string? DomainCode { get; set; }
  54. /// <summary>同时匹配客户编码、客户简称</summary>
  55. public string? Keyword { get; set; }
  56. public string? Cust { get; set; }
  57. public string? SortName { get; set; }
  58. public string? Curr { get; set; }
  59. public string? Slspsn1 { get; set; }
  60. public string? ShipTo { get; set; }
  61. public bool? IsActive { get; set; }
  62. public bool? IsConfirm { get; set; }
  63. public int Page { get; set; } = 1;
  64. public int PageSize { get; set; } = 20;
  65. }
  66. public class AdoS0CustMasterUpsertDto
  67. {
  68. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  69. public long CompanyRefId { get; set; }
  70. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  71. public long FactoryRefId { get; set; }
  72. public string? DomainCode { get; set; }
  73. [Required(ErrorMessage = "客户编码不能为空")]
  74. public string Cust { get; set; } = string.Empty;
  75. [Required(ErrorMessage = "客户简称不能为空")]
  76. public string SortName { get; set; } = string.Empty;
  77. public string? Curr { get; set; }
  78. public string? Slspsn1 { get; set; }
  79. public string? Slspsn2 { get; set; }
  80. public string? ShipTo { get; set; }
  81. public string? TaxClass { get; set; }
  82. public bool TaxIn { get; set; } = true;
  83. public string? CustClass { get; set; }
  84. public string? Remarks { get; set; }
  85. public bool IsActive { get; set; } = true;
  86. public bool IsConfirm { get; set; }
  87. public string? CreateUser { get; set; }
  88. public string? UpdateUser { get; set; }
  89. }
  90. /// <summary>物料主数据启停(ItemMaster / IsActive)</summary>
  91. public class AdoS0ItemMasterToggleActiveDto
  92. {
  93. public bool IsActive { get; set; }
  94. }
  95. public class AdoS0ItemMasterQueryDto
  96. {
  97. public long? CompanyRefId { get; set; }
  98. public long? FactoryRefId { get; set; }
  99. public string? DomainCode { get; set; }
  100. /// <summary>匹配物料编码、物料名称</summary>
  101. public string? Keyword { get; set; }
  102. public string? ItemNum { get; set; }
  103. public string? Descr { get; set; }
  104. public string? Descr1 { get; set; }
  105. public string? ItemType { get; set; }
  106. public string? PurMfg { get; set; }
  107. public string? Location { get; set; }
  108. public string? Status { get; set; }
  109. public bool? IsActive { get; set; }
  110. public bool? IsConfirm { get; set; }
  111. public int Page { get; set; } = 1;
  112. public int PageSize { get; set; } = 20;
  113. }
  114. public class AdoS0ItemMasterUpsertDto
  115. {
  116. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  117. public long CompanyRefId { get; set; }
  118. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  119. public long FactoryRefId { get; set; }
  120. public string? DomainCode { get; set; }
  121. [Required(ErrorMessage = "物料编码不能为空")]
  122. public string ItemNum { get; set; } = string.Empty;
  123. [Required(ErrorMessage = "物料名称不能为空")]
  124. public string Descr { get; set; } = string.Empty;
  125. public string? Descr1 { get; set; }
  126. public string? PkgCode { get; set; }
  127. public string? UM { get; set; }
  128. public string? PurMfg { get; set; }
  129. public string? Drawing { get; set; }
  130. public string? ItemType { get; set; }
  131. public string? Location { get; set; }
  132. public string? DefaultShelf { get; set; }
  133. public bool KeyItem { get; set; }
  134. public decimal? NetWeight { get; set; }
  135. public string? NetWeightUM { get; set; }
  136. public bool Inspect { get; set; }
  137. public int? PurLT { get; set; }
  138. public int? InsLT { get; set; }
  139. public int? MfgLT { get; set; }
  140. public decimal? Length { get; set; }
  141. public decimal? Size { get; set; }
  142. public string? SizeUM { get; set; }
  143. public bool IssuePolicy { get; set; }
  144. public int? MfgMttr { get; set; }
  145. public string? LocationType { get; set; }
  146. public string? CommodityCode { get; set; }
  147. public string? Rev { get; set; }
  148. public decimal? MaxOrd { get; set; }
  149. public decimal? MinOrd { get; set; }
  150. public decimal? OrdMult { get; set; }
  151. public decimal? MinOrdSales { get; set; }
  152. public bool AutoLotNums { get; set; }
  153. public bool Install { get; set; }
  154. public decimal? SafetyStk { get; set; }
  155. public int? DaysBetweenPM { get; set; }
  156. public int? ExpireAlarmDay { get; set; }
  157. public decimal? StockTurnOver { get; set; }
  158. public bool LotSerialControl { get; set; }
  159. public bool AllocateSingleLot { get; set; }
  160. public string? Status { get; set; }
  161. public string? Planner { get; set; }
  162. public bool TraceDetail { get; set; }
  163. public bool IsMainMas { get; set; }
  164. public string? Remark { get; set; }
  165. public string? EMTType { get; set; }
  166. public string? OwnerApplication { get; set; }
  167. public int? BOMDesign { get; set; }
  168. public int? RoutingDes { get; set; }
  169. public bool IsActive { get; set; } = true;
  170. public bool IsConfirm { get; set; }
  171. public string? CreateUser { get; set; }
  172. public string? UpdateUser { get; set; }
  173. }
  174. /// <summary>订单优先级(PriorityCode / IsActive)</summary>
  175. public class AdoS0PriorityCodeToggleActiveDto
  176. {
  177. public bool IsActive { get; set; }
  178. }
  179. public class AdoS0PriorityCodeQueryDto
  180. {
  181. public long? CompanyRefId { get; set; }
  182. public long? FactoryRefId { get; set; }
  183. public string? DomainCode { get; set; }
  184. /// <summary>匹配名称、来源表、工单字段 value</summary>
  185. public string? Keyword { get; set; }
  186. public string? Descr { get; set; }
  187. public int? Priority { get; set; }
  188. public string? SourceTable { get; set; }
  189. public string? SourceColumn { get; set; }
  190. public string? Value { get; set; }
  191. public bool? IsActive { get; set; }
  192. public int Page { get; set; } = 1;
  193. public int PageSize { get; set; } = 20;
  194. }
  195. public class AdoS0PriorityCodeUpsertDto
  196. {
  197. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  198. public long CompanyRefId { get; set; }
  199. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  200. public long FactoryRefId { get; set; }
  201. public string? DomainCode { get; set; }
  202. [Required(ErrorMessage = "名称不能为空")]
  203. public string Descr { get; set; } = string.Empty;
  204. public string? Value { get; set; }
  205. public int Priority { get; set; }
  206. /// <summary>0=倒序,非0=正序</summary>
  207. public int OrderByCode { get; set; } = 1;
  208. public string? SourceTable { get; set; }
  209. public string? SourceColumn { get; set; }
  210. public string? SourceType { get; set; }
  211. public string? SourceId { get; set; }
  212. public string? ValueType { get; set; }
  213. public string? ValueId { get; set; }
  214. public bool IsActive { get; set; } = true;
  215. public string? CreateUser { get; set; }
  216. public string? UpdateUser { get; set; }
  217. }