mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Добавил страницу по замене картриджа Создал новую сущность базы данных, ReqeustToReplace Сделал маршрут для генерации документа, и его установки Отредактировал контекст базы данных
65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
@page "/Printer/{PrinterId:int}/CartridgeReplace"
|
|
@using CartriX.Web.Components
|
|
@layout BodyOnlyLayout
|
|
|
|
<style>
|
|
.rz-form-field-content {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
|
|
<RadzenCard Style="padding: 0;">
|
|
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Center">
|
|
<RadzenCard>
|
|
<RadzenText Text="0000"/>
|
|
</RadzenCard>
|
|
|
|
<RadzenCard Variant="Variant.Outlined">
|
|
<RadzenStack Orientation="Orientation.Vertical" Gap="8px">
|
|
<RadzenText Text="Исполнитель"/>
|
|
<RadzenFormField Text="Фамилия">
|
|
<RadzenTextBox/>
|
|
</RadzenFormField>
|
|
<RadzenFormField Text="Имя">
|
|
<RadzenTextBox />
|
|
</RadzenFormField>
|
|
<RadzenFormField Text="Отчество">
|
|
<RadzenTextBox />
|
|
</RadzenFormField>
|
|
</RadzenStack>
|
|
</RadzenCard>
|
|
<RadzenCard Variant="Variant.Outlined">
|
|
<RadzenStack Orientation="Orientation.Vertical" Gap="8px">
|
|
<RadzenText Text="Заявитель" />
|
|
<RadzenFormField Text="Фамилия">
|
|
<RadzenTextBox />
|
|
</RadzenFormField>
|
|
<RadzenFormField Text="Имя">
|
|
<RadzenTextBox />
|
|
</RadzenFormField>
|
|
<RadzenFormField Text="Отчество">
|
|
<RadzenTextBox />
|
|
</RadzenFormField>
|
|
<SignaturePad @ref="SignaturePad" />
|
|
<RadzenButton Click="ClearSignaturePad" />
|
|
</RadzenStack>
|
|
</RadzenCard>
|
|
<RadzenButton Text="отпр" Click="Send" />
|
|
</RadzenStack>
|
|
</RadzenCard>
|
|
|
|
@code {
|
|
[Parameter] public int PrinterId { get; set; }
|
|
private SignaturePad SignaturePad = default!;
|
|
|
|
|
|
async Task Send()
|
|
{
|
|
Console.WriteLine(await SignaturePad.GetBase64());
|
|
}
|
|
async Task ClearSignaturePad()
|
|
{
|
|
await SignaturePad.Clear();
|
|
}
|
|
}
|