From 79925a4e020121810f504d4508a9ba81ad52e37c Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 10 Dec 2021 10:42:12 +0100 Subject: [PATCH] Fix edit cliente trattativa --- .../Components/NegotiationEditor.razor | 29 ++++--------------- SHERPA.BBM.UI/SHERPA.BBM.UI.csproj | 2 +- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/SHERPA.BBM.UI/Components/NegotiationEditor.razor b/SHERPA.BBM.UI/Components/NegotiationEditor.razor index fe2b67c..2361c26 100644 --- a/SHERPA.BBM.UI/Components/NegotiationEditor.razor +++ b/SHERPA.BBM.UI/Components/NegotiationEditor.razor @@ -32,8 +32,8 @@
- - + +
@@ -79,33 +79,16 @@ { get { - int answ = 0; - if (_selCustId != 0) + int answ = 1; + if (_negotiation != null) { - answ = _selCustId; - } - else - { - try - { - if (_negotiation != null) - { - answ = (int)_negotiation.CustomerId; - } - } - catch - { - answ = 1; - } + answ = _negotiation.CustomerId; } return answ; } set { - _selCustId = value; - // condiziono visualizzazione... - var pUpd = Task.Run(async () => await ReloadAllData()); - pUpd.Wait(); + _negotiation.CustomerId = value; } } diff --git a/SHERPA.BBM.UI/SHERPA.BBM.UI.csproj b/SHERPA.BBM.UI/SHERPA.BBM.UI.csproj index cc91a35..ac356c9 100644 --- a/SHERPA.BBM.UI/SHERPA.BBM.UI.csproj +++ b/SHERPA.BBM.UI/SHERPA.BBM.UI.csproj @@ -4,7 +4,7 @@ net5.0 60fcdaab-6c1e-4bec-9d88-f7727ef1c12c wwwroot\favicon.ico - 1.0.2112.1008 + 1.0.2112.1010