-
+ @if (InvoiceID.HasValue && invoice.items.Count > 0)
+ {
+
+
+ }
@@ -229,7 +233,7 @@
protected override async Task OnParametersSetAsync()
{
- PreloadService.Show(SpinnerColor.Dark);
+
Cus = await fv.GetCustomers();
Patterns = await fv.GetPatterns();
if (InvoiceID != null && InvoiceID > 0)
@@ -252,7 +256,7 @@
Hidealert = true;
alertMessage = "";
- PreloadService.Hide();
+
await base.OnParametersSetAsync();
}
}
@@ -273,6 +277,7 @@
}
private async Task LoadData()
{
+ PreloadService.Show(SpinnerColor.Dark);
var rsp = await hc.Get($"Invoice/Get/{InvoiceID}");
if (rsp.IsSuccessStatusCode)
{
@@ -280,6 +285,8 @@
}
else
hc._nav.NavigateTo("/Panel");
+
+ PreloadService.Hide();
}
public async Task CallBack(ActionInResultComponent result)
{
diff --git a/TaxPayerFull/Program.cs b/TaxPayerFull/Program.cs
index 628e6c3..f8805c2 100644
--- a/TaxPayerFull/Program.cs
+++ b/TaxPayerFull/Program.cs
@@ -34,9 +34,9 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
}) ;
-builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
+//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
-//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
+builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");