mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал список OID адресов, добавил миграцию бд при запуске программы
This commit is contained in:
1 parent
48e625819a
commit
bd426d2647
35 files changed
+927
-46
No files matched your search
@@ -1,5 +1,35 @@
|
||||
<h3>LocationCard</h3>
|
||||
@inject NavigationManager NavigationManager
|
||||
<style>
|
||||
.card {
|
||||
transition: 0.1s;
|
||||
outline: solid 0px;
|
||||
aspect-ratio: 1 / 1;
|
||||
padding: 14px;
|
||||
width: 150px;
|
||||
display: flex;
|
||||
}
|
||||
.card:hover {
|
||||
transition: 0.2s;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
.card:active {
|
||||
transition: 0.2s;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
</style>
|
||||
|
||||
<RadzenCard class="card" @onclick="OpenLocation">
|
||||
<RadzenStack Style="margin: auto; " Orientation="Orientation.Vertical" AlignItems="AlignItems.Center">
|
||||
<RadzenText TextAlign="TextAlign.Center" TextStyle="TextStyle.DisplayH4" Style="font-weight: bold; word-break: break-all; width: 100%;" Text="@locationItem.Name" />
|
||||
<RadzenBadge Text="@($"Принтеров: {locationItem.CountPrinters}")"/>
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
|
||||
@code {
|
||||
[EditorRequired] [Parameter] public required Models.Location.LocationItem locationItem { get; set; }
|
||||
|
||||
async Task OpenLocation()
|
||||
{
|
||||
NavigationManager.NavigateTo($"/location/{locationItem.Id}");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
@inject NavigationManager NavigationManager
|
||||
<RadzenCard @onclick="OpenLocation">
|
||||
<RadzenStack Style="margin: auto; " Orientation="Orientation.Horizontal">
|
||||
<RadzenText TextAlign="TextAlign.Center" TextStyle="TextStyle.DisplayH4" Style="font-weight: bold; word-break: break-all; width: 100%;" Text="@printerItem.Name" />
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
|
||||
@code {
|
||||
[EditorRequired][Parameter] public required Models.Printer.PrinterItemList printerItem { get; set; }
|
||||
|
||||
async Task OpenLocation()
|
||||
{
|
||||
NavigationManager.NavigateTo($"/printer/{printerItem.Id}");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user