...
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user