diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index 11954904..33e5b83b 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW-RT/bin/GMW_data.dll b/GMW-RT/bin/GMW_data.dll index 9297f111..690a526a 100644 Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ diff --git a/GMW-RT/bin/SteamWare.dll b/GMW-RT/bin/SteamWare.dll index 7aac72b5..0847690a 100644 Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ diff --git a/GMW-UT/bin/GMW-UT.dll b/GMW-UT/bin/GMW-UT.dll index 42840d1b..091f28a7 100644 Binary files a/GMW-UT/bin/GMW-UT.dll and b/GMW-UT/bin/GMW-UT.dll differ diff --git a/GMW-UT/bin/GMW_data.dll b/GMW-UT/bin/GMW_data.dll index 9297f111..690a526a 100644 Binary files a/GMW-UT/bin/GMW_data.dll and b/GMW-UT/bin/GMW_data.dll differ diff --git a/GMW-UT/bin/SteamWare.dll b/GMW-UT/bin/SteamWare.dll index 7aac72b5..0847690a 100644 Binary files a/GMW-UT/bin/SteamWare.dll and b/GMW-UT/bin/SteamWare.dll differ diff --git a/GMW/SQL/Vers_3.3_SP.sql b/GMW/SQL/Vers_3.3_SP.sql index fc7dd821..950e2bce 100644 --- a/GMW/SQL/Vers_3.3_SP.sql +++ b/GMW/SQL/Vers_3.3_SP.sql @@ -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' diff --git a/GMW/Web.config b/GMW/Web.config index dbe1d88f..95b7c29e 100644 --- a/GMW/Web.config +++ b/GMW/Web.config @@ -130,7 +130,7 @@ - + diff --git a/GMW/WebUserControls/mod_post_B48.ascx.cs b/GMW/WebUserControls/mod_post_B48.ascx.cs index b02779d1..9c291c5d 100644 --- a/GMW/WebUserControls/mod_post_B48.ascx.cs +++ b/GMW/WebUserControls/mod_post_B48.ascx.cs @@ -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); + } } } /// @@ -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); } } diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 6c254a5f..1f7033d5 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index 9297f111..690a526a 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index 7aac72b5..0847690a 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ