diff --git a/PUB/PAM/AnagCond2Forn.aspx b/PUB/PAM/AnagCond2Forn.aspx index 351b47c..f754e65 100644 --- a/PUB/PAM/AnagCond2Forn.aspx +++ b/PUB/PAM/AnagCond2Forn.aspx @@ -9,7 +9,7 @@
- +
diff --git a/PUB/PBO/AnagCond2Forn.aspx b/PUB/PBO/AnagCond2Forn.aspx index 443c042..03137f2 100644 --- a/PUB/PBO/AnagCond2Forn.aspx +++ b/PUB/PBO/AnagCond2Forn.aspx @@ -2,12 +2,12 @@ <%@ Register Src="~/WebUserContols/mod_anagCond.ascx" TagPrefix="uc1" TagName="mod_anagCond" %> <%@ Register Src="~/WebUserContols/mod_F2C.ascx" TagPrefix="uc1" TagName="mod_F2C" %> - +
- +
diff --git a/PUB/WebUserContols/mod_anagCond.ascx b/PUB/WebUserContols/mod_anagCond.ascx index d410f58..73ae5c0 100644 --- a/PUB/WebUserContols/mod_anagCond.ascx +++ b/PUB/WebUserContols/mod_anagCond.ascx @@ -20,7 +20,6 @@
-
diff --git a/PUB/WebUserContols/mod_anagCond.ascx.cs b/PUB/WebUserContols/mod_anagCond.ascx.cs index d87afff..c91a346 100644 --- a/PUB/WebUserContols/mod_anagCond.ascx.cs +++ b/PUB/WebUserContols/mod_anagCond.ascx.cs @@ -1,4 +1,5 @@ using Data; +using SteamWare; using System; using System.Web.UI; @@ -110,6 +111,13 @@ namespace PUB.WebUserContols eh_selected(this, new EventArgs()); } } + protected string eaKey + { + get + { + return string.Format("enableAdd_{0}", titolo); + } + } /// /// Flag per permettere aggiunta nuovi record /// @@ -117,13 +125,11 @@ namespace PUB.WebUserContols { get { - bool answ = false; - bool.TryParse(hfEnableAdd.Value, out answ); - return answ; + return memLayer.ML.BoolSessionObj(eaKey); } set { - hfEnableAdd.Value = value.ToString(); + memLayer.ML.setSessionVal(eaKey, value); } } /// @@ -134,12 +140,23 @@ namespace PUB.WebUserContols protected void lbtAdd_Click(object sender, EventArgs e) { // creazione NUOVO condominio e messa in selezione dello stesso... - //string newAzienda = string.Format("NuovaAzienda_{0:yyyyMMddHHmmss}", DateTime.Now); + string newCondominio = string.Format("NuovoCondominio_{0:yyyyMMddHHmmss}", DateTime.Now); //decimal quotaStd = (decimal)0.1; //DtProxy.man.taAF.insertQuery(newAzienda, "", "", "", "", "", "", "", "", "", "", true, true, quotaStd, "-"); - //// salvo ricerca e ricarico - //searchVal = "NuovaAzienda"; - //Response.Redirect(devicesAuthProxy.pagCorrente); + // salvo ricerca e ricarico + searchVal = "NuovoCondominio"; + Response.Redirect(devicesAuthProxy.pagCorrente); + } + public string searchVal + { + get + { + return memLayer.ML.StringSessionObj("siteSearchVal"); + } + set + { + memLayer.ML.setSessionVal("siteSearchVal", value); + } } } } \ No newline at end of file diff --git a/PUB/WebUserContols/mod_anagCond.ascx.designer.cs b/PUB/WebUserContols/mod_anagCond.ascx.designer.cs index be2587e..7d1e5a7 100644 --- a/PUB/WebUserContols/mod_anagCond.ascx.designer.cs +++ b/PUB/WebUserContols/mod_anagCond.ascx.designer.cs @@ -57,15 +57,6 @@ namespace PUB.WebUserContols { /// protected global::System.Web.UI.WebControls.HiddenField hfIdxCond; - /// - /// Controllo hfEnableAdd. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfEnableAdd; - /// /// Controllo grView. ///