mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 04:20:55 +00:00
Сделал маршрут для получения N дней для получения распечаток в день
This commit is contained in:
1 parent
dad8b27322
commit
cf5ea0861b
13 files changed
+58
-9
No files matched your search
@@ -4,7 +4,7 @@
|
||||
<span style="font-size: 48px; height: 58px;">
|
||||
<b>@(cartridgeItem.Id.ToString("D4"))</b>
|
||||
</span>
|
||||
<RadzenBadge Text="TK-1170" Style="width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;" />
|
||||
<RadzenBadge Text="@cartridgeItem.ModelName" Style="width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;" />
|
||||
<RadzenBarcode BarHeight="5" Style="width: 140px; height: 20px;" Type="RadzenBarcodeType.Itf" ShowValue="false" Foreground="var(--rz-text-body1-color)" Background="transparent" Value="@(cartridgeItem.Id.ToString("D4"))" />
|
||||
@switch (cartridgeItem.StatusId)
|
||||
{
|
||||
|
||||
@@ -1,11 +1,31 @@
|
||||
@page "/"
|
||||
@page "/dashboard"
|
||||
@inject HttpClient http
|
||||
|
||||
<h3>Dashboard</h3>
|
||||
<RadzenChart>
|
||||
<RadzenAreaSeries Smooth="true" Data="recordPrintedPagesItems" CategoryProperty="Date" Title="2023" ValueProperty="Revenue" RenderingOrder="1">
|
||||
<RadzenSeriesDataLabels/>
|
||||
</RadzenAreaSeries>
|
||||
<RadzenCategoryAxis Padding="20" LabelAutoRotation="-45" />
|
||||
<RadzenValueAxis>
|
||||
<RadzenGridLines Visible="true" />
|
||||
<RadzenAxisTitle Text="Revenue in USD" />
|
||||
</RadzenValueAxis>
|
||||
</RadzenChart>
|
||||
|
||||
@code {
|
||||
|
||||
List<Shared.Models.Report.RecordPrintedPagesItem> recordPrintedPagesItems = new();
|
||||
|
||||
protected async override Task OnInitializedAsync()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
async Task GetrecordPrintedPagesItems()
|
||||
{
|
||||
var responce = http.GetAsync(Shared.Classes.ApiRoutes.Report.GetRecordPrintAtSeletedDays(5));
|
||||
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,6 @@
|
||||
<RadzenFab Icon="add" Text="Добавить принтер" Click="AddPrinterClick" />
|
||||
}
|
||||
|
||||
|
||||
<RadzenStack AlignItems="AlignItems.Stretch">
|
||||
<RadzenCard Style="padding: 8px;">
|
||||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.SpaceBetween">
|
||||
@@ -36,7 +35,7 @@
|
||||
<RadzenPanel AllowCollapse="true" Collapsed="true" Style="padding: 8px;">
|
||||
<HeaderTemplate>
|
||||
<RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.SpaceBetween">
|
||||
<RadzenStack Orientation="Orientation.Vertical" Gap="8">
|
||||
<RadzenStack Orientation="Orientation.Horizontal" Gap="8" Wrap="FlexWrap.Wrap">
|
||||
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="8">
|
||||
<RadzenIcon Icon="deployed_code" />
|
||||
<RadzenText Text="@($"{location.Name}")" TextStyle="TextStyle.DisplayH6" />
|
||||
|
||||
Reference in new issue
Block a user