Aggiunto gestione timer da web.config (da 1 a 3 sec refresh kitting page)

This commit is contained in:
Samuele Locatelli
2023-11-21 16:33:58 +01:00
parent 32248abb56
commit 548f847cc9
4 changed files with 24 additions and 21 deletions
+3 -2
View File
@@ -63,8 +63,9 @@
<appSettings>
<!--Configurazioni generali-->
<add key="intUpdatePagina_ms" value="120000"/>
<!--Dopo 1 minuto da ultima lettura (60000) svuota barcode in pagine smart-->
<add key="smartForceReloadPagina_ms" value="60000"/>
<!--Dopo 1 minuto da ultima lettura (300000) svuota barcode in pagine smart-->
<add key="smartForceReloadPagina_ms" value="300000"/>
<add key="kittingPageRefresh" value="3000"/>
<add key="appName" value="NKC"/>
<add key="CodModulo" value="NKC"/>
<add key="copyRight" value="Egaltech &amp; Steamware "/>
+1 -1
View File
@@ -6,7 +6,7 @@
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional">
<ContentTemplate>
<asp:Timer ID="timerKitting" runat="server" Interval="1000" OnTick="timerKitting_Tick"></asp:Timer>
<asp:Timer ID="timerKitting" runat="server" Interval="5000" OnTick="timerKitting_Tick"></asp:Timer>
<%--1000--%>
<div class="row mx-0">
<div class="col-12">
+3 -1
View File
@@ -1,4 +1,5 @@
using System;
using SteamWare;
using System;
using System.Web.UI;
namespace NKC_WF.site
@@ -10,6 +11,7 @@ namespace NKC_WF.site
if (!Page.IsPostBack)
{
((SiteMaster)this.Master).showSearch = false;
timerKitting.Interval = memLayer.ML.CRI("kittingPageRefresh");
}
}
+17 -17
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace NKC_WF.site
@@ -15,38 +15,38 @@ namespace NKC_WF.site
{
/// <summary>
/// Controllo UpdatePanel2.
/// UpdatePanel2 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel UpdatePanel2;
/// <summary>
/// Controllo timerKitting.
/// timerKitting control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.Timer timerKitting;
/// <summary>
/// Controllo cmp_kitReqRunning.
/// cmp_kitReqRunning control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::NKC_WF.WebUserControls.cmp_kitReqRunning cmp_kitReqRunning;
/// <summary>
/// Controllo cmp_kitting.
/// cmp_kitting control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::NKC_WF.WebUserControls.cmp_kitting cmp_kitting;
}