@using Shared.DTOs @using Front.Services @inject HttpClientController hc; @inject Fixedvalues fv;
فاکتور برای مشتری
هفنه گدشته
    @foreach (var item in model) {
  • @item.count.Value.ToString("N0")
    عدد
  • }
@code { [Parameter] public List>? model { get; set; } private Modal cusmodal = default!; } @functions{ public async Task CallBackCustomerItem(ActionInResultComponent result) { } public async Task CustomerItem(int ID) { var rsp = await hc.Get($"Customer/GetCustomer/{ID}"); if (rsp.IsSuccessStatusCode) { var cus = await rsp.Content.ReadFromJsonAsync(); var parameters = new Dictionary(); parameters.Add("Cus", cus); parameters.Add("OnMultipleOfThree", EventCallback.Factory.Create(this, CallBackCustomerItem)); await cusmodal.ShowAsync(title: "ویرایش اطلاعات", parameters: parameters); } } }