|
|
|
@ -44,7 +44,22 @@ |
|
|
|
<div style="flex: 1"> |
|
|
|
<div style="flex: 1"> |
|
|
|
<MudText Class="d-none d-md-flex">@Query</MudText> |
|
|
|
<MudText Class="d-none d-md-flex">@Query</MudText> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="display: flex; align-items: center; margin-left: auto; gap: 12px"> |
|
|
|
<div style="display: flex; justify-content: center;"> |
|
|
|
|
|
|
|
<MudPaper Style="align-items: center; display: flex; justify-content: center;"> |
|
|
|
|
|
|
|
<MudIconButton Icon="@Icons.Material.Outlined.ChevronLeft" |
|
|
|
|
|
|
|
OnClick="@PrevPage" |
|
|
|
|
|
|
|
Disabled="@(PageNumber <= 1)"> |
|
|
|
|
|
|
|
</MudIconButton> |
|
|
|
|
|
|
|
<MudText Style="flex-grow: 1" |
|
|
|
|
|
|
|
Align="Align.Center"> |
|
|
|
|
|
|
|
@PaddedString(Math.Min((PageNumber - 1) * PageSize + 1, TotalCount), TotalCount) - @PaddedString(Math.Min(TotalCount, PageNumber * PageSize), TotalCount) of @TotalCount |
|
|
|
|
|
|
|
</MudText> |
|
|
|
|
|
|
|
<MudIconButton Icon="@Icons.Material.Outlined.ChevronRight" |
|
|
|
|
|
|
|
OnClick="@NextPage" Disabled="@(PageNumber * PageSize >= TotalCount)"> |
|
|
|
|
|
|
|
</MudIconButton> |
|
|
|
|
|
|
|
</MudPaper> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="flex: 1; display: flex; justify-content: flex-end;"> |
|
|
|
@if (SelectAllOnPage is not null) |
|
|
|
@if (SelectAllOnPage is not null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
<MudButton Variant="Variant.Filled" |
|
|
|
<MudButton Variant="Variant.Filled" |
|
|
|
@ -55,23 +70,7 @@ |
|
|
|
Select All |
|
|
|
Select All |
|
|
|
</MudButton> |
|
|
|
</MudButton> |
|
|
|
} |
|
|
|
} |
|
|
|
<div> |
|
|
|
|
|
|
|
<MudPaper Style="align-items: center; display: flex; justify-content: center;"> |
|
|
|
|
|
|
|
<MudIconButton Icon="@Icons.Material.Outlined.ChevronLeft" |
|
|
|
|
|
|
|
OnClick="@PrevPage" |
|
|
|
|
|
|
|
Disabled="@(PageNumber <= 1)"> |
|
|
|
|
|
|
|
</MudIconButton> |
|
|
|
|
|
|
|
<MudText Style="flex-grow: 1" |
|
|
|
|
|
|
|
Align="Align.Center"> |
|
|
|
|
|
|
|
@PaddedString(Math.Min((PageNumber - 1) * PageSize + 1, TotalCount), TotalCount) - @PaddedString(Math.Min(TotalCount, PageNumber * PageSize), TotalCount) of @TotalCount |
|
|
|
|
|
|
|
</MudText> |
|
|
|
|
|
|
|
<MudIconButton Icon="@Icons.Material.Outlined.ChevronRight" |
|
|
|
|
|
|
|
OnClick="@NextPage" Disabled="@(PageNumber * PageSize >= TotalCount)"> |
|
|
|
|
|
|
|
</MudIconButton> |
|
|
|
|
|
|
|
</MudPaper> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|