60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using Volo.Abp.Domain.Values;
|
|||
|
|
|
|||
|
|
namespace Sozsoft.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;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|