namespace Admin.NET.Plugin.AiDOP.Dto.S0.Sales;
public class AdoS0PriorityRuleQueryDto
{
public long? CompanyRefId { get; set; }
public long? FactoryRefId { get; set; }
public string? Keyword { get; set; }
public bool? IsEnabled { get; set; }
public int Page { get; set; } = 1;
public int PageSize { get; set; } = 20;
}
public class AdoS0PriorityRuleUpsertDto
{
public long CompanyRefId { get; set; }
public long FactoryRefId { get; set; }
[MaxLength(100)]
public string Code { get; set; } = string.Empty;
[MaxLength(200)]
public string Name { get; set; } = string.Empty;
public int PriorityLevel { get; set; }
[MaxLength(10)]
public string SortDirection { get; set; } = "asc";
[MaxLength(200)]
public string? SourceEntity { get; set; }
[MaxLength(200)]
public string? SourceField { get; set; }
[MaxLength(100)]
public string? SourceFieldType { get; set; }
[MaxLength(200)]
public string? SourceLinkField { get; set; }
[MaxLength(200)]
public string? WorkOrderField { get; set; }
[MaxLength(100)]
public string? WorkOrderFieldType { get; set; }
[MaxLength(200)]
public string? WorkOrderLinkField { get; set; }
/// 客户类型(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)
public string? CustomerType { get; set; }
/// 订单类型(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)
public string? OrderType { get; set; }
/// 到期状态(写入 RuleExpr JSON,无 1:1 列长度,本批次不加 MaxLength)
public string? DueStatus { get; set; }
[MaxLength(500)]
public string? Remark { get; set; }
public bool IsEnabled { get; set; } = true;
}
public class AdoS0PriorityRuleToggleDto
{
public bool IsEnabled { get; set; }
}