This commit is contained in:
mmrbnjd
2024-07-04 17:18:59 +03:30
parent 3d389b602d
commit 73fe6a0992
8 changed files with 44 additions and 11 deletions

View File

@@ -3,6 +3,7 @@
@inject HttpClientController hc;
<Preload LoadingText="در حال بارگذاری..." />
<Toasts class="p-3" Messages="messages" Placement="ToastsPlacement.MiddleCenter" />
@layout EmptyLayout
@page "/InvoiceReport/{ExternalAccessCode}"
@using Front.Services
@@ -13,7 +14,7 @@
protected async override Task OnParametersSetAsync()
{
if (!string.IsNullOrEmpty(ExternalAccessCode))
ShowReport();
await ShowReport();
await base.OnParametersSetAsync();
}

View File

@@ -16,7 +16,8 @@
<Modal @ref="Codemodal" title="لینک برای دانلود" IsVerticallyCentered="true">
<BodyTemplate>
@ExUrl
<h5>با لینک زیر دیگران میتوانند به این صورتحساب دسترسی داشته باشند</h5>
<NavLink href="@ExUrl">@ExUrl</NavLink>
</BodyTemplate>
<FooterTemplate>
<Button Color="ButtonColor.Secondary" @onclick="OnHideModalClick">Close</Button>
@@ -342,7 +343,7 @@
<Button class="mt-3" Color="ButtonColor.Primary" @onclick="ShowReport" Type="ButtonType.Button">
pdf
</Button>
<Button class="mt-3" Color="ButtonColor.Secondary" @onclick="onClickExternalAccessCode" Type="ButtonType.Button">
<Button class="mt-3" Color="ButtonColor.Info" @onclick="onClickExternalAccessCode" Type="ButtonType.Button">
لینک
</Button>
}