80 lines
3.0 KiB
C#
80 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using SteamWare;
|
|
|
|
namespace WebSCR_data
|
|
{
|
|
public class DtProxy
|
|
{
|
|
#region area protected
|
|
|
|
protected DtProxy()
|
|
{
|
|
// inizializzo i table adapters
|
|
avvioTableAdapters();
|
|
setupConnectionString();
|
|
}
|
|
|
|
/// <summary>
|
|
/// procedura di avvio dei tableAdapter
|
|
/// </summary>
|
|
protected virtual void avvioTableAdapters()
|
|
{
|
|
#if false
|
|
taVAC = new DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter();
|
|
taVCP = new DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter();
|
|
taVLab = new DS_ApplicazioneTableAdapters.VisLabTableAdapter();
|
|
taVRF = new DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter();
|
|
taRepVis = new DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter();
|
|
#endif
|
|
taAC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter();
|
|
taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter();
|
|
taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter();
|
|
taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
|
|
}
|
|
/// <summary>
|
|
/// effettua setup dei connection strings da web.config della singola applicazione
|
|
/// </summary>
|
|
protected virtual void setupConnectionString()
|
|
{
|
|
string connStr = memLayer.ML.confReadString("WebSCRConnectionString");
|
|
string connStrFiles = memLayer.ML.confReadString("WebSCRFilesConnectionString");
|
|
// connections del db vocabolario
|
|
#if false
|
|
taVAC.Connection.ConnectionString = connStr;
|
|
taVCP.Connection.ConnectionString = connStr;
|
|
taVLab.Connection.ConnectionString = connStr;
|
|
taVRF.Connection.ConnectionString = connStr;
|
|
taRepVis.Connection.ConnectionString = connStr;
|
|
#endif
|
|
taAC.Connection.ConnectionString = connStr;
|
|
taAS.Connection.ConnectionString = connStr;
|
|
taAZ.Connection.ConnectionString = connStr;
|
|
taFile.Connection.ConnectionString = connStrFiles;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region area public
|
|
|
|
#if false
|
|
public DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter taVAC;
|
|
public DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter taVCP;
|
|
public DS_ApplicazioneTableAdapters.VisLabTableAdapter taVLab;
|
|
public DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter taVRF;
|
|
public DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter taRepVis;
|
|
|
|
#endif
|
|
public DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter taAC;
|
|
public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS;
|
|
public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ;
|
|
public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
|
|
|
|
public static DtProxy man = new DtProxy();
|
|
|
|
#endregion
|
|
}
|
|
}
|