From 3e11a2544cefe0a1d888ff20639047cd9405d4c8 Mon Sep 17 00:00:00 2001 From: mmrbnjd Date: Tue, 7 May 2024 18:00:21 +0330 Subject: [PATCH] ... --- TaxPayerFull/CUSComponent/CustomerItem.razor | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/TaxPayerFull/CUSComponent/CustomerItem.razor b/TaxPayerFull/CUSComponent/CustomerItem.razor index 2638114..00d933d 100644 --- a/TaxPayerFull/CUSComponent/CustomerItem.razor +++ b/TaxPayerFull/CUSComponent/CustomerItem.razor @@ -7,7 +7,7 @@
- @@ -91,12 +91,13 @@ else @code { [Parameter] public RCustomer Cus { get; set; } - + public int? ItemSearchCustomertype { get; set; } [Parameter] public EventCallback 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); }