Comportamento OK x consumo NON sigle read

This commit is contained in:
Samuele E. Locatelli
2018-12-24 14:04:12 +01:00
parent 9a386669f8
commit d4ae20253f
9 changed files with 653 additions and 453 deletions
+11 -8
View File
@@ -1896,15 +1896,18 @@ namespace GMW_data
}
if (CodSoggetto == "")
{
try
if (user_std.UtSn.utente != "")
{
CodSoggetto = DataProxy.obj.taSogg2Oper.getByUserDominio(user_std.UtSn.utente, user_std.UtSn.dominio)[0].CodSoggetto;
// salvo in sessione...
memLayer.ML.setSessionVal("CodSoggetto", CodSoggetto);
}
catch (Exception e)
{
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD, Environment.NewLine, e), tipoLog.ERROR);
try
{
CodSoggetto = DataProxy.obj.taSogg2Oper.getByUserDominio(user_std.UtSn.utente, user_std.UtSn.dominio)[0].CodSoggetto;
// salvo in sessione...
memLayer.ML.setSessionVal("CodSoggetto", CodSoggetto);
}
catch (Exception e)
{
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD, Environment.NewLine, e), tipoLog.ERROR);
}
}
}
return CodSoggetto;
+1 -1
View File
@@ -229,7 +229,7 @@ namespace GMW_data
#endregion
}
}
}
public enum tipoCartellino
{
cartAL,