From 52065d78eac58ab08cdc4ca519261b2abbc6ef27 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sat, 25 Jul 2020 12:13:04 +0200 Subject: [PATCH] Fix progressbar x BUNK --- NKC_WF/WebUserControls/cmp_stackBuilding.ascx | 16 +++++++++++++--- .../WebUserControls/cmp_stackBuilding.ascx.cs | 12 ++++++++++++ .../cmp_stackBuilding.ascx.designer.cs | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx index 0ca7b57..7ff6189 100644 --- a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx +++ b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx @@ -12,9 +12,7 @@
- - PRINT - + PRINT
@@ -50,6 +48,18 @@ + + +
+
+
+
+
+ + + + + diff --git a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs index 4dac399..5db4c68 100644 --- a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.cs @@ -113,6 +113,7 @@ namespace NKC_WF.WebUserControls public void doUpdate() { repCtrl.DataBind(); + repProgress.DataBind(); checkPrint(); } @@ -172,5 +173,16 @@ namespace NKC_WF.WebUserControls // aggiorno stato BATCH ComLib.updateBatchPositionByBunk(StackId); } + + public string getProgressStyle(object _num, object _den) + { + string answ = "width: 10%"; + int num = 0; + int den = 1; + int.TryParse(_num.ToString(), out num); + int.TryParse(_den.ToString(), out den); + answ = $"width: {num * 100 / den}%"; + return answ; + } } } \ No newline at end of file diff --git a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.designer.cs index 27287a7..397364a 100644 --- a/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_stackBuilding.ascx.designer.cs @@ -85,5 +85,23 @@ namespace NKC_WF.WebUserControls /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; + + /// + /// Controllo repProgress. + /// + /// + /// 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.Repeater repProgress; + + /// + /// Controllo odsAdvance. + /// + /// + /// 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.ObjectDataSource odsAdvance; } }