mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Добавил библеотеку для создание росписи
Добавил страницу по замене картриджа Создал новую сущность базы данных, ReqeustToReplace Сделал маршрут для генерации документа, и его установки Отредактировал контекст базы данных
This commit is contained in:
1 parent
53e6f22997
commit
0106a85570
37 files changed
+794
-3421
No files matched your search
@@ -0,0 +1,64 @@
|
||||
@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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user