...
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label class="col-sm-4 col-form-label" style="color:red" for="inputcustomertype">نوع مشتری</label>
|
||||
<select @bind="Cus.CustomerType" class="form-control" aria-label="Default select example" id="inputcustomertype">
|
||||
<select @bind="ItemSearchCustomertype" class="form-control" aria-label="Default select example" id="inputcustomertype">
|
||||
<option value="0" style="color: #b5b5b5" selected>انتخاب کنید...</option>
|
||||
<option value="1">حقیقی</option>
|
||||
<option value="2">حقوقی</option>
|
||||
@@ -91,12 +91,13 @@ else
|
||||
@code {
|
||||
|
||||
[Parameter] public RCustomer Cus { get; set; }
|
||||
|
||||
public int? ItemSearchCustomertype { get; set; }
|
||||
[Parameter] public EventCallback<ActionInResultComponent> OnMultipleOfThree { get; set; }
|
||||
|
||||
public ActionInResultComponent result { get; set; }
|
||||
protected override Task OnParametersSetAsync()
|
||||
{
|
||||
result = new ActionInResultComponent();
|
||||
return base.OnParametersSetAsync();
|
||||
}
|
||||
}
|
||||
@@ -112,7 +113,10 @@ else
|
||||
}
|
||||
public async Task OnClickAdd()
|
||||
{
|
||||
var rssss = Cus;
|
||||
if (ItemSearchCustomertype > 0)
|
||||
Cus.CustomerType = (CustomerType)ItemSearchCustomertype;
|
||||
Cus.ID = null;
|
||||
|
||||
result.Action = ComponentAction.add;
|
||||
await OnMultipleOfThree.InvokeAsync(result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user