diff --git a/NKC_WF/Web.config b/NKC_WF/Web.config index 3a89e11..645d23f 100644 --- a/NKC_WF/Web.config +++ b/NKC_WF/Web.config @@ -63,8 +63,8 @@ - - + + diff --git a/NKC_WF/WebUserControls/cmp_barcode.ascx.cs b/NKC_WF/WebUserControls/cmp_barcode.ascx.cs index c6c5025..ade0132 100644 --- a/NKC_WF/WebUserControls/cmp_barcode.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_barcode.ascx.cs @@ -147,9 +147,11 @@ namespace NKC_WF.WebUserControls protected void UiTimer_Tick(object sender, EventArgs e) { - // controllo, se ultima operazione > 1 minuto --> reload! - if (DateTime.Now.Subtract(lastDtInput).TotalMilliseconds > memLayer.ML.confReadInt("smartForceReloadPagina_ms")) + // controllo, se ultima operazione > smartForceReloadPagina_ms --> reload! + var tsLastUpdate = DateTime.Now.Subtract(lastDtInput); + if (tsLastUpdate.TotalMilliseconds > memLayer.ML.confReadInt("smartForceReloadPagina_ms")) { + lgInfo($"cmp_barcode | Reload page for timeout: {tsLastUpdate.TotalSeconds} sec from last update"); inputAcquired = "##"; Response.Redirect(Request.RawUrl); } @@ -174,13 +176,15 @@ namespace NKC_WF.WebUserControls raiseEvent(); } } +#if false else { if (string.IsNullOrEmpty(inputAcquired)) { resetInput(); } - } + } +#endif resetInput(); } diff --git a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx index 1f2d705..55be330 100644 --- a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx +++ b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx @@ -20,7 +20,7 @@
- +

Processing...

@@ -29,6 +29,7 @@
+ Force Reload diff --git a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs index 9ebd359..eaef86d 100644 --- a/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_unloadSmart.ascx.cs @@ -888,5 +888,11 @@ namespace NKC_WF.WebUserControls } #endregion Protected Methods + + protected void lbtForceReload_Click(object sender, EventArgs e) + { + lgInfo("UnloadSmart: Requested ForceReload by user"); + Response.Redirect(Request.RawUrl); + } } } \ No newline at end of file diff --git a/NKC_WF/site/DBG_QRCode_Unload.aspx b/NKC_WF/site/DBG_QRCode_Unload.aspx index 14d4d3d..c94073c 100644 --- a/NKC_WF/site/DBG_QRCode_Unload.aspx +++ b/NKC_WF/site/DBG_QRCode_Unload.aspx @@ -27,19 +27,21 @@
QR size - - - - - + + + + + + +
NUM Righe: - - - - - + + + + +