Some fixes

This commit is contained in:
2025-07-11 10:50:46 +02:00
parent 205246f79f
commit a49af51128
309 changed files with 389 additions and 1330 deletions

View File

@@ -1,4 +1,4 @@
@using Drab.Ui.components
@using Drab.Ui.Components
@using Microsoft.AspNetCore.Components.Web
@using Radzen
@@ -18,7 +18,8 @@
<body>
<Routes @rendermode="RenderMode.InteractiveServer"/>
<script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=@(typeof(Colors).Assembly.GetName().Version)"></script>
<script src="_content/Radzen.Blazor/Radzen.Blazor.js?v=@(typeof(Colors).Assembly.GetName()
.Version)"></script>
<script src="_framework/blazor.web.js"></script>
</body>

View File

@@ -2,7 +2,7 @@
@using Drab.LocalDb
@using Drab.LocalDb.Entities
@using Drab.Logic.Services
@using Drab.Ui.components
@using Drab.Ui.Components
@using Radzen
@inject LocalDbContext LocalDbContext
@inject DialogService DialogService
@@ -76,8 +76,8 @@
private async Task RowClick(DataGridRowMouseEventArgs<OrderDb> obj)
{
await DialogService.OpenAsync<PdfViewer>($"Zamówienie {obj.Data.OrderNumber} - Sklep {obj.Data.Shop}",
new Dictionary<string, object>() {{nameof(PdfViewer.Filename), obj.Data.Filename}},
new DialogOptions()
new Dictionary<string, object> {{nameof(PdfViewer.Filename), obj.Data.Filename}},
new DialogOptions
{
CloseDialogOnEsc = true,
CloseDialogOnOverlayClick = true,
@@ -94,6 +94,7 @@
{
_orders = LocalDbContext.Orders;
_dataGridRef?.Reload();
_dataGridRef?.RefreshDataAsync();
StateHasChanged();
return Task.CompletedTask;
});