AdoS0PriorityRuleDtos.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S0.Sales;
  2. public class AdoS0PriorityRuleQueryDto
  3. {
  4. public long? CompanyRefId { get; set; }
  5. public long? FactoryRefId { get; set; }
  6. public string? Keyword { get; set; }
  7. public bool? IsEnabled { get; set; }
  8. public int Page { get; set; } = 1;
  9. public int PageSize { get; set; } = 20;
  10. }
  11. public class AdoS0PriorityRuleUpsertDto
  12. {
  13. public long CompanyRefId { get; set; }
  14. public long FactoryRefId { get; set; }
  15. [MaxLength(100)]
  16. public string Code { get; set; } = string.Empty;
  17. [MaxLength(200)]
  18. public string Name { get; set; } = string.Empty;
  19. public int PriorityLevel { get; set; }
  20. [MaxLength(10)]
  21. public string SortDirection { get; set; } = "asc";
  22. [MaxLength(200)]
  23. public string? SourceEntity { get; set; }
  24. [MaxLength(200)]
  25. public string? SourceField { get; set; }
  26. [MaxLength(100)]
  27. public string? SourceFieldType { get; set; }
  28. [MaxLength(200)]
  29. public string? SourceLinkField { get; set; }
  30. [MaxLength(200)]
  31. public string? WorkOrderField { get; set; }
  32. [MaxLength(100)]
  33. public string? WorkOrderFieldType { get; set; }
  34. [MaxLength(200)]
  35. public string? WorkOrderLinkField { get; set; }
  36. /// <summary>客户类型(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)</summary>
  37. public string? CustomerType { get; set; }
  38. /// <summary>订单类型(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)</summary>
  39. public string? OrderType { get; set; }
  40. /// <summary>到期状态(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)</summary>
  41. public string? DueStatus { get; set; }
  42. [MaxLength(500)]
  43. public string? Remark { get; set; }
  44. public bool IsEnabled { get; set; } = true;
  45. }
  46. public class AdoS0PriorityRuleToggleDto
  47. {
  48. public bool IsEnabled { get; set; }
  49. }