@@ -80,6 +81,7 @@ else
@code {
+ private Modal modal = default!;
// alert
AlertColor alertColor = AlertColor.Primary;
IconName alertIconName = IconName.CheckCircleFill;
@@ -196,4 +198,6 @@ else
}
else ShowDangerAlert("فیلدهای قرمز باید مقدار دهی شوند");
}
+
+
}
\ No newline at end of file
diff --git a/TaxPayerFull/CUSComponent/Taxstuff.razor b/TaxPayerFull/CUSComponent/Taxstuff.razor
new file mode 100644
index 0000000..c7494b5
--- /dev/null
+++ b/TaxPayerFull/CUSComponent/Taxstuff.razor
@@ -0,0 +1,66 @@
+@using Shared.DTOs;
+@using Front.Services
+@inject HttpClientController hc;
+
+
+
+
+
+
+ @context.ID
+
+
+ @context.Type
+
+
+ @context.TaxableOrFree
+
+
+ @context.Vat
+
+ @*
+ @context.VatCustomPurposes
+ *@
+
+ @context.DescriptionOfID
+
+
+
+
+@code {
+ private IEnumerable
stuffDtos;
+ public string Value { get; set; }
+ protected override void OnInitialized()
+ {
+ stuffDtos = new List();
+
+
+ }
+
+
+}
+@functions {
+ public async Task Search()
+ {
+ if (!string.IsNullOrEmpty(Value))
+ {
+ var rsp = await hc.Get($"stuff/Getstuff/{Value}");
+ if (rsp.IsSuccessStatusCode)
+ {
+ stuffDtos = await rsp.Content.ReadFromJsonAsync>();
+ }
+ }
+
+ }
+
+ private async Task> DataProvider(GridDataProviderRequest request)
+ {
+ return await Task.FromResult(request.ApplyTo(stuffDtos));
+ }
+}
\ No newline at end of file
diff --git a/TaxPayerFull/Pages/UserPanel/COD.razor b/TaxPayerFull/Pages/UserPanel/COD.razor
index b1a1843..5312505 100644
--- a/TaxPayerFull/Pages/UserPanel/COD.razor
+++ b/TaxPayerFull/Pages/UserPanel/COD.razor
@@ -7,7 +7,6 @@
@inject Fixedvalues fv;
کالا
-
@* search *@
@@ -60,10 +59,18 @@
-
+
+
+
+
+
+
+
@@ -110,7 +117,7 @@
@layout PanelLayout
@code {
-
+ //private Modal stuffmodal = default!;
[Inject] protected PreloadService PreloadService { get; set; } = default!;
ItemSerchGetCOD itemsearch = new ItemSerchGetCOD();
[Parameter, SupplyParameterFromQuery]
@@ -201,7 +208,6 @@
}
public async Task CodItem(int ID)
{
-
var parameters = new Dictionary
();
if(ID == 0) parameters.Add("Cod", new RCOD(){ID=0});
@@ -211,5 +217,14 @@
await modal.ShowAsync(title: ID == 0 ? "کالا جدید" : "ویرایش اطلاعات", parameters: parameters);
+ }
+ public async Task Showstuff()
+ {
+ var parameters = new Dictionary();
+ modal.Size = ModalSize.ExtraLarge;
+
+ await modal.ShowAsync(title: "دریافت شناسه کالا", parameters: parameters);
+
+
}
}
\ No newline at end of file
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");