215 lines
5.4 KiB
C#
215 lines
5.4 KiB
C#
using MapoDb;
|
|
using NLog;
|
|
using SteamWare;
|
|
|
|
namespace MoonProTablet
|
|
{
|
|
public class BasePage : UserPage
|
|
{
|
|
#region Public Fields
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione Controlli periodici
|
|
/// </summary>
|
|
public bool enableControlli = memLayer.ML.cdvb("enableControlli");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione Disegno articolo
|
|
/// </summary>
|
|
public bool enableDisegno = memLayer.ML.cdvb("enableDisegno");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione grafici JScript
|
|
/// </summary>
|
|
public bool enableGraphJS = memLayer.ML.cdvb("enableGraphJS");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione stampa con MAG
|
|
/// </summary>
|
|
public bool enableMagPrint = memLayer.ML.cdvb("enableMagPrint");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione Pezzi LAsciati in macchina
|
|
/// </summary>
|
|
public bool enablePzProdLasciati = memLayer.ML.cdvb("enablePzProdLasciati");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione Richieste - Promesse - ODL
|
|
/// </summary>
|
|
public bool enableRPO = memLayer.ML.cdvb("enableRPO");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione scarti
|
|
/// </summary>
|
|
public bool enableScarti = memLayer.ML.cdvb("enableScarti");
|
|
|
|
/// <summary>
|
|
/// Abilitazione scheda Tecnica
|
|
/// </summary>
|
|
public bool enableSchedaTecnica = memLayer.ML.cdvb("enableSchedaTecnica");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione SplitODL
|
|
/// </summary>
|
|
public bool enableSplitODL = memLayer.ML.cdvb("enableSplitODL");
|
|
|
|
/// <summary>
|
|
/// Abilitazione gestione Set PZ Pallet su tablet
|
|
/// </summary>
|
|
public bool enableTabSetPzPallet = memLayer.ML.cdvb("enableTabSetPzPallet");
|
|
|
|
#endregion Public Fields
|
|
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// idx macchina selezionata
|
|
/// </summary>
|
|
public string idxMacchina
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.StringSessionObj("IdxMacchina");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("IdxMacchina", value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// idxODL corrente
|
|
/// </summary>
|
|
public int idxODL
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.IntSessionObj("idxODL");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("idxODL", value);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Num giorni configurati x selezione ODL in scadenza
|
|
/// </summary>
|
|
public int numDaySelOdl
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.CRI("numDaySelOdl");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sotto sistema (macchina) selezionato
|
|
/// </summary>
|
|
public string subMaccSel
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.StringSessionObj("subMaccSel");
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("subMaccSel", value);
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
/// <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);
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
#region Internal Fields
|
|
|
|
/// <summary>
|
|
/// Oggetto datalayer specifico
|
|
/// </summary>
|
|
internal DataLayer DataLayerObj = new DataLayer();
|
|
|
|
#endregion Internal Fields
|
|
|
|
#region Protected Properties
|
|
|
|
/// <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>
|
|
/// Verifica se la macchina MAIN sia MASTER
|
|
/// </summary>
|
|
protected bool isMaster
|
|
{
|
|
get
|
|
{
|
|
return DataLayerObj.isMaster(idxMacchina);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Verifica se la macchina MAIN sia MULTI (da DatiMacchina / redis...)
|
|
/// </summary>
|
|
protected bool isMulti
|
|
{
|
|
get
|
|
{
|
|
return DataLayerObj.isMulti(idxMacchina);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Verifica se la macchina MAIN sia SLAVE
|
|
/// </summary>
|
|
protected bool isSlave
|
|
{
|
|
get
|
|
{
|
|
return DataLayerObj.isSlave(idxMacchina);
|
|
}
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Private Fields
|
|
|
|
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |