...
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@
|
||||
@using Shared
|
||||
@using Shared.DTOs
|
||||
@using Shared.DTOs.Serch
|
||||
|
||||
<Modal @ref="modal" />
|
||||
<Preload LoadingText="در حال بارگذاری..." />
|
||||
@* search *@
|
||||
<div class="row">
|
||||
@@ -33,7 +33,7 @@
|
||||
@foreach (InvoiceType i in Enum.GetValues(typeof(InvoiceType)))
|
||||
{
|
||||
|
||||
<option value="@Convert.ToInt32(i)">@i.GetEnumDisplayName()</option>
|
||||
<option value="@i">@i.GetEnumDisplayName()</option>
|
||||
|
||||
|
||||
}
|
||||
@@ -46,13 +46,16 @@
|
||||
@foreach (SentStatus i in Enum.GetValues(typeof(SentStatus)))
|
||||
{
|
||||
|
||||
<option value="@Convert.ToInt32(i)">@i.GetEnumDisplayName()</option>
|
||||
<option value="@i">@i.GetEnumDisplayName()</option>
|
||||
|
||||
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button @onclick="() => Load(1)" type="submit" class="btn btn-primary">جستجو</button>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -99,8 +102,10 @@
|
||||
}
|
||||
|
||||
@code {
|
||||
private Modal modal = default!;
|
||||
[Inject] protected PreloadService PreloadService { get; set; } = default!;
|
||||
ItemSerchGetSentTax itemsearch = new ItemSerchGetSentTax();
|
||||
[Parameter]
|
||||
public int? routed { get; set; } = 0;
|
||||
// alert
|
||||
AlertColor alertColor = AlertColor.Primary;
|
||||
@@ -128,7 +133,23 @@
|
||||
@functions{
|
||||
public async Task SentTaxItem(int ID)
|
||||
{
|
||||
|
||||
var rsp = await hc.Get($"TaxPayer/GetResult/{ID}");
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
{
|
||||
var requestsendTax = await rsp.Content.ReadFromJsonAsync<DataInSendTaxDto>();
|
||||
//عویض کردن اطلاعات در گرید
|
||||
var ingriddata= request.list.Where(w => w.ID == ID).First();
|
||||
ingriddata.SentStatus = requestsendTax.SentStatus;
|
||||
ingriddata.msgSentStatus = requestsendTax.msgSentStatus;
|
||||
//-----------------
|
||||
var parameters = new Dictionary<string, object>();
|
||||
parameters.Add("inData", requestsendTax);
|
||||
await modal.ShowAsync<CUSComponent.SendTaxItem>(title: "وضعیت صورتحساب ارسالی", parameters: parameters);
|
||||
}
|
||||
else{
|
||||
var request = await rsp.Content.ReadFromJsonAsync<List<string>>();
|
||||
ShowDangerAlert(request[0]);
|
||||
}
|
||||
}
|
||||
public async Task Load(int pi)
|
||||
{
|
||||
|
Reference in New Issue
Block a user