This commit is contained in:
mmrbnjd
2024-08-15 19:15:51 +03:30
parent 4c82d49a0e
commit 21eeb4d11b
9 changed files with 259 additions and 139 deletions

View File

@@ -14,15 +14,7 @@
<Toasts AutoHide="true" Delay="6000" class="p-3" Messages="messages" Placement="ToastsPlacement.TopRight" />
<PageTitle>جزئیات صورتحساب</PageTitle>
<Modal @ref="Codemodal" title="لینک برای دانلود" IsVerticallyCentered="true">
<BodyTemplate>
<h5>با لینک زیر دیگران میتوانند به این صورتحساب دسترسی داشته باشند</h5>
<NavLink href="@ExUrl">@ExUrl</NavLink>
</BodyTemplate>
<FooterTemplate>
<Button Color="ButtonColor.Secondary" @onclick="OnHideModalClick">Close</Button>
</FooterTemplate>
</Modal>
@if (invoice.IsDeleted)
{
@@ -361,10 +353,10 @@
<Button class="mt-3" Color="ButtonColor.Primary" @onclick="showFullInvoiceItem" Type="ButtonType.Button">
اطلاعات تکمیلی
</Button>
@* <Button class="mt-3" Color="ButtonColor.Primary" @onclick="ShowReport" Type="ButtonType.Button">
pdf
<Button class="mt-3" Color="ButtonColor.Info" @onclick="OnClickPayment" Type="ButtonType.Button">
اطلاعات پرداخت
</Button>
<Button class="mt-3" Color="ButtonColor.Info" @onclick="onClickLink" Type="ButtonType.Button">
@* <Button class="mt-3" Color="ButtonColor.Info" @onclick="onClickLink" Type="ButtonType.Button">
لینک
</Button> *@
}
@@ -410,7 +402,6 @@
@code {
private Modal Codemodal = default!;
public bool SendInvoice { get; set; } = false;
List<ToastMessage> messages = new List<ToastMessage>();
private ConfirmDialog dialog = default!;
@@ -465,10 +456,7 @@
@functions {
private async Task OnHideModalClick()
{
await Codemodal.HideAsync();
}
private void ShowMessage(ToastType toastType, string msg) => messages.Add(CreateToastMessage(toastType, msg));
private ToastMessage CreateToastMessage(ToastType toastType, string msg)
@@ -490,6 +478,10 @@
}
}
private async Task OnClickPayment()
{
}
private async Task CopyInvoice()
{