in sessione flag aggiunta condomini... + altri avanzamenti
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div runat="server" id="divMain" class="col-12">
|
||||
<uc1:mod_anagCond runat="server" ID="mod_anagCond" />
|
||||
<uc1:mod_anagCond runat="server" ID="mod_anagCond" enableAdd="false" />
|
||||
</div>
|
||||
<div runat="server" id="divSide" class="col-3" visible="false">
|
||||
<uc1:mod_F2C runat="server" ID="mod_F2C" />
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div runat="server" id="divMain" class="col-12">
|
||||
<uc1:mod_anagCond runat="server" ID="mod_anagCond" />
|
||||
<uc1:mod_anagCond runat="server" ID="mod_anagCond" enableAdd="false" />
|
||||
</div>
|
||||
<div runat="server" id="divSide" class="col-3" visible="false">
|
||||
<uc1:mod_F2C runat="server" ID="mod_F2C" />
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
<div class="col-12">
|
||||
<uc1:mod_ER_selCondominio runat="server" ID="mod_ER_selCondominio" />
|
||||
<asp:HiddenField runat="server" ID="hfIdxCond" />
|
||||
<asp:HiddenField runat="server" ID="hfEnableAdd" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Flag per permettere aggiunta nuovi record
|
||||
/// </summary>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,15 +57,6 @@ namespace PUB.WebUserContols {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfIdxCond;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfEnableAdd.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfEnableAdd;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user