-
Notifications
You must be signed in to change notification settings - Fork 352
/
Copy pathGridUrlParameters.cs
61 lines (54 loc) · 1.87 KB
/
GridUrlParameters.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Loccioni.DataSource
{
public static class GridUrlParameters
{
public static string Aggregates
{
get;
set;
}
public static string Filter { get; set; }
public static string Page { get; set; }
public static string PageSize { get; set; }
public static string Sort { get; set; }
public static string Group { get; set; }
public static string Mode { get; set; }
public static string GroupPaging { get; set; }
public static string IncludeSubGroupCount { get; set; }
public static string Skip { get; set; }
public static string Take { get; set; }
static GridUrlParameters()
{
Sort = "sort";
Group = "group";
Page = "page";
PageSize = "pageSize";
Filter = "filter";
Mode = "mode";
Aggregates = "aggregate";
GroupPaging = "groupPaging";
Skip = "skip";
Take = "take";
IncludeSubGroupCount = "includeSubGroupCount";
}
public static IDictionary<string, string> ToDictionary(string prefix)
{
IDictionary<string, string> result = new Dictionary<string, string>();
result[Group] = prefix + Group;
result[Sort] = prefix + Sort;
result[Page] = prefix + Page;
result[PageSize] = prefix + PageSize;
result[Filter] = prefix + Filter;
result[Mode] = prefix + Mode;
result[GroupPaging] = prefix + GroupPaging;
result[Skip] = prefix + Skip;
result[Take] = prefix + Take;
result[IncludeSubGroupCount] = prefix + IncludeSubGroupCount;
return result;
}
}
}