236905f034
- inseriti nuovi valori di default in Web.config git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@38 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
161 lines
4.7 KiB
C#
161 lines
4.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using SteamWare;
|
|
|
|
/// <summary>
|
|
/// Summary description for TA_app
|
|
/// </summary>
|
|
public class TA_app
|
|
{
|
|
#region table adapters
|
|
|
|
public DS_applicazioneTableAdapters.LogUpdateDbTableAdapter taLogUpdate;
|
|
public DS_applicazioneTableAdapters.AnagImpiantiTableAdapter taImpianti;
|
|
public DS_applicazioneTableAdapters.v_macchineTableAdapter taMacchine;
|
|
public DS_utilityTableAdapters.v_selImpiantiTableAdapter taSelImpianti;
|
|
public DS_utilityTableAdapters.v_selMacchineTableAdapter taSelMacchine;
|
|
public DS_applicazioneTableAdapters.v_selFamMaccTableAdapter taMacc2Fam;
|
|
public DS_applicazioneTableAdapters.v_intervExpTableAdapter taInterventiMtz;
|
|
public DS_applicazioneTableAdapters.AnagStatiTableAdapter taStati;
|
|
public DS_applicazioneTableAdapters.AnagPrioritaTableAdapter taPrior;
|
|
public DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter taIntOpMtz;
|
|
|
|
#endregion
|
|
|
|
protected TA_app()
|
|
{
|
|
// avvio table adapters
|
|
if (taLogUpdate == null)
|
|
{
|
|
taLogUpdate = new DS_applicazioneTableAdapters.LogUpdateDbTableAdapter();
|
|
}
|
|
if (taImpianti == null)
|
|
{
|
|
taImpianti = new DS_applicazioneTableAdapters.AnagImpiantiTableAdapter();
|
|
}
|
|
if (taMacchine == null)
|
|
{
|
|
taMacchine = new DS_applicazioneTableAdapters.v_macchineTableAdapter();
|
|
}
|
|
if (taSelImpianti == null)
|
|
{
|
|
taSelImpianti = new DS_utilityTableAdapters.v_selImpiantiTableAdapter();
|
|
}
|
|
if (taSelMacchine == null)
|
|
{
|
|
taSelMacchine = new DS_utilityTableAdapters.v_selMacchineTableAdapter();
|
|
}
|
|
if (taMacc2Fam == null)
|
|
{
|
|
taMacc2Fam = new DS_applicazioneTableAdapters.v_selFamMaccTableAdapter();
|
|
}
|
|
if (taInterventiMtz == null)
|
|
{
|
|
taInterventiMtz = new DS_applicazioneTableAdapters.v_intervExpTableAdapter();
|
|
}
|
|
if (taStati == null)
|
|
{
|
|
taStati = new DS_applicazioneTableAdapters.AnagStatiTableAdapter();
|
|
}
|
|
if (taPrior == null)
|
|
{
|
|
taPrior = new DS_applicazioneTableAdapters.AnagPrioritaTableAdapter();
|
|
}
|
|
if (taIntOpMtz == null)
|
|
{
|
|
taIntOpMtz = new DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Singleton
|
|
/// </summary>
|
|
public static TA_app obj = new TA_app();
|
|
/// <summary>
|
|
/// restituisce versione corrente del db applicativo
|
|
/// </summary>
|
|
public int appDB_act
|
|
{
|
|
get
|
|
{
|
|
int answ = -1;
|
|
try
|
|
{
|
|
answ = (int)taLogUpdate.getDbVers();
|
|
}
|
|
catch
|
|
{
|
|
logger.lg.scriviLog("Errore recupero versione DB applicativo GIM!", tipoLog.EXCEPTION);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// restituisce versione corrente del db vocabolario
|
|
/// </summary>
|
|
public int vocDB_act
|
|
{
|
|
get
|
|
{
|
|
int answ = -1;
|
|
try
|
|
{
|
|
answ = (int)DataWrap.DW.taLogVoc.getDbVers();
|
|
}
|
|
catch
|
|
{
|
|
logger.lg.scriviLog("Errore recupero versione DB Vocabolario!", tipoLog.EXCEPTION);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// restituisce versione corrente del db anagrafica
|
|
/// </summary>
|
|
public int anaDB_act
|
|
{
|
|
get
|
|
{
|
|
int answ = -1;
|
|
try
|
|
{
|
|
answ = answ = (int)DataWrap.DW.taLogAna.getDbVers();
|
|
}
|
|
catch
|
|
{
|
|
logger.lg.scriviLog("Errore recupero versione DB Anagrafica!", tipoLog.EXCEPTION);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// restituisce versione richiesta per il db applicativo
|
|
/// </summary>
|
|
public int appDB_req
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.confReadint("dbAppVers");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// restituisce versione richiesta per il db vocabolario
|
|
/// </summary>
|
|
public int vocDB_req
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.confReadint("dbVocabVers");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// restituisce versione richiesta per il db anagrafica
|
|
/// </summary>
|
|
public int anaDB_req
|
|
{
|
|
get
|
|
{
|
|
return memLayer.ML.confReadint("dbAuthVers");
|
|
}
|
|
}
|
|
} |