This commit is contained in:
mmrbnjd
2024-06-01 12:58:04 +03:30
parent d2fa7a885e
commit 80f903f31c
7 changed files with 161 additions and 24 deletions

View File

@@ -13,19 +13,19 @@
[Parameter] public int? InvoiceID { get; set; }
List<ToastMessage> messages = new List<ToastMessage>();
[Inject] protected PreloadService PreloadService { get; set; } = default!;
public InvoiceDTO? invoice { get; set; }
public _TaxPayer.Atemplatefield? invoice { get; set; }
// alert
AlertColor alertColor = AlertColor.Primary;
IconName alertIconName = IconName.CheckCircleFill;
bool Hidealert = true;
string alertMessage = "";
protected override async Task OnInitializedAsync()
protected override async Task OnParametersSetAsync()
{
await LoadData();
await base.OnInitializedAsync();
await base.OnParametersSetAsync();
}
}
@functions{
private void ShowSuccessAlert(string msg)
@@ -48,7 +48,7 @@
var rsp = await hc.Get($"TaxPayer/GetInvoice/{InvoiceID}");
if (rsp.IsSuccessStatusCode)
{
invoice = await rsp.Content.ReadFromJsonAsync<InvoiceDTO>();
invoice = await rsp.Content.ReadFromJsonAsync<_TaxPayer.Atemplatefield?>();
}
else
{