From ee27268f05df69b6b4d1c1437eae4fcce1467cd5 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 12 Sep 2018 18:14:51 +0200 Subject: [PATCH] update checkadd --- PUB/WebUserContols/mod_anagCond.ascx.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PUB/WebUserContols/mod_anagCond.ascx.cs b/PUB/WebUserContols/mod_anagCond.ascx.cs index c91a346..229f5a0 100644 --- a/PUB/WebUserContols/mod_anagCond.ascx.cs +++ b/PUB/WebUserContols/mod_anagCond.ascx.cs @@ -30,7 +30,15 @@ namespace PUB.WebUserContols cmp_numRow.eh_newNum += Cmp_numRow_eh_newNum; mod_ER_selCondominio.eh_selected += Mod_ER_selCondominio_eh_selected; checkAuth(); + checkAdd(); } + + private void checkAdd() + { + // controllo se mostrare add perché ho condominio + enable add.. + lbtAdd.Visible = (enableAdd && ddlAmmin.SelectedValue != "0"); + } + /// /// verifica autorizzaizoni (PBO / PAM...) /// @@ -74,8 +82,6 @@ namespace PUB.WebUserContols } public void doUpdate() { - // controllo se mostrare add perché ho condominio + enable add.. - lbtAdd.Visible = (enableAdd && ddlAmmin.SelectedValue != "0"); grView.DataBind(); } public int idxCond