v 3.2.827: gestione OPZIONALE dell'OpAuth: riporto su tutte le pagine...
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,6 +25,9 @@
|
||||
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Default values vari-->
|
||||
<add key="numGgToReloadRQ" value="120" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
<add key="updateTablet" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Default values vari-->
|
||||
<add key="numGgToReloadRQ" value="60" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<add key="urlWebServer" value="http://SRV-PRODTK01/GMW/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlRT" value="http://SRV-PRODTK01/GMW-RT/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="_logLevel" value="5" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
<add key="SiteName" value="Tekal" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlWebServer" value="http://SRV-PRODTK01/GMW_Test/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="urlRT" value="http://SRV-PRODTK01/GMW-RT_Test/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--OpAuth e NumKey-->
|
||||
<add key="showNumKey" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<add key="enableOpAuth" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Datamatrix-->
|
||||
<add key="showReloadDataMatrix" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
|
||||
<!--Imballi-->
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
<!--gestione numKey-->
|
||||
<add key="showNumKey" value="false" />
|
||||
<!--setup gestione OpAuth-->
|
||||
<add key="enableOpAuth" value="true" />
|
||||
<add key="prefCodSogg" value="O" />
|
||||
<add key="resetCodSogg" value="000" />
|
||||
<add key="defRemAuth" value="1" />
|
||||
|
||||
@@ -568,8 +568,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
@@ -581,6 +581,20 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// aggiorno note e posizione da temp a definitiva x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, currUDC, currParticolare, "creaUDC", string.Format("Creato nuovo UDC Fusi Sterr Taglio, qta: {0} {1}", qta, ""));
|
||||
// metto attributo FC
|
||||
@@ -588,16 +602,6 @@ namespace GMW.WebUserControls
|
||||
// tolgo UDC da AL corrente...
|
||||
MagClass.magazzino.taAL2UDC.deleteQuery(destAL, currUDC);
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
|
||||
// ora stampo il nuovo cartellino!!!
|
||||
MagClass.magazzino.stampaUdc(currUDC, Postazione.printer, tipoCartellino.cartSterr, Request.UserHostName);
|
||||
// incremento timing...
|
||||
|
||||
@@ -486,8 +486,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string noteTrim = txtNote.Text.Trim();
|
||||
@@ -510,15 +510,20 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnime"), "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime - qta:{0} {1}", qta, noteTrim));
|
||||
}
|
||||
|
||||
@@ -516,8 +516,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
string newUdcChild = "";
|
||||
int qta = memLayer.ML.confReadInt("QtaImballoAnime");
|
||||
@@ -549,15 +549,20 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// creo nuovo UDC anime multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneAnimeExt"), "IdxPosizioneAnimeExt", "UDC_ANIMA", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Anime EX, qta: {0} {1}", qta, noteTrim));
|
||||
}
|
||||
|
||||
@@ -586,8 +586,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
string newUdcChild = "";
|
||||
string noteTrim = string.Format("{0}{1}{2}", traduci("fuoriciclo"), Environment.NewLine, txtNote.Text.Trim());
|
||||
@@ -627,14 +627,17 @@ namespace GMW.WebUserControls
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qtaUDC, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", "UDC_FINITO", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
|
||||
@@ -473,8 +473,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// se linea non selezionata ERRORE!!!
|
||||
if (Postazione.currCodLinea == "W3000" || Postazione.currCodLinea == "")
|
||||
@@ -507,15 +507,20 @@ namespace GMW.WebUserControls
|
||||
noteTrim = string.Format("{0}{1}{2}", Postazione.currNomeLinea, Environment.NewLine, noteTrim);
|
||||
// creo nuovo UDC del trattamento liquidi
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", particolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoFusi"), "U", codSogg, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFusi"), "IdxPosizioneFusi", "UDC_FUSI", noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, codSogg, Postazione.name, Postazione.IP, newUdcChild, particolare, "creaUDC", string.Format("Creato nuovo UDC Fusi - qta:{0} {1}", qta, noteTrim));
|
||||
// per ora attributo linea tolto, messo nelle note...
|
||||
|
||||
@@ -623,8 +623,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
@@ -701,14 +701,17 @@ namespace GMW.WebUserControls
|
||||
// creo nuovo UDC FINITO OUT multiple
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, codImballo, "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneFiniti"), "IdxPosizioneFiniti", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
|
||||
@@ -715,8 +715,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
@@ -731,14 +731,17 @@ namespace GMW.WebUserControls
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
|
||||
@@ -595,8 +595,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
DateTime adesso = DateTime.Now;
|
||||
//int qta = memLayer.ML.confReadInt("QtaImballoSterr");
|
||||
@@ -613,14 +613,17 @@ namespace GMW.WebUserControls
|
||||
// aggiorno note e posizione da temp a definitiv x UDC...
|
||||
MagClass.magazzino.updateNotePosizioneUDC(currUDC, noteTrim, memLayer.ML.confReadInt("IdxPosizioneSterrati"));
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(currUDC, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
|
||||
@@ -541,8 +541,8 @@ namespace GMW.WebUserControls
|
||||
// verifico postazione x procedere...
|
||||
if (Postazione.printer != "n.d.")
|
||||
{
|
||||
// verifico auth utente...
|
||||
if (OpAuth.isAuth)
|
||||
// verifico auth utente OPPURE se NON sia richiesta...
|
||||
if (OpAuth.isAuth || !OpAuth.opAuthReq)
|
||||
{
|
||||
// controllo UDC in ingresso, che siano tutti con uguale particolare e DIVERSO da ""
|
||||
string partUdcIn = "";
|
||||
@@ -600,14 +600,17 @@ namespace GMW.WebUserControls
|
||||
// creo nuovo UDC trattati
|
||||
newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoTratt"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneTrattati"), "IdxPosizioneTrattati", eventoUDC, noteTrim, "", adesso.Year, Request.UserHostName);
|
||||
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
if (OpAuth.isAuth)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
// salvo attributo dell'OpAuth...
|
||||
MagClass.magazzino.taAtt2UDC.Insert(newUdcChild, memLayer.ML.CRS("attrOpAuth"), OpAuth.currAuth.CodSoggetto, DateTime.Now, codSogg);
|
||||
// consumo una auth...
|
||||
OpAuth.currAuth.remAuth--;
|
||||
if (OpAuth.currAuth.remAuth == 0)
|
||||
{
|
||||
OpAuth.stopAuth();
|
||||
needsRedirect = true;
|
||||
}
|
||||
}
|
||||
|
||||
// registro creazione nuovo UDC
|
||||
|
||||
Binary file not shown.
@@ -73,6 +73,7 @@
|
||||
<!--gestione numKey-->
|
||||
<add key="showNumKey" value="false" />
|
||||
<!--setup gestione OpAuth-->
|
||||
<add key="enableOpAuth" value="true" />
|
||||
<add key="prefCodSogg" value="O" />
|
||||
<add key="resetCodSogg" value="000" />
|
||||
<add key="defRemAuth" value="1" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+13
-2
@@ -135,7 +135,18 @@ namespace GMW_data
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// definisce se sia RICHEISTA OpAuth
|
||||
/// </summary>
|
||||
public static bool opAuthReq
|
||||
{
|
||||
get
|
||||
{
|
||||
// verifico SE devo fare controllo OpAuth...
|
||||
return memLayer.ML.CRB("enableOpAuth");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.826.2098")]
|
||||
[assembly: AssemblyFileVersion("3.2.826.2098")]
|
||||
[assembly: AssemblyVersion("3.2.827.2098")]
|
||||
[assembly: AssemblyFileVersion("3.2.827.2098")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-2015")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.826.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.2.826.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("3.2.827.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("3.2.827.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Reference in New Issue
Block a user