29 lines
716 B
C#
29 lines
716 B
C#
using Data;
|
|
using SteamWare;
|
|
using System;
|
|
|
|
namespace PUB.PAM
|
|
{
|
|
public partial class MyDashboard : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
bool userAuth = devicesAuthProxy.stObj.userHasRight("PAM");
|
|
// se ha permesso --> salvo KEY di riferimento...
|
|
if (userAuth)
|
|
{
|
|
int idxAmm = 0;
|
|
try
|
|
{
|
|
idxAmm = DtProxy.man.taAssU2A.getByUser(devicesAuthProxy.stObj.utente)[0].idxAmm;
|
|
}
|
|
catch
|
|
{ }
|
|
memLayer.ML.setSessionVal("idxAmm", idxAmm);
|
|
memLayer.ML.setSessionVal("idxFornitore", "0");
|
|
}
|
|
divDash.Visible = userAuth;
|
|
divAuthError.Visible = !userAuth;
|
|
}
|
|
}
|
|
} |