commit classe con modifiche ermanno
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@173 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -14,7 +14,7 @@ namespace GMW_data
|
||||
#region area table adapters
|
||||
|
||||
// variabile di tipo table adapter
|
||||
#if false
|
||||
#if false
|
||||
public DS_magazzinoTableAdapters.AnagMagTableAdapter taAnagMag;
|
||||
public DS_magazzinoTableAdapters.BlocchiTableAdapter taBlocchi;
|
||||
public DS_magazzinoTableAdapters.CelleTableAdapter taCelle;
|
||||
@@ -31,7 +31,7 @@ namespace GMW_data
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -40,7 +40,7 @@ namespace GMW_data
|
||||
protected void initTA()
|
||||
{
|
||||
// istanzio oggetto
|
||||
#if false
|
||||
#if false
|
||||
taAnagMag = new GMW_data.DS_magazzinoTableAdapters.AnagMagTableAdapter();
|
||||
taBlocchi = new GMW_data.DS_magazzinoTableAdapters.BlocchiTableAdapter();
|
||||
taCelle = new GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter();
|
||||
@@ -57,7 +57,7 @@ namespace GMW_data
|
||||
taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter();
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
@@ -65,7 +65,7 @@ namespace GMW_data
|
||||
protected virtual void setupConnectionStringBase()
|
||||
{
|
||||
// connections del db
|
||||
#if false
|
||||
#if false
|
||||
taAnagMag.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taBlocchi.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
@@ -82,7 +82,7 @@ namespace GMW_data
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -795,7 +795,7 @@ namespace GMW_data
|
||||
public tipoCodiceBarcode riconosciBarcode(string barcodeIN)
|
||||
{
|
||||
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
|
||||
switch (barcodeIN.Substring(0,1))
|
||||
switch (barcodeIN.Substring(0, 1))
|
||||
{
|
||||
case "O":
|
||||
answ = tipoCodiceBarcode.Operatore;
|
||||
@@ -814,6 +814,48 @@ namespace GMW_data
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// ricava dominio da codRoggetto
|
||||
/// </summary>
|
||||
/// <param name="codSoggetto"></param>
|
||||
/// <returns></returns>
|
||||
public string getDominioDaCodSoggetto(string codSoggetto)
|
||||
{
|
||||
// ricavo da session...
|
||||
string dominio = "";
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
dominio = DataProxy.obj.taSogg2Oper.getByCodSoggetto(codSoggetto)[0].DOMINIO;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
//logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD,Environment.NewLine, e), tipoLog.ERROR);
|
||||
}
|
||||
return dominio;
|
||||
}
|
||||
/// <summary>
|
||||
/// ricava username da CodSoggetto
|
||||
/// </summary>
|
||||
/// <param name="codSoggetto"></param>
|
||||
/// <returns></returns>
|
||||
public string getUserDaCodSoggetto(string codSoggetto)
|
||||
{
|
||||
// ricavo da session...
|
||||
string user = "";
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
user = DataProxy.obj.taSogg2Oper.getByCodSoggetto(codSoggetto)[0].USER_NAME;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
//logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}, errore {1}{2}", user_std.UtSn.userNameAD,Environment.NewLine, e), tipoLog.ERROR);
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
@@ -853,7 +895,7 @@ public enum esitoLoginTerm
|
||||
/// <summary>
|
||||
/// tutto ok, come true
|
||||
/// </summary>
|
||||
ok,
|
||||
ok,
|
||||
/// <summary>
|
||||
/// non è andata, errore generico
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user