From e3482b5a5cb63b7bc0d8ee5f54c423800f47d0bf Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 13 Aug 2020 09:43:19 +0200 Subject: [PATCH] cambio poliocy update dati unload + gest currBunk --- NKC_WF/site/MachineUnload.aspx | 8 ++++---- NKC_WF/site/MachineUnload.aspx.cs | 16 +++++++++++++++- NKC_WF/site/MachineUnload.aspx.designer.cs | 18 +++++++++--------- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/NKC_WF/site/MachineUnload.aspx b/NKC_WF/site/MachineUnload.aspx index 204cd5e..3f5cd7c 100644 --- a/NKC_WF/site/MachineUnload.aspx +++ b/NKC_WF/site/MachineUnload.aspx @@ -11,9 +11,8 @@

<%: traduci("MachineUnload") %> (<%: hfBatchID.Value %>)

- + - @@ -21,7 +20,7 @@
- + @@ -35,8 +34,9 @@
- + + diff --git a/NKC_WF/site/MachineUnload.aspx.cs b/NKC_WF/site/MachineUnload.aspx.cs index fb864d1..b41a4f4 100644 --- a/NKC_WF/site/MachineUnload.aspx.cs +++ b/NKC_WF/site/MachineUnload.aspx.cs @@ -6,11 +6,18 @@ namespace NKC_WF { public partial class MachineUnload : BasePage { + /// + /// Codice macchina (HARD CODED x ora) + /// + protected string machine = "WRK001"; + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ((SiteMaster)this.Master).showSearch = false; + BatchId = -1; + SheetId = -1; doUpdate(); } } @@ -113,11 +120,18 @@ namespace NKC_WF if (counter % 10 == 0) { cmp_MU_stats.doUpdate(); + upnlStats.Update(); } - if (counter % 2 == 0) + // faccio update bin/cart ogni pari/dispari... + else if (counter % 2 == 0) { cmp_MU_carts.doUpdate(); + upnlCarts.Update(); + } + else + { cmp_MU_bins.doUpdate(); + upnlBins.Update(); } incrNumWait(); } diff --git a/NKC_WF/site/MachineUnload.aspx.designer.cs b/NKC_WF/site/MachineUnload.aspx.designer.cs index dbdbd7b..be25b73 100644 --- a/NKC_WF/site/MachineUnload.aspx.designer.cs +++ b/NKC_WF/site/MachineUnload.aspx.designer.cs @@ -23,15 +23,6 @@ namespace NKC_WF /// protected global::System.Web.UI.UpdatePanel upnlStats; - /// - /// Controllo timerSvg. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.Timer timerSvg; - /// /// Controllo hfBatchID. /// @@ -104,6 +95,15 @@ namespace NKC_WF /// protected global::System.Web.UI.UpdatePanel upnlCarts; + /// + /// Controllo timerSvg. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.Timer timerSvg; + /// /// Controllo cmp_MU_carts. ///