diff --git a/NKC_WF/WebUserControls/cmp_orderStatus.ascx b/NKC_WF/WebUserControls/cmp_orderStatus.ascx deleted file mode 100644 index a28a183..0000000 --- a/NKC_WF/WebUserControls/cmp_orderStatus.ascx +++ /dev/null @@ -1,53 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_orderStatus.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_orderStatus" %> - - - - -
-
- Stiamo processando il batch <%: Session["BatchID"] %> -
- nome file: pippo.csv -
- Sono contenuti num XX Ordini per un totale di YY Items. -
-
-

-

- -
-
-
-
-
-
-
-
-
<%: traduci("NestingRuntime") %>
-
- - (sec)
-
-
-
-
-
<%: traduci("WorkingEstTime") %>
-
- - (minutes)
-
-
-
-
-
- Accetta -
-
- Annulla -
-
-
-
- -
-
diff --git a/NKC_WF/WebUserControls/cmp_orderStatus.ascx.cs b/NKC_WF/WebUserControls/cmp_orderStatus.ascx.cs deleted file mode 100644 index 4b0335f..0000000 --- a/NKC_WF/WebUserControls/cmp_orderStatus.ascx.cs +++ /dev/null @@ -1,98 +0,0 @@ -using AppData; -using Newtonsoft.Json; -using NKC_SDK; -using SteamWare; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -namespace NKC_WF.WebUserControls -{ - public partial class cmp_orderStatus : System.Web.UI.UserControl - { - public orderStatus statoBatch = new orderStatus(); - /// - /// Hash redis per il canale di comunicazione dei batch eseguiti/in esecuzione - /// - protected string batchInChannel = "NKC:IN:batchReq"; - /// - /// Wrapper traduzione termini - /// - /// - /// - public string traduci(string lemma) - { - return SteamWare.user_std.UtSn.Traduci(lemma); - } - protected void Page_Load(object sender, EventArgs e) - { - updateStatus(); - } - /// - /// ID del batch corrente - /// - protected int currBatchID - { - get - { - int answ = 0; - if (memLayer.ML.isInSessionObject("BatchID")) - { - answ = memLayer.ML.IntSessionObj("BatchID"); - } - return answ; - } - } - /// - /// Aggiorna visualizzazione status processo - /// - private void updateStatus() - { - // se trova batch non riportati in REDIS li scrive x richiedere processing - string batchKey = $"{batchInChannel}:{currBatchID}"; - // per prima cosa recupero da REDIS lo stato... - bool statusPresent = !string.IsNullOrEmpty(memLayer.ML.getRSV(batchKey)); - if (statusPresent) - { - string payload = memLayer.ML.getRSV(batchKey); - if (!string.IsNullOrEmpty(payload)) - { - try - { - statoBatch = JsonConvert.DeserializeObject(payload); - } - catch - { } - // aggiorno componente... - lblStatusCode.Text = statoBatch.ProcessStatus.ToString(); - lblProcNotes.Text = statoBatch.ProcessNotes; - lblNestingRuntime.Text = statoBatch.ProcessingRuntime.ToString(); - lblWrktimeEst.Text = (statoBatch.EstimatedWorktime / 60).ToString(); - // secondo status mostro barra... - divProgress.Visible = (statoBatch.ProcessStatus > procStatus.waiting && statoBatch.ProcessStatus < procStatus.error); - divButtons.Visible = (statoBatch.ProcessStatus > procStatus.error && statoBatch.ProcessStatus < procStatus.accepted); - } - } - TimerUpdateStatus.Enabled = statusPresent; - - } - - protected void TimerUpdateStatus_Tick(object sender, EventArgs e) - { - updateStatus(); - } - - protected void lbtConfirm_Click(object sender, EventArgs e) - { - // accettazione ordine: scrivo su DB e QUINDI su redis indico accepted - } - - protected void lbtCancel_Click(object sender, EventArgs e) - { - // rifiuto ordine: ELIMINO su DB e QUINDI su redis indico refused - } - } -} \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_orderStatus.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_orderStatus.ascx.designer.cs deleted file mode 100644 index 5e282b4..0000000 --- a/NKC_WF/WebUserControls/cmp_orderStatus.ascx.designer.cs +++ /dev/null @@ -1,105 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. -// -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// -//------------------------------------------------------------------------------ - -namespace NKC_WF.WebUserControls { - - - public partial class cmp_orderStatus { - - /// - /// Controllo updPanelStatus. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.UpdatePanel updPanelStatus; - - /// - /// Controllo lblStatusCode. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblStatusCode; - - /// - /// Controllo lblProcNotes. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblProcNotes; - - /// - /// Controllo divProgress. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divProgress; - - /// - /// Controllo lblNestingRuntime. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblNestingRuntime; - - /// - /// Controllo lblWrktimeEst. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.Label lblWrktimeEst; - - /// - /// Controllo divButtons. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divButtons; - - /// - /// Controllo lbtConfirm. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtConfirm; - - /// - /// Controllo lbtCancel. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.LinkButton lbtCancel; - - /// - /// Controllo TimerUpdateStatus. - /// - /// - /// 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 TimerUpdateStatus; - } -}