diff --git a/GMW/WebUserControls/mod_selLineaNtDt.ascx.cs b/GMW/WebUserControls/mod_selLineaNtDt.ascx.cs
index d389ed61..be429c4d 100644
--- a/GMW/WebUserControls/mod_selLineaNtDt.ascx.cs
+++ b/GMW/WebUserControls/mod_selLineaNtDt.ascx.cs
@@ -165,8 +165,7 @@ namespace GMW.WebUserControls
else
{
// resetto uso postazione...
- MagClass.magazzino.taAL.resetPostBlocco(Postazione.name, preCodLinea); // resetto solo x blocco!
- //MagClass.magazzino.taAL.resetPost(Postazione.name);
+ resetPostazione();
}
}
///
@@ -268,6 +267,27 @@ namespace GMW.WebUserControls
}
}
///
+ /// determina se deve resettare SOLO BLOCCO o tutto (default=blocco)
+ ///
+ public bool resetPostByBlocco
+ {
+ get
+ {
+ bool answ = true;
+ try
+ {
+ answ = Convert.ToBoolean(txtResetBlocco.Text);
+ }
+ catch
+ { }
+ return answ;
+ }
+ set
+ {
+ txtResetBlocco.Text = value.ToString();
+ }
+ }
+ ///
/// valore per filtraggio selezione linee
///
public string formatoDmtx
@@ -422,8 +442,7 @@ namespace GMW.WebUserControls
Postazione.currCodCella = "";
Postazione.currNomeLinea = "";
Postazione.currIdxCella = 0;
- MagClass.magazzino.taAL.resetPostBlocco(Postazione.name, preCodLinea); // resetto solo x blocco!
- //MagClass.magazzino.taAL.resetPost(Postazione.name);
+ resetPostazione();
}
}
}
@@ -432,8 +451,7 @@ namespace GMW.WebUserControls
Postazione.currCodCella = "";
Postazione.currNomeLinea = "";
Postazione.currIdxCella = 0;
- MagClass.magazzino.taAL.resetPostBlocco(Postazione.name, preCodLinea); // resetto solo x blocco!
- //MagClass.magazzino.taAL.resetPost(Postazione.name);
+ resetPostazione();
// mostro errore
Postazione.messaggiText = string.Format("Errore: linea {0} già impegnata, sbloccare postazione o attendere timeout!", codLinea);
Postazione.CssClass = "stileComandoKo";
@@ -445,6 +463,21 @@ namespace GMW.WebUserControls
eh_lineSelected(this, new EventArgs());
}
}
+ ///
+ /// Reset postazione occupata
+ ///
+ private void resetPostazione()
+ {
+ if (resetPostByBlocco)
+ {
+ MagClass.magazzino.taAL.resetPostBlocco(Postazione.name, preCodLinea); // resetto solo x blocco!
+ }
+ else
+ {
+ MagClass.magazzino.taAL.resetPost(Postazione.name);
+ }
+ }
+
///
/// effettua refresh (su db) del blocco postazione
///
@@ -452,8 +485,7 @@ namespace GMW.WebUserControls
public void refreshBloccoPost(string codLinea)
{
// resetto usi linee precedenti..
- MagClass.magazzino.taAL.resetPostBlocco(Postazione.name, preCodLinea); // resetto solo x blocco!
- //MagClass.magazzino.taAL.resetPost(Postazione.name);
+ resetPostazione();
if (codLinea != "")
{
// se la linea non è "base" = "Sel linea", finisce x "0"
diff --git a/GMW/WebUserControls/mod_selLineaNtDt.ascx.designer.cs b/GMW/WebUserControls/mod_selLineaNtDt.ascx.designer.cs
index 992aa7fb..f5eafed7 100644
--- a/GMW/WebUserControls/mod_selLineaNtDt.ascx.designer.cs
+++ b/GMW/WebUserControls/mod_selLineaNtDt.ascx.designer.cs
@@ -93,6 +93,15 @@ namespace GMW.WebUserControls {
///
protected global::System.Web.UI.WebControls.TextBox txtTipoInOut;
+ ///
+ /// txtResetBlocco control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtResetBlocco;
+
///
/// divDtNt control.
///
diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll
index fcb4286a..f505a4d1 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 30eeafce..44a788b8 100644
Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ
diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll
index a0d1db01..0cdec64b 100644
Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ
diff --git a/ReleaseClienti/TK_prod/GMW.zip b/ReleaseClienti/TK_prod/GMW.zip
index 9a4885b1..d84bcac5 100644
Binary files a/ReleaseClienti/TK_prod/GMW.zip and b/ReleaseClienti/TK_prod/GMW.zip differ
diff --git a/ReleaseClienti/TK_test/GMW.zip b/ReleaseClienti/TK_test/GMW.zip
index 9b173017..91f62a5c 100644
Binary files a/ReleaseClienti/TK_test/GMW.zip and b/ReleaseClienti/TK_test/GMW.zip differ
diff --git a/VersGen/GMW.cs b/VersGen/GMW.cs
index 9628c27f..36833b0e 100644
--- a/VersGen/GMW.cs
+++ b/VersGen/GMW.cs
@@ -5,7 +5,7 @@
using System.Reflection;
-[assembly: AssemblyVersion("3.5.913.2448")]
-[assembly: AssemblyFileVersion("3.5.913.2448")]
+[assembly: AssemblyVersion("3.5.914.2448")]
+[assembly: AssemblyFileVersion("3.5.914.2448")]
[assembly: AssemblyCopyright("Steamware © 2007-2016")]
[assembly: AssemblyCompany("Steamware")]
diff --git a/VersGen/GMW.tt b/VersGen/GMW.tt
index 9891140d..93e20bc1 100644
--- a/VersGen/GMW.tt
+++ b/VersGen/GMW.tt
@@ -6,8 +6,8 @@
using System.Reflection;
-[assembly: AssemblyVersion("3.5.913.<#= this.RevisionNumber #>")]
-[assembly: AssemblyFileVersion("3.5.913.<#= this.RevisionNumber #>")]
+[assembly: AssemblyVersion("3.5.914.<#= this.RevisionNumber #>")]
+[assembly: AssemblyFileVersion("3.5.914.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Steamware © 2007-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+