Files
C.TRACK/C-TRACK/WebUserControls/mod_checkOpr.ascx.cs
T
2018-12-04 15:20:45 +01:00

28 lines
668 B
C#

using AppData;
using SteamWare;
using System;
namespace C_TRACK.WebUserControls
{
public partial class mod_checkOpr : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
// verifico di avere CodOpr in sessione...
if (mUtils.CodOpr == "")
{
// mostro warning..
divWarning.Visible = true;
// se NON sono in pagina bcode --> rimando a richiesta dichiarazione operatore (con BARCODE)
if (devicesAuthProxy.pagCorrente != "barcode")
{
Response.Redirect("~/barcode");
}
}
else
{
divWarning.Visible = false;
}
}
}
}