diff --git a/C-TRACK/WebUserControls/mod_postazioni.ascx b/C-TRACK/WebUserControls/mod_postazioni.ascx index 8c2734d..296f923 100644 --- a/C-TRACK/WebUserControls/mod_postazioni.ascx +++ b/C-TRACK/WebUserControls/mod_postazioni.ascx @@ -32,7 +32,7 @@ - + diff --git a/C-TRACK/WebUserControls/mod_postazioni.ascx.cs b/C-TRACK/WebUserControls/mod_postazioni.ascx.cs index 3f302e6..40330f5 100644 --- a/C-TRACK/WebUserControls/mod_postazioni.ascx.cs +++ b/C-TRACK/WebUserControls/mod_postazioni.ascx.cs @@ -103,6 +103,18 @@ namespace C_TRACK.WebUserControls { memLayer.ML.setSessionVal("nextObjCommand", "selPost"); } + /// + /// Verifica se sia possibile sbloccare la postazione (togliere Opr corrente: + /// - è un user "power" + /// - è LUI STESSO l'utente da levare + /// + public bool canUnlock(string thisCodOpr) + { + bool hasLock = thisCodOpr != ""; + bool isPower = devicesAuthProxy.stObj.userHasRight("CT_userStart"); + bool isHimself = (CodOpr == thisCodOpr); + return hasLock && (isPower || isHimself); + } } } \ No newline at end of file diff --git a/C-TRACK/jumper.aspx.cs b/C-TRACK/jumper.aspx.cs index fe514d1..d0c856f 100644 --- a/C-TRACK/jumper.aspx.cs +++ b/C-TRACK/jumper.aspx.cs @@ -1,17 +1,19 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; +using SteamWare; +using System; namespace C_TRACK { - public partial class jumper : System.Web.UI.Page + public partial class jumper : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) { - protected void Page_Load(object sender, EventArgs e) - { - } + // aggiorno vocabolario + DataWrap.DW.resetVocabolario(); + // reset dati in cache x DbConfig... + memLayer.ML.resetAppConf(); + // svuoto session e cache per rileggere i dati da Db + Session.RemoveAll(); } + } } \ No newline at end of file