Modifiche PESANTI al logger
Gestione NUOVA x pagine "full" con controllo user corrente Modifica stampa / creazione UDC richiesto dati validi x particolare/soggetto git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@474 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<DataType>String</DataType>
|
||||
<DefaultValue>
|
||||
<Values>
|
||||
<Value>USPLI12000006</Value>
|
||||
<Value>USPLI20000006</Value>
|
||||
</Values>
|
||||
</DefaultValue>
|
||||
<Prompt>UDC</Prompt>
|
||||
@@ -650,6 +650,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>11</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -679,6 +680,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>10</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value>="DISEGNO : " + First(Fields!disegnogrezzo.Value).ToString</Value>
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -707,6 +709,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>9</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -795,6 +798,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>18</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -824,6 +828,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>17</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -853,6 +858,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>16</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -882,6 +888,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>15</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -908,6 +915,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>14</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1049,6 +1057,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>21</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1064,7 +1073,6 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<Textbox Name="textbox32">
|
||||
<Style>
|
||||
<FontSize>12pt</FontSize>
|
||||
<FontWeight>700</FontWeight>
|
||||
<VerticalAlign>Bottom</VerticalAlign>
|
||||
<PaddingLeft>2pt</PaddingLeft>
|
||||
<PaddingRight>2pt</PaddingRight>
|
||||
@@ -1102,6 +1110,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>30</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1126,6 +1135,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>29</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1221,6 +1231,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>26</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1343,6 +1354,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>33</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1428,6 +1440,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>41</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1456,6 +1469,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>40</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1484,6 +1498,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>39</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1512,6 +1527,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>38</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
@@ -1537,6 +1553,7 @@ zzQB/KD+29/wbk/8ABcvU/wBojV/EXiPwJqfxv1XVbW0vdW+Idl4mt3S9uZIUMkOb+eKdvKfMYLIq4jB
|
||||
<PaddingBottom>2pt</PaddingBottom>
|
||||
</Style>
|
||||
<ZIndex>37</ZIndex>
|
||||
<CanGrow>true</CanGrow>
|
||||
<Value />
|
||||
</Textbox>
|
||||
</ReportItems>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -60,7 +60,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="San Possidonio" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione: {0}", exc), tipoLog.EXCEPTION);
|
||||
httpLog(string.Format("Eccezione: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// salvo in session
|
||||
memLayer.ML.setSessionVal("Particolare_sel", particolare, false);
|
||||
@@ -160,7 +160,42 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
|
||||
private void doTraduci()
|
||||
{
|
||||
|
||||
@@ -215,7 +215,7 @@ namespace GMW.WebUserControls
|
||||
// controllo che sia valido x fare l'operazione
|
||||
if (IdxCellaTo > 0)
|
||||
{
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaTo, true);
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaTo, true, Request.UserHostName);
|
||||
}
|
||||
azzeraPostUpdate();
|
||||
if (eh_nuovoValore != null)
|
||||
@@ -246,7 +246,7 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
if (qta >= 0)
|
||||
{
|
||||
MagClass.magazzino.rettificaQtaUDC(UDC, qta);
|
||||
MagClass.magazzino.rettificaQtaUDC(UDC, qta, Request.UserHostName);
|
||||
}
|
||||
azzeraPostUpdate();
|
||||
}
|
||||
|
||||
@@ -379,22 +379,77 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// genero cartellino liquidi
|
||||
// effettuo controlli che cod_soggetto e cod particolare siano disponibili...
|
||||
string codSogg = "";
|
||||
string particolare = "";
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("AN", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Anim", memLayer.ML.confReadInt("IdxPosizioneAnime"), "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", DateTime.Now.Year); // !!! "AN" e "Anim" HARD CODED x indicare flusso ANIME
|
||||
codSogg = MagClass.magazzino.CodSoggCurrUser;
|
||||
particolare = currParticolare;
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore creazione UDC: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
if (codSogg != "" && particolare != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartAnime);
|
||||
// genero cartellino liquidi
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("AN", "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", codSogg, qta, 0, 0, DateTime.Now, 0, "Anim", memLayer.ML.confReadInt("IdxPosizioneAnime"), "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", DateTime.Now.Year, Request.UserHostName); // !!! "AN" e "Anim" HARD CODED x indicare flusso ANIME
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
httpLog(string.Format("Errore creazione UDC: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
{
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
httpLog(string.Format("Errore persi utente/particolare, ricarico!"), tipoLog.ERROR);
|
||||
Response.Redirect("~/login.aspx");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
|
||||
@@ -441,11 +441,11 @@ namespace GMW.WebUserControls
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("AN", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "AnimExt", memLayer.ML.confReadInt("IdxPosizioneAnimeExt"),"IdxPosizioneAnimeExt", "UDC_ANIMA", noteTrim, "", DateTime.Now.Year); // !!! "AN" e "AnimExt" HARD CODED x indicare flusso ANIME
|
||||
newUdcChild = MagClass.magazzino.creaUdc("AN", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "AnimExt", memLayer.ML.confReadInt("IdxPosizioneAnimeExt"), "IdxPosizioneAnimeExt", "UDC_ANIMA", noteTrim, "", DateTime.Now.Year, Request.UserHostName); // !!! "AN" e "AnimExt" HARD CODED x indicare flusso ANIME
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore creazione UDC: {0}", exc), tipoLog.EXCEPTION);
|
||||
httpLog(string.Format("Errore creazione UDC: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
@@ -465,16 +465,52 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
if (idxCellaTo != 0)
|
||||
{
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), newUdcChild, idxCellaTo, false);
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), newUdcChild, idxCellaTo, false, Request.UserHostName);
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartAnime);
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartAnime, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
// resetto
|
||||
doResetData();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua reset dati
|
||||
/// </summary>
|
||||
private void doResetData()
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Particolare non trovato per codLista {0}", CodLista), tipoLog.ERROR);
|
||||
httpLog(string.Format("Particolare non trovato per codLista {0}", CodLista), tipoLog.ERROR);
|
||||
}
|
||||
if (Odette.mgr.checkCodBolla(RaggMag, GrpBolla, NumBolla, DatBolla, particolare))
|
||||
{
|
||||
@@ -85,6 +85,42 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
StateMachine.SM.deliberaUdc(UDC, mod_filtroDelibera.valore, CodEvento);
|
||||
StateMachine.SM.deliberaUdc(UDC, mod_filtroDelibera.valore, CodEvento, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
grView.DataBind();
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgCompletaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="completaListaPrelievo" ToolTip='<%# traduciCodSogg(Eval("CodSoggetto")) %>'
|
||||
CommandName="Update" CommandArgument="completaListaPrelievo" ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("InCaricoA")) %>'
|
||||
Visible='<%# completaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
Enabled="true" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeCompleta" runat="server" ConfirmText='<%# traduci("confermaCompletaLista")%>'
|
||||
@@ -191,8 +191,8 @@
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgScaricaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="scaricaListaPrelievo" ToolTip='<%# traduci("ScaricaListaPrelievo") %>'
|
||||
Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>'
|
||||
CommandName="Update" CommandArgument="scaricaListaPrelievo" Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>'
|
||||
ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("ScaricaListaPrelievoCompletataDa")) %>'
|
||||
ImageUrl="~/images/apply_s.png" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeScarica" runat="server" ConfirmText='<%# traduci("confermaScaricaLista")%>'
|
||||
TargetControlID="imgScaricaListaPrelievo" />
|
||||
|
||||
@@ -678,7 +678,7 @@ namespace GMW.WebUserControls
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "completaListaPrelievo":
|
||||
GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto, Request.UserHostName);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
@@ -692,7 +692,7 @@ namespace GMW.WebUserControls
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "scaricaListaPrelievo":
|
||||
GMW_data.MagClass.magazzino.scaricaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
GMW_data.MagClass.magazzino.scaricaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto, Request.UserHostName);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
@@ -706,7 +706,7 @@ namespace GMW.WebUserControls
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "resetListaPrelievo":
|
||||
GMW_data.MagClass.magazzino.resetListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
GMW_data.MagClass.magazzino.resetListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto, Request.UserHostName);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
@@ -936,19 +936,21 @@ namespace GMW.WebUserControls
|
||||
/// traduce il cod soggetto in cognome-nome operatore
|
||||
/// </summary>
|
||||
/// <param name="CodSogg"></param>
|
||||
/// <param name="stringaPre">In carico a: / Completato da: / ... </param>
|
||||
/// <returns></returns>
|
||||
public string traduciCodSogg(object CodSogg)
|
||||
public string traduciCodSogg(object CodSogg, object stringaPre)
|
||||
{
|
||||
string answ = "-";
|
||||
try
|
||||
{
|
||||
DS_Applicazione.AnagOperatoriRow oper = DataProxy.obj.taAnagOperatore.getByCodSoggetto(CodSogg.ToString())[0];
|
||||
answ = string.Format("In carico a: {0} {1} ({2})", oper.Cognome, oper.Nome, oper.CodDipendente); // Ermanno: traduzione testo!
|
||||
answ = string.Format("{3} {0} {1} ({2})", oper.Cognome, oper.Nome, oper.CodDipendente, stringaPre); // Ermanno: traduzione testo!
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce l'url formattato del il report della stampa come da web.config
|
||||
/// </summary>
|
||||
@@ -1022,7 +1024,7 @@ namespace GMW.WebUserControls
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
{
|
||||
CodLista = ((Label)riga.FindControl("lblCodLista")).Text;
|
||||
GMW_data.MagClass.magazzino.scaricaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), CodLista, MagClass.magazzino.CodSoggCurrUser);
|
||||
GMW_data.MagClass.magazzino.scaricaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), CodLista, MagClass.magazzino.CodSoggCurrUser, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
if (modo == ctrlMode.standard)
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace GMW.WebUserControls
|
||||
// controllo che sia valido x fare l'operazione
|
||||
if (IdxCellaTo > 0)
|
||||
{
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaTo, true);
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaTo, true, Request.UserHostName);
|
||||
}
|
||||
azzeraPostUpdate();
|
||||
if (eh_nuovoValore != null)
|
||||
@@ -140,7 +140,7 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
if (qta > 0)
|
||||
{
|
||||
MagClass.magazzino.rettificaQtaUDC(UDC, qta);
|
||||
MagClass.magazzino.rettificaQtaUDC(UDC, qta, Request.UserHostName);
|
||||
}
|
||||
azzeraPostUpdate();
|
||||
if (eh_nuovoValore != null)
|
||||
|
||||
@@ -389,7 +389,7 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
if (udc2Create)
|
||||
{
|
||||
fatto = MagClass.magazzino.creaUdcDaRappQualita(numRappQualUdc, note, true, postazione_printer);
|
||||
fatto = MagClass.magazzino.creaUdcDaRappQualita(numRappQualUdc, note, true, postazione_printer, Request.UserHostName);
|
||||
// aggiorno note
|
||||
MagClass.magazzino.updateNoteRDQ(numRappQualUdc, note);
|
||||
// resetto!
|
||||
|
||||
@@ -300,13 +300,13 @@ namespace GMW.WebUserControls
|
||||
// registro consumo in AS400
|
||||
utils.obj.taSTP.stp_accodaConsumoUdcMP(UDC, DateTime.Now, turno, rbl.SelectedValue, codTerz);
|
||||
// registro nuova posizione + X --> - X (scambio da positivo a negativo)
|
||||
MagClass.magazzino.scaricaUdcMpWip(UDC);
|
||||
MagClass.magazzino.scaricaUdcMpWip(UDC, Request.UserHostName);
|
||||
lblWarning.Text = "";
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: {1}{2}", UDC, Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
httpLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: {1}{2}", UDC, Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -315,7 +315,7 @@ namespace GMW.WebUserControls
|
||||
lblWarning.Text = traduci("erroreUdcConsumato");
|
||||
lblWarning.Visible = true;
|
||||
// log dell'errore
|
||||
logger.lg.scriviLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: risulta già consumato!", UDC), tipoLog.INFO);
|
||||
httpLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: risulta già consumato!", UDC), tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -324,7 +324,7 @@ namespace GMW.WebUserControls
|
||||
lblWarning.Text = traduci("erroreUdcSenzaBenestare");
|
||||
lblWarning.Visible = true;
|
||||
// log dell'errore
|
||||
logger.lg.scriviLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: non c'è benestare qualità!", UDC), tipoLog.INFO);
|
||||
httpLog(string.Format("Errore tentando di consumare UDC di MP cod {0}: non c'è benestare qualità!", UDC), tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -69,7 +69,8 @@ public partial class mod_login : ApplicationUserControl
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
{
|
||||
SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO);
|
||||
string postazione_IP = Request.UserHostName;
|
||||
httpLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente dall'IP {2}", _utente.CognomeNome, _utente.userNameAD, postazione_IP), SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
@@ -78,7 +79,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
|
||||
httpLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -95,7 +96,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
|
||||
httpLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -106,7 +107,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
else
|
||||
{
|
||||
lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth");
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
|
||||
httpLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -140,7 +141,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
if (fatto)
|
||||
{
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
httpLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
@@ -152,7 +153,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
lblMessage.Text = String.Format("{0}<br>key not allowed for operation!!! operation logged!!!", user_std.UtSn.Traduci("AccessFail"));
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
httpLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -163,7 +164,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.confReadString("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
httpLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -178,7 +179,7 @@ public partial class mod_login : ApplicationUserControl
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
httpLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,13 +8,15 @@ using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_menuBottomFullpage : System.Web.UI.UserControl
|
||||
public partial class mod_menuBottomFullpage : ApplicationUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
// sistemo le stringhe...
|
||||
lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", ConfigurationManager.AppSettings.Get("copyRight"));
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione in verifica pezzi disponibili per il particolare {0}: eccezione {1}", txtParticolare.Text.Trim(), e), tipoLog.EXCEPTION);
|
||||
httpLog(string.Format("Eccezione in verifica pezzi disponibili per il particolare {0}: eccezione {1}", txtParticolare.Text.Trim(), e), tipoLog.EXCEPTION);
|
||||
}
|
||||
// controllo se cod particoalre è valido...
|
||||
if (particolareOk(txtParticolare.Text.Trim()))
|
||||
@@ -157,6 +157,42 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// crea nuova lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
|
||||
@@ -456,7 +456,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non ho trovato tipo lista per la lista di prelievo seguente: {0}", codLista), tipoLog.ERROR);
|
||||
httpLog(string.Format("Non ho trovato tipo lista per la lista di prelievo seguente: {0}", codLista), tipoLog.ERROR);
|
||||
}
|
||||
// quale comando?
|
||||
string _comando = "";
|
||||
|
||||
@@ -307,7 +307,7 @@ namespace GMW.WebUserControls
|
||||
if (currUdcFrom != "")
|
||||
{
|
||||
// associo i 2 cartellini
|
||||
MagClass.magazzino.scaricaUdcMpWip(currUdcFrom);
|
||||
MagClass.magazzino.scaricaUdcMpWip(currUdcFrom, Request.UserHostName);
|
||||
// indico UDC associati!
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("effettuatoConsumoUDC"), currUdcFrom);
|
||||
currUdcFrom = "";
|
||||
|
||||
@@ -449,11 +449,11 @@ namespace GMW.WebUserControls
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidi"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Liquidi", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), "IdxPosizioneLiquidi", memLayer.ML.confReadString("nuovoUdcLiquidiF10"), noteTrim, "", DateTime.Now.Year); // !!! "LI" HARD CODED x indicare flusso liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidi"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Liquidi", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), "IdxPosizioneLiquidi", memLayer.ML.confReadString("nuovoUdcLiquidiF10"), noteTrim, "", DateTime.Now.Year, Request.UserHostName); // !!! "LI" HARD CODED x indicare flusso liquidi
|
||||
}
|
||||
catch(Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore creazione UDC:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
httpLog(string.Format("Errore creazione UDC:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// se ho cart liquidi genero (se non ci sono) cart trattamenti
|
||||
if (newUdcChild != "")
|
||||
@@ -468,24 +468,60 @@ namespace GMW.WebUserControls
|
||||
if (!UdcExists)
|
||||
{
|
||||
// creo UDC
|
||||
MagClass.magazzino.creaUdc("TR", "", "", "", "", "", "", "", 0, "", "U", MagClass.magazzino.CodSoggCurrUser, 0, 0, 0, DateTime.Now, 0, "Trattamenti", memLayer.ML.confReadInt("IdxPosizioneTrattamenti"), "IdxPosizioneTrattamenti", memLayer.ML.confReadString("NEW_TRAT"), "LI", newUdcParent, anno);
|
||||
MagClass.magazzino.creaUdc("TR", "", "", "", "", "", "", "", 0, "", "U", MagClass.magazzino.CodSoggCurrUser, 0, 0, 0, DateTime.Now, 0, "Trattamenti", memLayer.ML.confReadInt("IdxPosizioneTrattamenti"), "IdxPosizioneTrattamenti", memLayer.ML.confReadString("NEW_TRAT"), "LI", newUdcParent, anno, Request.UserHostName);
|
||||
}
|
||||
// associo tratt termici e liquidi
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, newUdcParent);
|
||||
if (!UdcExists)
|
||||
{
|
||||
// consumo UDC tratt termici
|
||||
MagClass.magazzino.scaricaUdcMpWip(newUdcParent);
|
||||
MagClass.magazzino.scaricaUdcMpWip(newUdcParent, Request.UserHostName);
|
||||
}
|
||||
// reset valori
|
||||
newUdcParent = "";
|
||||
UdcExists = false;
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartLiquidiF10);
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartLiquidiF10, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto le note
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
|
||||
@@ -499,7 +499,7 @@ namespace GMW.WebUserControls
|
||||
try
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidiDaSpedire"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Liquidi", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), "IdxPosizioneLiquidi", memLayer.ML.confReadString("nuovoUdcLiquidiF18"), noteTrim, "", DateTime.Now.Year); // !!! "LI" HARD CODED x indicare flusso liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc("LI", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoLiquidiDaSpedire"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Liquidi", memLayer.ML.confReadInt("IdxPosizioneLiquidi"), "IdxPosizioneLiquidi", memLayer.ML.confReadString("nuovoUdcLiquidiF18"), noteTrim, "", DateTime.Now.Year, Request.UserHostName); // !!! "LI" HARD CODED x indicare flusso liquidi
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -513,7 +513,7 @@ namespace GMW.WebUserControls
|
||||
MagClass.magazzino.associaUdcParent(newUdcChild, kvp.Key);
|
||||
}
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartLiquidiF18);
|
||||
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartLiquidiF18, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a trovare dati per il gitterbox {0}", currGitterBox), tipoLog.ERROR);
|
||||
httpLog(string.Format("Non sono riuscito a trovare dati per il gitterbox {0}", currGitterBox), tipoLog.ERROR);
|
||||
}
|
||||
// controllo se il codice sia "Pieno", ovvero max pezzi
|
||||
if (numPezzi < maxPezzi)
|
||||
@@ -121,6 +121,42 @@ namespace GMW.WebUserControls
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string _testoPre)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + _testoPre);
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper per log con salvataggio dell'IP del chiamante
|
||||
/// </summary>
|
||||
/// <param name="_testoPre"></param>
|
||||
/// <returns></returns>
|
||||
public bool httpLog(string testoLog, tipoLog tipo)
|
||||
{
|
||||
bool answ = false;
|
||||
string postazione_IP = "";
|
||||
try
|
||||
{
|
||||
postazione_IP = string.Format(" | {0} | ", Request.UserHostName);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(postazione_IP + testoLog, tipo);
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// controlla se ci sia un barcode
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -840,6 +840,20 @@
|
||||
<param name="filtroEv">filtro associato all'evento</param>
|
||||
<returns>restituisce il numero di elementi contenuti, -1 significa nessuna differenza...</returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationUserControl.httpLog(System.String)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationUserControl.httpLog(System.String,SteamWare.tipoLog)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:SteamWare.ApplicationUserControl.TipoAnagControllo">
|
||||
<summary>
|
||||
imposto il tipo di anagrafica del controlloS
|
||||
@@ -3381,5 +3395,19 @@
|
||||
<param name="titoloWIP">titolo da mostrare nella pagina WIP</param>
|
||||
<param name="descrizioneWIP">descrizione da mostrare nella pagina WIP</param>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationSimplePage.httpLog(System.String)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationSimplePage.httpLog(System.String,SteamWare.tipoLog)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 237 KiB |
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="San Possidonio" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="San Possidonio" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.0" />
|
||||
<add key="minRev" value="456" />
|
||||
<add key="minRev" value="457" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2012" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,14 +0,0 @@
|
||||
namespace GMW_data {
|
||||
|
||||
|
||||
public partial class DS_Applicazione {
|
||||
}
|
||||
}
|
||||
|
||||
namespace GMW_data.DS_ApplicazioneTableAdapters
|
||||
{
|
||||
|
||||
|
||||
public partial class Impianti2ArticoliTableAdapter {
|
||||
}
|
||||
}
|
||||
+93
-65
@@ -187,8 +187,9 @@ namespace GMW_data
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="IdxCellaTo">Cella di destinazione</param>
|
||||
/// <param name="resetRLP">indica se sia richiesto resettare le Righe Liste Prelievo con lo spostsamento</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public bool spostaUDC(string CodCS, string UDC, int IdxCellaTo, bool resetRLP)
|
||||
public bool spostaUDC(string CodCS, string UDC, int IdxCellaTo, bool resetRLP, string clientIp)
|
||||
{
|
||||
bool answ = false;
|
||||
// procedo SOLO se la cella di dest è VUOTA...
|
||||
@@ -205,7 +206,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore durante spostamento cella: {0}", e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore durante spostamento cella: {0}", e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
// solo se ha fatto spostamento posizione corrente verifico se fare spostamento in posizione LOGICA magazzino
|
||||
if (answ)
|
||||
@@ -225,13 +226,13 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore durante indicazione posizione UDC: {0}", e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore durante indicazione posizione UDC: {0}", e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore, cella {0} di destinazione piena!!!", IdxCellaTo), tipoLog.ERROR);
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore, cella {0} di destinazione piena!!!", IdxCellaTo, clientIp), tipoLog.ERROR);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -241,18 +242,20 @@ namespace GMW_data
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="IdxPosizUdc">Codice posizione UDC finale</param>
|
||||
/// <param name="CodEvento">Codice evento associato allo scaricamento</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public bool scaricaUDC(string UDC, int IdxPosizUdc, string CodEvento)
|
||||
public bool scaricaUDC(string UDC, int IdxPosizUdc, string CodEvento, string clientIp)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
taPosUdcCorr.stp_scaricaUdc(UDC, IdxPosizUdc, CodEvento, CodSoggCurrUser);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | Scaricato UDC {1} | posizione {2} | CodEvento {3} | soggetto {4}", clientIp, UDC, IdxPosizUdc, CodEvento, CodSoggCurrUser), tipoLog.INFO);
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in scaricaUDC:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {2} | Errore in scaricaUDC:{0}{1}", Environment.NewLine, exc, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -262,8 +265,9 @@ namespace GMW_data
|
||||
/// <param name="CodSoggetto">Codice soggetto/operatore</param>
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="qta">Nuova quantita associata</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public bool rettificaQtaUDC(string UDC, decimal qta)
|
||||
public bool rettificaQtaUDC(string UDC, decimal qta, string clientIp)
|
||||
{
|
||||
string CodSoggetto = CodSoggCurrUser;
|
||||
bool answ = false;
|
||||
@@ -274,6 +278,7 @@ namespace GMW_data
|
||||
if (fatti > 0)
|
||||
{
|
||||
answ = true;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | Rettifica qta UDC {1} | qta {2} | soggetto {3}", clientIp, UDC, qta, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -299,9 +304,10 @@ namespace GMW_data
|
||||
/// <summary>
|
||||
/// effettua lo scaricamento (da db e da AS400) degli UDC di MP/WIP, registrando l'evento "UDC_CONS"
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns></returns>
|
||||
public bool scaricaUdcMpWip(string UDC)
|
||||
public bool scaricaUdcMpWip(string UDC, string clientIp)
|
||||
{
|
||||
// inizializzo
|
||||
bool answ = false;
|
||||
@@ -319,7 +325,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in fase di recupero cella per l'UDC {0}: {1}{2}", UDC, Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Errore in fase di recupero cella per l'UDC {0}: {1}{2}", UDC, Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
// ora calcolo gli altri dati dalla rica ElencoCartellini dell'UDC
|
||||
try
|
||||
@@ -330,7 +336,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in fase di recupero dati posizioni from/to per l'UDC {0}: {1}{2}", UDC, Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Errore in fase di recupero dati posizioni from/to per l'UDC {0}: {1}{2}", UDC, Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
// ora provo ad eseguire!
|
||||
try
|
||||
@@ -338,12 +344,12 @@ namespace GMW_data
|
||||
if (idxPosizUdcDest != 0) // solo se c'è una posizione da cui poter fare lo scaricamento...
|
||||
{
|
||||
// sposto UDC
|
||||
answ = scaricaUDC(UDC, idxPosizUdcDest, CodEvento);
|
||||
answ = scaricaUDC(UDC, idxPosizUdcDest, CodEvento, clientIp);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in fase di scaricamneto dell'UDC {0}: {1}{2}", UDC, Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Errore in fase di scaricamneto dell'UDC {0}: {1}{2}", UDC, Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
return answ;
|
||||
@@ -351,10 +357,11 @@ namespace GMW_data
|
||||
/// <summary>
|
||||
/// riattiva un UDC (se permesso) da una posizione consumata ad una valida
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="CodSoggetto">Cod soggetto utente</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns></returns>
|
||||
public bool riattivaUdc(string UDC, string CodSoggetto)
|
||||
public bool riattivaUdc(string UDC, string CodSoggetto, string clientIp)
|
||||
{
|
||||
// init
|
||||
bool answ = false;
|
||||
@@ -363,13 +370,14 @@ namespace GMW_data
|
||||
// salvo dati cartellino PRE
|
||||
DS_Applicazione.ElencoCartelliniRow rigaUdcPre = DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0];
|
||||
GMW_data.DataProxy.obj.taCartellini.stp_riattivaUdc(UDC, CodSoggetto);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | riattivato UDC {1} | soggetto {2}", clientIp, UDC, CodSoggetto), tipoLog.INFO);
|
||||
// salvo dati cartellino POST
|
||||
DS_Applicazione.ElencoCartelliniRow rigaUdcPost = DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0];
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione: {0}{1}", Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {2} | Eccezione: {0}{1}", Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
return answ;
|
||||
@@ -377,21 +385,23 @@ namespace GMW_data
|
||||
/// <summary>
|
||||
/// sblocca un UDC (se permesso)
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="CodSoggetto">Cod soggetto utente</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns></returns>
|
||||
public bool sbloccaUdc(string UDC, string CodSoggetto)
|
||||
public bool sbloccaUdc(string UDC, string CodSoggetto, string clientIp)
|
||||
{
|
||||
// init
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
GMW_data.DataProxy.obj.taCartellini.stp_sbloccaUdc(UDC, CodSoggetto);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | sbloccato UDC {1} | soggetto {2}", clientIp, UDC, CodSoggetto), tipoLog.INFO);
|
||||
answ = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione: {0}{1}", Environment.NewLine, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {2} | Eccezione: {0}{1}", Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -481,8 +491,9 @@ namespace GMW_data
|
||||
/// <param name="note">note (opzionali)</param>
|
||||
/// <param name="UDC">cod UDC pre-calcolato, se "" verrà calcolato dalla query</param>
|
||||
/// <param name="anno">anno in cui intestare i cartellini, trimma a 2 cifre DX</param>
|
||||
/// <param name="clientIp">Ip del client</param>
|
||||
/// <returns>UDC del nuovo cartellino per FINITI</returns>
|
||||
public string creaUdc(string CodBilancia, string CodCliente, string Particolare, string CodImpianto, string CodStampo, string Esponente, string Figura, string UDC_Parent, double Tara, string CodImballo, string CodTipoDichiarazione, string CodSoggetto, int Quantita, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato, int CodMag, string defIdxPosiz, string codEvento, string note, string UDC, int anno)
|
||||
public string creaUdc(string CodBilancia, string CodCliente, string Particolare, string CodImpianto, string CodStampo, string Esponente, string Figura, string UDC_Parent, double Tara, string CodImballo, string CodTipoDichiarazione, string CodSoggetto, int Quantita, float PesoTot, float PesoCad, DateTime DataRif, int TurnoRif, string CodStato, int CodMag, string defIdxPosiz, string codEvento, string note, string UDC, int anno, string clientIp)
|
||||
{
|
||||
// trim fix
|
||||
string CodBilanciaTrim = CodBilancia.Trim();
|
||||
@@ -527,42 +538,50 @@ namespace GMW_data
|
||||
{
|
||||
IdxPosizione = memLayer.ML.confReadInt(defIdxPosizTrim);
|
||||
}
|
||||
// loggo tutto!
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
// controllo di avere codice soggetto e particolare validi (!="")
|
||||
if (ParticolareTrim != "" && CodSoggettoTrim != "")
|
||||
{
|
||||
try
|
||||
// creo nuovo cartellino!
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc;
|
||||
// controllo se UDC già definito o meno...
|
||||
if (UDC != "")
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("NUOVO cartellino da postazione: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13} | {14} | {15} | {16} | {17} | {18} | {19} | {20} | {21} | {22}", CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, noteTrim), tipoLog.INFO);
|
||||
// insert nuovo UDC con codice impostato
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFull_fixUDC(UDC, CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, doDeleteUdcTara, noteTrim);
|
||||
answ = UDC;
|
||||
}
|
||||
else
|
||||
{
|
||||
// insert con calcolo UDC
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, doDeleteUdcTara, noteTrim);
|
||||
}
|
||||
// leggo la riga
|
||||
answ = tabUdc[0].UDC;
|
||||
// loggo tutto!
|
||||
if (memLayer.ML.confReadInt("_logLevel") > 5)
|
||||
{
|
||||
try
|
||||
{
|
||||
logger.lg.scriviLog(string.Format(" | {24} | NUOVO cartellino da postazione: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13} | {14} | {15} | {16} | {17} | {18} | {19} | {20} | {21} | {22} | {23}", answ, CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, noteTrim, clientIp), tipoLog.INFO);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// solo se UDC parent != vuoto...
|
||||
if (UDC_ParentTrim != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
// salvo associazione parent-child tra UDC!
|
||||
DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, answ);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// creo nuovo cartellino!
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc;
|
||||
// controllo se UDC già definito o meno...
|
||||
if (UDC != "")
|
||||
{
|
||||
// insert nuovo UDC con codice impostato
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFull_fixUDC(UDC, CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, doDeleteUdcTara, noteTrim);
|
||||
answ = UDC;
|
||||
}
|
||||
else
|
||||
{
|
||||
// insert con calcolo UDC
|
||||
tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, doDeleteUdcTara, noteTrim);
|
||||
}
|
||||
// leggo la riga
|
||||
answ = tabUdc[0].UDC;
|
||||
// solo se UDC parent != vuoto...
|
||||
if (UDC_ParentTrim != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
// salvo associazione parent-child tra UDC!
|
||||
DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, answ);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
logger.lg.scriviLog(string.Format(" | {24} | CodSoggetto / particolare non validi! tentativo di creazione cartellino come {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13} | {14} | {15} | {16} | {17} | {18} | {19} | {20} | {21} | {22}", CodCS, CodBilanciaTrim, annoTrim, CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, codEventoTrim, Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, noteTrim, clientIp), tipoLog.ERROR);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -589,14 +608,16 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
/// <param name="UDC">Codice UDC</param>
|
||||
/// <param name="printer">stampante specifica (da postazioen o std da webconfig, a cura dell'utente</param>
|
||||
/// <param name="clientIp">IP del chiamante</param>
|
||||
/// <returns></returns>
|
||||
public bool stampaUdc(string UDC, string printer, tipoCartellino tipoCart)
|
||||
public bool stampaUdc(string UDC, string printer, tipoCartellino tipoCart, string clientIp)
|
||||
{
|
||||
bool answ = false;
|
||||
// controllo se esista UDC
|
||||
if (checkUDC(UDC))
|
||||
{
|
||||
answ = reportPrinter.obj.stampaCartellino(tipoCart, UDC, printer);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | stampato UDC {1} | stampante {2} | tipo {2}", clientIp, UDC, printer, tipoCart), tipoLog.INFO);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -616,6 +637,7 @@ namespace GMW_data
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region procedure di verifica e traduzione dati da anagrafiche
|
||||
@@ -1177,8 +1199,9 @@ namespace GMW_data
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <param name="CodSoggetto">cod operatore carrellista</param>
|
||||
/// <param name="clientIp">IP del client</param>
|
||||
/// <returns></returns>
|
||||
public esitoOperazione completaListaPrelievo(string CodCS, string CodLista, string CodSoggetto)
|
||||
public esitoOperazione completaListaPrelievo(string CodCS, string CodLista, string CodSoggetto, string clientIp)
|
||||
{
|
||||
// da chiamare quando clicco e inizio lista prelievo .... vedi sopra
|
||||
esitoOperazione answ = esitoOperazione.errore;
|
||||
@@ -1219,7 +1242,7 @@ namespace GMW_data
|
||||
// ricavo il codice UDC...
|
||||
string _UDC = row.UDC;
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false);
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false, clientIp);
|
||||
// dopo aver spostato UDC sistemo eventuali Righe di Prelievo x lo stesso UDC pending...
|
||||
taRigheListePrelievo.stp_RLP_sbloccaNonPrelevate(CodLista, _UDC);
|
||||
}
|
||||
@@ -1262,8 +1285,9 @@ namespace GMW_data
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <param name="CodSoggetto">cod operatore carrellista</param>
|
||||
/// <param name="clientIp">IP del client</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista, string CodSoggetto)
|
||||
public esitoOperazione scaricaListaPrelievo(string CodCS, string CodLista, string CodSoggetto, string clientIp)
|
||||
{
|
||||
/*
|
||||
* Questa funzione serve ALLA FINE delle operazioni di prelievo, x chiudere la lista di prelievo
|
||||
@@ -1337,11 +1361,11 @@ namespace GMW_data
|
||||
idxCellaTo = 0;
|
||||
}
|
||||
// sposto UDC, e così facendo genero movimenti batch x AS400
|
||||
fatto = scaricaUDC(UDC, idxPosizUdcDest, CodEvento);
|
||||
fatto = scaricaUDC(UDC, idxPosizUdcDest, CodEvento, clientIp);
|
||||
// sposto nella PRIMA cella di destinazione associata l'UDC
|
||||
if (idxCellaTo > 0)
|
||||
{
|
||||
spostaUDC(CodCS, UDC, idxCellaTo, false);
|
||||
spostaUDC(CodCS, UDC, idxCellaTo, false, clientIp);
|
||||
}
|
||||
if (fatto)
|
||||
{
|
||||
@@ -1378,8 +1402,9 @@ namespace GMW_data
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="CodLista">codice della lista di prelievo</param>
|
||||
/// <param name="CodSoggetto">cod operatore carrellista</param>
|
||||
/// <param name="clientIp">IP del client</param>
|
||||
/// <returns></returns>
|
||||
public esitoOperazione resetListaPrelievo(string CodCS, string CodLista, string CodSoggetto)
|
||||
public esitoOperazione resetListaPrelievo(string CodCS, string CodLista, string CodSoggetto, string clientIp)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("CodListaAttiva");
|
||||
memLayer.ML.emptySessionVal("activeTask");
|
||||
@@ -1438,13 +1463,14 @@ namespace GMW_data
|
||||
}
|
||||
}
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false);
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false, clientIp);
|
||||
}
|
||||
// indico le righe come NON prelevate...
|
||||
taRigheListePrelievo.stp_RLP_resetPrelevate(CodLista);
|
||||
// aggiorno stato lista che torna a BOZZA
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.bozza);
|
||||
answ = esitoOperazione.ok;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | resettata lista di prelievo UDC {1} | utente {2} | tipo {2}", clientIp, CodLista, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
// se è già completata o NON iniziata dà errore
|
||||
else
|
||||
@@ -1460,7 +1486,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Errore in reset lista prelievo: {0}", e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore in reset lista prelievo: {0}", e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -1653,8 +1679,9 @@ namespace GMW_data
|
||||
/// </summary>
|
||||
/// <param name="numRapQual">identificativo rapp qualità</param>
|
||||
/// <param name="doPrint">true/false se stampare</param>
|
||||
/// <param name="clientIp">IP del client</param>
|
||||
/// <returns></returns>
|
||||
public bool creaUdcDaRappQualita(int numRapQual, string note, bool doPrint, string printerName)
|
||||
public bool creaUdcDaRappQualita(int numRapQual, string note, bool doPrint, string printerName, string clientIp)
|
||||
{
|
||||
bool answ = false;
|
||||
string codStato = "";
|
||||
@@ -1689,7 +1716,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a creare associazione UDC / rapp qual: UDC creato: {0}, progRappQual: {1}, eccezione: {2}", UDC, rqRow.ProgUDC, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Non sono riuscito a creare associazione UDC / rapp qual: UDC creato: {0}, progRappQual: {1}, eccezione: {2}", UDC, rqRow.ProgUDC, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
try
|
||||
{
|
||||
@@ -1697,12 +1724,12 @@ namespace GMW_data
|
||||
{
|
||||
// se non c'è benestare cambio posizione ad un altra cella, la prima (terra) del cod blocco MP - N.C.
|
||||
int idxPosizTo = taCelle.getByCodMag(memLayer.ML.confReadString("CodCS"), memLayer.ML.confReadString("CodMagMP_NA"))[0].IdxCella;
|
||||
magazzino.spostaUDC(memLayer.ML.confReadString("CodCS"), UDC, idxPosizTo, true);
|
||||
magazzino.spostaUDC(memLayer.ML.confReadString("CodCS"), UDC, idxPosizTo, true, clientIp);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a spostare UDC non conforme: UDC creato: {0}, progRappQual: {1}, eccezione: {2}", UDC, rqRow.ProgUDC, e), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Non sono riuscito a spostare UDC non conforme: UDC creato: {0}, progRappQual: {1}, eccezione: {2}", UDC, rqRow.ProgUDC, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1758,6 +1785,7 @@ namespace GMW_data
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,8 +48,9 @@ namespace GMW_data
|
||||
/// <param name="UDC"></param>
|
||||
/// <param name="CodTipoDelibera"></param>
|
||||
/// <param name="CodEvento"></param>
|
||||
/// <param name="clientIp">IP del client</param>
|
||||
/// <returns></returns>
|
||||
public void deliberaUdc(string UDC, string CodTipoDelibera, string CodEvento)
|
||||
public void deliberaUdc(string UDC, string CodTipoDelibera, string CodEvento, string clientIp)
|
||||
{
|
||||
bool fatto = false;
|
||||
try
|
||||
@@ -65,12 +66,13 @@ namespace GMW_data
|
||||
int IdxPosizione = riga.IdxPosizione;
|
||||
decimal Quantita = -riga.Qta;
|
||||
// da db determino che non faccio scaricamento automatico da altre posizioni terzisti/clienti (solo 84) xché non c'è in TabTranEventi
|
||||
fatto = MagClass.magazzino.scaricaUdcMpWip(UDC);
|
||||
fatto = MagClass.magazzino.scaricaUdcMpWip(UDC, clientIp);
|
||||
}
|
||||
logger.lg.scriviLog(string.Format(" | {0} | deliberato UDC {1} | evento {2} | tipo delibera {2}", clientIp, UDC, CodEvento, CodTipoDelibera), tipoLog.INFO);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito a fare la delibera di tipo {0} per l'UDC {1} da parte dell'user {2}, messaggio d'errore {3}{4}", CodTipoDelibera, UDC, user_std.UtSn.userNameAD, Environment.NewLine, e), SteamWare.tipoLog.ERROR);
|
||||
logger.lg.scriviLog(string.Format(" | {5} | Non sono riuscito a fare la delibera di tipo {0} per l'UDC {1} da parte dell'user {2}, messaggio d'errore {3}{4}", CodTipoDelibera, UDC, user_std.UtSn.userNameAD, Environment.NewLine, e, clientIp), SteamWare.tipoLog.ERROR);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -840,6 +840,20 @@
|
||||
<param name="filtroEv">filtro associato all'evento</param>
|
||||
<returns>restituisce il numero di elementi contenuti, -1 significa nessuna differenza...</returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationUserControl.httpLog(System.String)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationUserControl.httpLog(System.String,SteamWare.tipoLog)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:SteamWare.ApplicationUserControl.TipoAnagControllo">
|
||||
<summary>
|
||||
imposto il tipo di anagrafica del controlloS
|
||||
@@ -3381,5 +3395,19 @@
|
||||
<param name="titoloWIP">titolo da mostrare nella pagina WIP</param>
|
||||
<param name="descrizioneWIP">descrizione da mostrare nella pagina WIP</param>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationSimplePage.httpLog(System.String)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.ApplicationSimplePage.httpLog(System.String,SteamWare.tipoLog)">
|
||||
<summary>
|
||||
wrapper per log con salvataggio dell'IP del chiamante
|
||||
</summary>
|
||||
<param name="_testoPre"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -22,6 +22,9 @@ public class reportPrinter
|
||||
private int m_currentPageIndex;
|
||||
protected int logLevel = 0;
|
||||
protected bool doPdfCopy = false;
|
||||
/// <summary>
|
||||
/// stream del report...
|
||||
/// </summary>
|
||||
private IList<Stream> m_streams;
|
||||
/// <summary>
|
||||
/// ciclo da fornire al renderizzatore dei report, per salvare 1 immagine da ogni pagina del report
|
||||
@@ -50,7 +53,7 @@ public class reportPrinter
|
||||
private Stream CreateStreamPdf(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
|
||||
{
|
||||
// creo Directory se non c'è
|
||||
SteamWare.fileMover fm = new fileMover(string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\", memLayer.ML.confReadString("PdfFolder"), DateTime.Now),"");
|
||||
SteamWare.fileMover fm = new fileMover(string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\", memLayer.ML.confReadString("PdfFolder"), DateTime.Now), "");
|
||||
fm.checkDir();
|
||||
string pdfPathName = string.Format(@"{0}\{1:yyyy}\{1:MM}\{1:dd}\{2}_{1:HHmmss}_{1:ffff}.{3}", memLayer.ML.confReadString("PdfFolder"), DateTime.Now, name, fileNameExtension);
|
||||
//Stream stream = new FileStream(SteamWare.SteamwareStrings.getFilePath(@"~\temp\" + name + "." + fileNameExtension), FileMode.Create);
|
||||
|
||||
@@ -390,14 +390,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{65168814-C218-4F0B-A82E-2A2D36369ABA}"
|
||||
"PackageCode" = "8:{972DA9E6-B883-47C0-B632-5EA4C73925E5}"
|
||||
"ProductCode" = "8:{7D54894E-ED2B-4E75-9209-2F1878B0DDA9}"
|
||||
"PackageCode" = "8:{2064B27A-F798-4E41-A4BC-28C934ED2921}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:2.0.456"
|
||||
"ProductVersion" = "8:2.0.457"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -870,7 +870,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\InstallerTK\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
@@ -898,7 +898,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\InstallerTK\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
|
||||
@@ -375,14 +375,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_test"
|
||||
"ProductCode" = "8:{F768B3F0-314D-408A-9249-DFBA51EB0815}"
|
||||
"PackageCode" = "8:{56DD6E77-56CE-41E4-A6C6-B3AA4552EE9F}"
|
||||
"ProductCode" = "8:{C727BA1D-9086-4402-8D81-26865612AC4F}"
|
||||
"PackageCode" = "8:{679400F8-DFCC-4849-A972-C54599138DB5}"
|
||||
"UpgradeCode" = "8:{6FD64E39-D93B-4ADA-ADF3-303A1BCA49C2}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:2.0.456"
|
||||
"ProductVersion" = "8:2.0.457"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -827,7 +827,7 @@
|
||||
{
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_110D6612090D4EDA92F772F593B23D78"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\InstallerTK\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_D4983B53F0234BFF98835BF3AFECBB8D"
|
||||
@@ -855,7 +855,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_179F2C709A0749C4A5EBA956FADE7EE3"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\InstallerTK\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_D4983B53F0234BFF98835BF3AFECBB8D"
|
||||
|
||||
Reference in New Issue
Block a user