completato test fine prod/riattrezzaggio tavole!

This commit is contained in:
Samuele E. Locatelli
2017-10-05 17:22:43 +02:00
parent 3e74060993
commit 5fa6871b85
+50 -6
View File
@@ -7,6 +7,37 @@ namespace MoonProTablet.WebUserControls
{
public partial class mod_ODL : System.Web.UI.UserControl
{
/// <summary>
/// stringa UID univoca
/// </summary>
public string uid
{
get
{
return this.UniqueID.Replace("$", "_").Replace("-", "_");
}
}
/// <summary>
/// idx macchina selezionata
/// </summary>
public string idxMacchina
{
get
{
string answ = "";
try
{
answ = memLayer.ML.StringSessionObj(string.Format("idxMacchina-{0}", uid));
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacchina-{0}", uid), value);
}
}
/// <summary>
/// classe MapoDB x uso locale
/// </summary>
@@ -14,11 +45,24 @@ namespace MoonProTablet.WebUserControls
/// <summary>
/// Determina se sia abilitato il controllo x editing
/// </summary>
public bool isEnabled { get; set; }
/// <summary>
/// idx macchina selezionata
/// </summary>
public string idxMacchina { get; set; }
public bool isEnabled
{
get
{
bool answ = false;
try
{
answ = memLayer.ML.BoolSessionObj(string.Format("isEnabled-{0}", uid));
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal(string.Format("isEnabled-{0}", uid), value);
}
}
/// <summary>
/// codice odl selezionato
/// </summary>
@@ -83,7 +127,7 @@ namespace MoonProTablet.WebUserControls
btnShowSplitODL.Enabled = isEnabled;
btnSplitODL.Enabled = isEnabled;
chkCloseOdl.Enabled = isEnabled;
// condizioni booleane
bool inAttr = false;
bool currHasOdl = false;