AdoS0SupplyDtos.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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? CrTerms { get; set; }
  17. public string? Curr { get; set; }
  18. public string? Type { get; set; }
  19. public bool? TaxIn { get; set; }
  20. public string? TaxClass { get; set; }
  21. public string? PurContact { get; set; }
  22. public bool? IsActive { get; set; }
  23. public int Page { get; set; } = 1;
  24. public int PageSize { get; set; } = 20;
  25. }
  26. public class AdoS0SuppMasterUpsertDto
  27. {
  28. [Range(1, long.MaxValue, ErrorMessage = "公司不能为空")]
  29. public long CompanyRefId { get; set; }
  30. [Range(1, long.MaxValue, ErrorMessage = "工厂不能为空")]
  31. public long FactoryRefId { get; set; }
  32. public string? DomainCode { get; set; }
  33. [Required(ErrorMessage = "供应商编码不能为空")]
  34. public string Supp { get; set; } = string.Empty;
  35. public string? SortName { get; set; }
  36. public string? PurContact { get; set; }
  37. public string? CrTerms { get; set; }
  38. public string? Curr { get; set; }
  39. public string? Type { get; set; }
  40. public bool TaxIn { get; set; } = true;
  41. public string? TaxClass { get; set; }
  42. public int? APStartDay1 { get; set; }
  43. public int? APEndDay1 { get; set; }
  44. public int? APStartDay2 { get; set; }
  45. public int? APEndDay2 { get; set; }
  46. public string? Remark { get; set; }
  47. public bool IsActive { get; set; } = true;
  48. public string? CreateUser { get; set; }
  49. public string? UpdateUser { get; set; }
  50. }
  51. public class AdoS0SrmPurchaseQueryDto
  52. {
  53. public long? CompanyRefId { get; set; }
  54. public long? FactoryRefId { get; set; }
  55. public string? DomainCode { get; set; }
  56. /// <summary>物料编码 / 名称关键字</summary>
  57. public string? Keyword { get; set; }
  58. public string? SupplierType { get; set; }
  59. public bool? IsActive { get; set; }
  60. public string? SupplierName { get; set; }
  61. public string? SupplierNumber { get; set; }
  62. public string? CurrencyType { get; set; }
  63. public int Page { get; set; } = 1;
  64. public int PageSize { get; set; } = 20;
  65. }
  66. public class AdoS0SrmPurchaseUpsertDto
  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. [Range(1, long.MaxValue, ErrorMessage = "物料不能为空")]
  74. public long IcitemId { get; set; }
  75. public string? IcitemName { get; set; }
  76. public string? SupplierType { get; set; }
  77. public bool IsActive { get; set; } = true;
  78. [Range(1, long.MaxValue, ErrorMessage = "供应商不能为空")]
  79. public long SupplierId { get; set; }
  80. public string? SupplierName { get; set; }
  81. public string? SupplierNumber { get; set; }
  82. public decimal? OrderPrice { get; set; }
  83. public string? CurrencyType { get; set; }
  84. public decimal? Taxrate { get; set; }
  85. public decimal? Tariff { get; set; }
  86. public decimal? Freight { get; set; }
  87. public string? PriceTerms { get; set; }
  88. public DateTime? EffectiveDate { get; set; }
  89. public DateTime? ExpiringDate { get; set; }
  90. public decimal? QuotaRate { get; set; }
  91. public int? LeadTime { get; set; }
  92. public decimal? QtyMin { get; set; }
  93. public decimal? PackagingQty { get; set; }
  94. public string? OrderRectorName { get; set; }
  95. public string? OrderRectorNum { get; set; }
  96. public bool IsRequireGoods { get; set; }
  97. public string? CreateUser { get; set; }
  98. public string? UpdateUser { get; set; }
  99. }