Aggiunto controllo riassegnazione Dtx in caso di Removed/Addedd
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -43,3 +43,4 @@ exec stp_insNewLemma 'DtxSetNCIcon', 'fa fa-bug'
|
||||
exec stp_insNewLemma 'ERR-DTX-016', '[ERR-DTX-016] Errore Datamatrix non utilizzabile, NC Fusione associata'
|
||||
exec stp_insNewLemma 'DtxAdd', 'Aggiunto DataMatrix'
|
||||
exec stp_insNewLemma 'DtxRem', 'Rimosso DataMatrix'
|
||||
exec stp_insNewLemma 'B48_ReadTwiceToConfirm', 'DataMatrix precedentemente segnalato: Prego confermare assegnazione con nuova lettura'
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@
|
||||
<add key="CodImballoRX" value="" />
|
||||
<add key="QtaImballoRX" value="0" />
|
||||
<add key="CodImballoRXFin" value="" />
|
||||
<add key="QtaImballoRXFin" value="18" />
|
||||
<add key="QtaImballoRXFin" value="3" />
|
||||
<!--Setup urls stampa reports-->
|
||||
<add key="urlReporting" value="http://{0}/ReportServer?/{1}/{2}&rs:Command=Render&rc:Parameters=true&rc:Toolbar=true&CodListaPrel={3}{4}" />
|
||||
<add key="reportingServerAddress" value="SRV65:8282" />
|
||||
|
||||
@@ -582,16 +582,16 @@ namespace GMW.WebUserControls
|
||||
// chiamo procedure aggiunta/rimozione secondo caso di selezione ADD/REM Dtx
|
||||
if (!chkDtxMode.Checked)
|
||||
{
|
||||
procDtx_add(ref NewUDC);
|
||||
Postazione.messaggiText = string.Format("{0}: {1}", traduci("DtxAdd"), barcodeIn);
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
procDtx_add(ref NewUDC);
|
||||
}
|
||||
// modalità "rimozione" datamatrix
|
||||
else
|
||||
{
|
||||
procDtx_rem(ref NewUDC);
|
||||
Postazione.messaggiText = string.Format("{0}: {1}", traduci("DtxRem"), barcodeIn);
|
||||
Postazione.CssClass = "stileComandoWarn";
|
||||
procDtx_rem(ref NewUDC);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -689,9 +689,41 @@ namespace GMW.WebUserControls
|
||||
if (DataMatrix.mgr.taDtx2UDC.getByDtx(barcodeIn).Rows.Count == 0)
|
||||
{
|
||||
// verifico NON CI SIANO attributi DC pendenti (nel qual caso memorizzo primo comando e poi cheido conferma... !!!FARE!!!
|
||||
|
||||
// chiamo la stored che associa Dtx a UDC
|
||||
DataMatrix.mgr.taDtx2UDC.RxSetDtx2Udc(barcodeIn, MagClass.magazzino.CodSoggCurrUser, memLayer.ML.confReadInt("IdxPosizioneRxFinTemp"), Postazione.currIdxCella);
|
||||
bool hasDQ = false;
|
||||
if (DataMatrix.mgr.taAtt2Dtx.getByDtx(barcodeIn).Rows.Count > 0)
|
||||
{
|
||||
// cerco se abbia "DQ"...
|
||||
if (DataMatrix.mgr.taAtt2Dtx.getByDtx(barcodeIn).Select("CodAttr = 'DQ'").Length > 0)
|
||||
{
|
||||
hasDQ = true;
|
||||
}
|
||||
}
|
||||
if (hasDQ)
|
||||
{
|
||||
// verifico se c'è già in sessione la lettura di questo DataMatrix...
|
||||
if (memLayer.ML.StringSessionObj("prevDmtx") == barcodeIn)
|
||||
{
|
||||
// è seconda lettura: allora procedo
|
||||
hasDQ = false;
|
||||
// svuoto da sessione
|
||||
memLayer.ML.emptySessionVal("prevDmtx");
|
||||
}
|
||||
}
|
||||
// se non ho pendenze...
|
||||
if (!hasDQ)
|
||||
{
|
||||
// chiamo la stored che associa Dtx a UDC
|
||||
DataMatrix.mgr.taDtx2UDC.RxSetDtx2Udc(barcodeIn, MagClass.magazzino.CodSoggCurrUser, memLayer.ML.confReadInt("IdxPosizioneRxFinTemp"), Postazione.currIdxCella);
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro messaggio che chiede seconda lettura conferma e salvo in sessione...
|
||||
Postazione.messaggiText = barcodeIn;
|
||||
Postazione.warningText = traduci("B48_ReadTwiceToConfirm");
|
||||
Postazione.CssClass = "stileComandoWarn";
|
||||
// salvo in sessione dmtx x conferma
|
||||
memLayer.ML.setSessionVal("prevDmtx", barcodeIn);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -706,7 +738,7 @@ namespace GMW.WebUserControls
|
||||
// rimuovo Dtx
|
||||
DataMatrix.mgr.taDtx2UDC.deleteQuery(DataMatrix.mgr.taDtx2UDC.getByDtxAl(destAL, barcodeIn)[0].UDC, barcodeIn, MagClass.magazzino.CodSoggCurrUser, memLayer.ML.confReadInt("IdxPosizioneRxFinTemp"), Postazione.currIdxCella);
|
||||
// assegno Attributo x indicare che è stato rimosso...
|
||||
DataMatrix.mgr.taAtt2Dtx.insertAndProc(barcodeIn, true, "DC", "Rim. UDC B48", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
DataMatrix.mgr.taAtt2Dtx.insertAndProc(barcodeIn, true, "DQ", "Rim. UDC B48", DateTime.Now, MagClass.magazzino.CodSoggCurrUser);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user