58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
using SteamWare;
|
|
|
|
namespace AppData
|
|
{
|
|
public class mUtils
|
|
{
|
|
/// <summary>
|
|
/// Codice Operatore
|
|
/// </summary>
|
|
public static string CodOpr
|
|
{
|
|
get
|
|
{
|
|
string answ = "";
|
|
answ = memLayer.ML.StringSessionObj("CodOpr");
|
|
// se vuoto cerco anche nei cookies...
|
|
if (answ == "")
|
|
{
|
|
answ = memLayer.ML.getCookieVal("CTrack_CodOpr");
|
|
// se non vuoto salvo...
|
|
memLayer.ML.setSessionVal("CodOpr", answ);
|
|
}
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("CodOpr", value);
|
|
memLayer.ML.setCookieVal("CTrack_CodOpr", value);
|
|
memLayer.ML.emptySessionVal("NomeOpr");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Codice postazione di lavoro
|
|
/// </summary>
|
|
public static string CodPost
|
|
{
|
|
get
|
|
{
|
|
string answ = "";
|
|
answ = memLayer.ML.StringSessionObj("CodPost");
|
|
if (answ == "")
|
|
{
|
|
answ = memLayer.ML.getCookieVal("CTrack_CodPost");
|
|
// se non vuoto salvo...
|
|
memLayer.ML.setSessionVal("CodPost", answ);
|
|
}
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("CodPost", value);
|
|
memLayer.ML.setCookieVal("CTrack_CodPost", value);
|
|
memLayer.ML.emptySessionVal("DescPost");
|
|
}
|
|
}
|
|
}
|
|
}
|