8bb5c8472c
aggiunti moduli vuoti da completare x costruzione elementi magazzino git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@50 365432ac-a1b5-4ffd-bb28-6d3099d32164
92 lines
3.4 KiB
C#
92 lines
3.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using SteamWare;
|
|
|
|
namespace GMW_data
|
|
{
|
|
/// <summary>
|
|
/// classe gestione operazioni sul magazzino
|
|
/// </summary>
|
|
public class MagClass
|
|
{
|
|
#region area table adapters
|
|
|
|
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
|
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
|
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
|
public DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter taCartellini;
|
|
public DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter taPosUdcCorr;
|
|
public DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter taPosUdcStorico;
|
|
|
|
|
|
/// <summary>
|
|
/// init dei table adapters
|
|
/// </summary>
|
|
protected void initTA()
|
|
{
|
|
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
|
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
|
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
|
taCartellini = new GMW_data.DS_magazzinoTableAdapters.ElencoCartelliniTableAdapter();
|
|
taPosUdcCorr = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcCorrenteTableAdapter();
|
|
taPosUdcStorico = new GMW_data.DS_magazzinoTableAdapters.PosizioneUdcStoricoTableAdapter();
|
|
}
|
|
/// <summary>
|
|
/// effettua setup dei connection strings da web.config delal singola applicazione
|
|
/// </summary>
|
|
protected virtual void setupConnectionStringBase()
|
|
{
|
|
// connections del db
|
|
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
taCartellini.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
taPosUdcCorr.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
taPosUdcStorico.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Inizializzazione
|
|
|
|
protected MagClass()
|
|
{
|
|
initTA();
|
|
setupConnectionStringBase();
|
|
}
|
|
|
|
/// <summary>
|
|
/// oggetto static per fare chiamate sul magazzino
|
|
/// </summary>
|
|
public static MagClass magazzino = new MagClass();
|
|
|
|
#endregion
|
|
|
|
#region Metodi esposti
|
|
#if false
|
|
|
|
/// <summary>
|
|
/// fornisce l'elenco di tutti i magazzini
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DS_magazzino.AnagMagDataTable ElencoMagazzini()
|
|
{
|
|
return taAnagMag.GetData();
|
|
}
|
|
/// <summary>
|
|
/// fornisce l'elenco di tutti i magazzini dal codice CompanySito richiesto
|
|
/// </summary>
|
|
/// <param name="CodCS"></param>
|
|
/// <returns></returns>
|
|
public DS_magazzino.AnagMagDataTable ElencoMagazzini(string CodCS)
|
|
{
|
|
return taAnagMag.getByCodCs(CodCS);
|
|
}
|
|
|
|
#endif
|
|
#endregion
|
|
}
|
|
}
|