...
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
itemsearch.PageSize = 10;
|
||||
itemsearch.PageIndex = pi;
|
||||
PreloadService.Show(SpinnerColor.Dark);
|
||||
var rsp = await hc.Post<ItemSerachOrder>("Orderss/GetAllOrder",itemsearch);
|
||||
var rsp = await hc.Post<ItemSerachOrder>("Orders/GetAllOrder",itemsearch);
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
request = await rsp.Content.ReadFromJsonAsync<Shared.DTOs.PagingDto<OrderDto>?>();
|
||||
else
|
||||
@@ -171,20 +171,15 @@
|
||||
alertMessage = msg;
|
||||
}
|
||||
|
||||
public async Task CallBackItem(ActionInResultComponent result)
|
||||
public async Task CallBackFromReadItem(ActionInResultComponent result)
|
||||
{
|
||||
|
||||
if (result.Action == ComponentAction.add)
|
||||
{
|
||||
if (result.Status == ComponentStatus.success)
|
||||
ShowSuccessAlert("سفارش جدید با موفقیت اضافه شد");
|
||||
ShowSuccessAlert("سفارش پرداخت شد");
|
||||
|
||||
}
|
||||
else if (result.Action == ComponentAction.update)
|
||||
{
|
||||
if (result.Status == ComponentStatus.success)
|
||||
ShowSuccessAlert("اطلاعات سفارش با موفقیت ویرایش شد");
|
||||
}
|
||||
else if (result.Action == ComponentAction.delete)
|
||||
{
|
||||
if (result.Status == ComponentStatus.success)
|
||||
@@ -200,10 +195,10 @@
|
||||
{
|
||||
var parameters = new Dictionary<string, object>();
|
||||
|
||||
var item = request.list.Where(w => w.ID == ID).First().Clone();
|
||||
var item = request?.list.Where(w => w.ID == ID).First().Clone();
|
||||
parameters.Add("order", item);
|
||||
parameters.Add("OnMultipleOfThree", EventCallback.Factory.Create<ActionInResultComponent>(this, CallBackItem));
|
||||
await modal.ShowAsync<CodItem>(title:$"سفارش {ID}", parameters: parameters);
|
||||
parameters.Add("OnMultipleOfThree", EventCallback.Factory.Create<ActionInResultComponent>(this, CallBackFromReadItem));
|
||||
await modal.ShowAsync<OrderItemRead>(title:$"سفارش {ID}", parameters: parameters);
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user