diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index aa75f823..8166f441 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW-UT/bin/GMW-UT.dll b/GMW-UT/bin/GMW-UT.dll index bdbb1241..7159b0cd 100644 Binary files a/GMW-UT/bin/GMW-UT.dll and b/GMW-UT/bin/GMW-UT.dll differ diff --git a/GMW/SbloccoUdcTrattati.aspx b/GMW/SbloccoUdcTrattati.aspx index cca0982e..d28c331f 100644 --- a/GMW/SbloccoUdcTrattati.aspx +++ b/GMW/SbloccoUdcTrattati.aspx @@ -11,14 +11,14 @@
-
+
Linee origine UDC da sbloccare: - - - + + <%----%> +
diff --git a/GMW/SbloccoUdcTrattati.aspx.cs b/GMW/SbloccoUdcTrattati.aspx.cs index 2082e79b..43f98bd0 100644 --- a/GMW/SbloccoUdcTrattati.aspx.cs +++ b/GMW/SbloccoUdcTrattati.aspx.cs @@ -22,9 +22,9 @@ namespace GMW mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.CRI("IdxPosizioneTrattati"); // pulisco dir temp dai file dei cartellini stampati reportPrinter.obj.pulisciDir(); - // imposto posizione e blocco da web.config + // imposto posizione UDC ingresso ed UDC Veto da web.config (veto = NON devono essere lì eventuali UDC collegati in relazione) mod_sbloccoUdc.idxPosizioneIn = memLayer.ML.CRI("IdxPosizioneTrattati"); - //mod_sbloccoUdc.codBloccoIn = memLayer.ML.CRS("CodBloccoTrattati"); + mod_sbloccoUdc.idxPosizioneChildOk = memLayer.ML.CRI("IdxPosizioneFinTemp"); refreshCodBloccoChild(); } // update vari... @@ -126,6 +126,7 @@ namespace GMW protected void dlSelCodBlocco_SelectedIndexChanged(object sender, EventArgs e) { refreshCodBloccoChild(); + mod_sbloccoUdc.doResetData(); } private void refreshCodBloccoChild() diff --git a/GMW/WebUserControls/mod_sbloccoUdc.ascx b/GMW/WebUserControls/mod_sbloccoUdc.ascx index e8e8e712..c3bae93c 100644 --- a/GMW/WebUserControls/mod_sbloccoUdc.ascx +++ b/GMW/WebUserControls/mod_sbloccoUdc.ascx @@ -7,10 +7,10 @@ <% } %>
-
+
 
-
+
@@ -54,17 +54,25 @@ - + + + + + + + + +
-
+
 
diff --git a/GMW/WebUserControls/mod_sbloccoUdc.ascx.cs b/GMW/WebUserControls/mod_sbloccoUdc.ascx.cs index 1fc69c2e..58459888 100644 --- a/GMW/WebUserControls/mod_sbloccoUdc.ascx.cs +++ b/GMW/WebUserControls/mod_sbloccoUdc.ascx.cs @@ -14,19 +14,74 @@ namespace GMW.WebUserControls /// /// flusso associato (hard coded) a UDC /// - public string flusso = "ND"; + public string flusso + { + get + { + return hfFlusso.Value; + } + set + { + hfFlusso.Value = value; + } + } /// /// stato associato (hard coded) a UDC /// - public string statoUDC = "ND"; + public string statoUDC + { + get + { + return hfStatoUdc.Value; + } + set + { + hfStatoUdc.Value = value; + } + } /// /// tipo di evento associato alla modifica dell'UDC /// - public string eventoUDC = "ND"; + public string eventoUDC + { + + get + { + return hfEvento.Value; + } + set + { + hfEvento.Value = value; + } + } /// - /// Posizione di riferimento + /// Posizione di riferimento UDC in ingresso /// - public int idxPosizioneIn = 0; + public int idxPosizioneIn + { + get + { + return Convert.ToInt32(hfIdxPosizione.Value); + } + set + { + hfIdxPosizione.Value = value.ToString(); + } + } + /// + /// Posizione PERMESSA per (Eventuali) UDC in relazione a quello di cui si chiede sblocco + /// + public int idxPosizioneChildOk + { + get + { + return Convert.ToInt32(hfIdxPosizioneChildOk.Value); + } + set + { + hfIdxPosizioneChildOk.Value = value.ToString(); + } + } /// /// Cod Blocco di riferimento /// @@ -267,12 +322,32 @@ namespace GMW.WebUserControls if (codBloccoCurr == codBloccoIn) { // controllo abbia 1 sola associazione fusi/sterrato COME CHILD - if (DataProxy.obj.taRelazUDC.stp_getChild(barcodeIn).Rows.Count > 1) + DS_Applicazione.RelazUDCDataTable tabRel = DataProxy.obj.taRelazUDC.stp_getChild(barcodeIn); + if (tabRel.Rows.Count > 1) { divSblocca.Visible = false; Postazione.messaggiText += " - Attenzione, UDC in ingresso associato a più di un UDC in uscita!"; Postazione.CssClass = "stileComandoKo"; } + else if (tabRel.Rows.Count == 1) + { + // controllo che l'UDC EVENTUALMENTE in relazione NON sia in idxPosizVeto + string udcChild = tabRel[0].UDC_child; + DS_magazzino.ElencoCartelliniRow rigaCart = MagClass.magazzino.taCartellini.getByUdc(udcChild)[0]; + if (rigaCart.IdxPosizione != idxPosizioneChildOk) + { + divSblocca.Visible = false; + Postazione.messaggiText += string.Format(" - Attenzione, UDC in ingresso associato ad un UDC già stampato! ({0} si trova in posizione {1})", rigaCart.UDC, rigaCart.IdxPosizione); + Postazione.CssClass = "stileComandoKo"; + } + else + { + // tutto ok! + currUDC = barcodeIn; + Postazione.CssClass = "stileComandoOk"; + divSblocca.Visible = true; + } + } else { currUDC = barcodeIn; diff --git a/GMW/WebUserControls/mod_sbloccoUdc.ascx.designer.cs b/GMW/WebUserControls/mod_sbloccoUdc.ascx.designer.cs index 70de0691..288765ca 100644 --- a/GMW/WebUserControls/mod_sbloccoUdc.ascx.designer.cs +++ b/GMW/WebUserControls/mod_sbloccoUdc.ascx.designer.cs @@ -119,5 +119,50 @@ namespace GMW.WebUserControls { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HiddenField hfCodBlocco; + + /// + /// hfIdxPosizione control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxPosizione; + + /// + /// hfIdxPosizioneChildOk control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxPosizioneChildOk; + + /// + /// hfFlusso control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfFlusso; + + /// + /// hfStatoUdc control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfStatoUdc; + + /// + /// hfEvento control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfEvento; } } diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index e71f4214..c501d5e7 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll index b4bad4b4..a85354a7 100644 Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ diff --git a/VersGen/GMW.cs b/VersGen/GMW.cs index 6b84b735..403d2197 100644 --- a/VersGen/GMW.cs +++ b/VersGen/GMW.cs @@ -5,7 +5,7 @@ using System.Reflection; -[assembly: AssemblyVersion("3.5.905.2446")] -[assembly: AssemblyFileVersion("3.5.905.2446")] +[assembly: AssemblyVersion("3.5.906.2447")] +[assembly: AssemblyFileVersion("3.5.906.2447")] [assembly: AssemblyCopyright("Steamware © 2007-2016")] [assembly: AssemblyCompany("Steamware")] diff --git a/VersGen/GMW.tt b/VersGen/GMW.tt index f751d144..ae3d349a 100644 --- a/VersGen/GMW.tt +++ b/VersGen/GMW.tt @@ -6,8 +6,8 @@ using System.Reflection; -[assembly: AssemblyVersion("3.5.905.<#= this.RevisionNumber #>")] -[assembly: AssemblyFileVersion("3.5.905.<#= this.RevisionNumber #>")] +[assembly: AssemblyVersion("3.5.906.<#= this.RevisionNumber #>")] +[assembly: AssemblyFileVersion("3.5.906.<#= this.RevisionNumber #>")] [assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")] [assembly: AssemblyCompany("Steamware")] <#+