119 lines
2.9 KiB
C#
119 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using MapoDb;
|
|
using SteamWare;
|
|
|
|
namespace MoonProTablet
|
|
{
|
|
public class BasePage : UserPage
|
|
{
|
|
/// <summary>
|
|
/// Oggetto datalayer specifico
|
|
/// </summary>
|
|
internal DataLayer DataLayerObj = new DataLayer();
|
|
|
|
|
|
/// <summary>
|
|
/// idx macchina selezionata
|
|
/// </summary>
|
|
public string idxMacchina
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.StringSessionObj("IdxMacchina");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("IdxMacchina", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Sotto sistema (macchina) selezionato
|
|
/// </summary>
|
|
public string subMaccSel
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.StringSessionObj("subMaccSel");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("subMaccSel", value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
|
|
/// </summary>
|
|
protected bool isMulti
|
|
{
|
|
get
|
|
{
|
|
bool answ = false;
|
|
answ = DataLayerObj.isMulti(idxMacchina);
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// idxODL corrente
|
|
/// </summary>
|
|
public int idxODL
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.IntSessionObj("idxODL");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("idxODL", value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Verifica (su tab config) se sia abilitata la gestione flusso RPO (Richieste - Promesse - ODL)
|
|
/// </summary>
|
|
protected bool enableRPO
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.cdvb("enableRPO");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Prox pagina da aprire
|
|
/// </summary>
|
|
protected string _nextPage
|
|
{
|
|
get
|
|
{
|
|
string pagina = memLayer.ML.StringSessionObj("nextPage");
|
|
if (string.IsNullOrEmpty(pagina))
|
|
{
|
|
pagina = "menu.aspx";
|
|
}
|
|
return pagina;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// effettua traduzione del lemma
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(string lemma)
|
|
{
|
|
return user_std.UtSn.Traduci(lemma);
|
|
}
|
|
|
|
/// <summary>
|
|
/// effettua traduzione in inglese del lemma
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduciEn(string lemma)
|
|
{
|
|
return user_std.UtSn.TraduciEn(lemma);
|
|
}
|
|
}
|
|
} |