erp-platform/api/src/Erp.Platform.Domain/Queries/QueryParameters.cs
2025-11-11 22:49:52 +03:00

59 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
using Volo.Abp.Domain.Values;
namespace Erp.Platform.Queries;
public class QueryParameters : ValueObject
{
public string ListFormCode { get; set; }
public int Skip { get; set; } = 0;
public int Take { get; set; } = 0;
public string Sort { get; set; }
/// <summary>
/// Beklenen temel veri yapisi : [{"selector":"OrderNumber","summaryType":"count"},{"selector":"SaleAmount","summaryType":"sum"}]
/// </summary>
public string TotalSummary { get; set; }
public string Filter { get; set; }
/// <summary>beklenen veri yapisi: AlanIsmi|asc-desc|isExpanded
/// "FieldName|asc|false,FieldName2|desc|true"
/// </summary>
public string Group { get; set; }
/// <summary> beklenen veri yapisi: "FieldName count"
/// </summary>
public string GroupSummary { get; set; }
public bool RequireGroupCount { get; set; }
public bool RequireTotalCount { get; set; }
/// <summary> Tümünü silme işlemi için kullanılan parametre
/// </summary>
public bool CreateDeleteQuery { get; set; } = false;
public bool OnlyTotalCountQuery { get; set; } = false;
//parentIds
//searchExpr
//searchOperation
//searchValue
//select
//userData
//Chart
public bool Chart { get; set; } = false;
protected override IEnumerable<object> GetAtomicValues()
{
yield return ListFormCode;
yield return Skip;
yield return Take;
yield return Sort;
yield return Filter;
yield return Group;
yield return GroupSummary;
yield return RequireGroupCount;
yield return RequireTotalCount;
yield return TotalSummary;
}
}