diff --git a/NKC_WF/WebUserControls/cmp_MachSem.ascx b/NKC_WF/WebUserControls/cmp_MachSem.ascx index be2a682..5cce675 100644 --- a/NKC_WF/WebUserControls/cmp_MachSem.ascx +++ b/NKC_WF/WebUserControls/cmp_MachSem.ascx @@ -2,9 +2,12 @@ - - - + + + + + +
@@ -23,9 +26,24 @@
-
 <%: traduci("print") %>
-
 <%: traduci("CNC") %>
-
 <%: traduci("unload") %>
+
+  <%: traduci("print") %> | <%: hfStat01.Value %> +
+ <%: traduci($"print_state_{hfStat01.Value}") %> +
+
+
+  <%: traduci("CNC") %> | <%: hfStat02.Value %> +
+ <%: traduci($"CNC_state_{hfStat02.Value}") %> +
+
+
+  <%: traduci("unload") %> | <%: hfStat03.Value %> +
+ <%: traduci($"unload_state_{hfStat03.Value}") %> +
+
diff --git a/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs b/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs index c562658..85e6a8a 100644 --- a/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs +++ b/NKC_WF/WebUserControls/cmp_MachSem.ascx.cs @@ -101,28 +101,31 @@ namespace NKC_WF.WebUserControls // FIXME TODO: fake.... DateTime adesso = DateTime.Now; int numsec = adesso.Second; - hfStat01.Value = "success"; - hfStat02.Value = "warning"; - hfStat03.Value = "danger"; + hfCss01.Value = "success"; + hfCss02.Value = "warning"; + hfCss03.Value = "danger"; + hfStat01.Value = $"{adesso.Second - 1 % 10:00}"; + hfStat02.Value = $"{adesso.Second + 3 % 10:00}"; + hfStat03.Value = $"{adesso.Second + 1 % 10:00}"; switch (numsec % 3) { case 1: - hfStat01.Value = "warning"; - hfStat02.Value = "danger"; - hfStat03.Value = "success"; + hfCss01.Value = "warning"; + hfCss02.Value = "danger"; + hfCss03.Value = "success"; break; case 2: - hfStat01.Value = "danger"; - hfStat02.Value = "success"; - hfStat03.Value = "warning"; + hfCss01.Value = "danger"; + hfCss02.Value = "success"; + hfCss03.Value = "warning"; break; case 0: default: - hfStat01.Value = "success"; - hfStat02.Value = "warning"; - hfStat03.Value = "danger"; + hfCss01.Value = "success"; + hfCss02.Value = "warning"; + hfCss03.Value = "danger"; break; } } diff --git a/NKC_WF/WebUserControls/cmp_MachSem.ascx.designer.cs b/NKC_WF/WebUserControls/cmp_MachSem.ascx.designer.cs index 9f20390..0abc71d 100644 --- a/NKC_WF/WebUserControls/cmp_MachSem.ascx.designer.cs +++ b/NKC_WF/WebUserControls/cmp_MachSem.ascx.designer.cs @@ -59,6 +59,33 @@ namespace NKC_WF.WebUserControls /// protected global::System.Web.UI.WebControls.HiddenField hfStat03; + /// + /// hfCss01 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfCss01; + + /// + /// hfCss02 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfCss02; + + /// + /// hfCss03 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfCss03; + /// /// divSelect control. ///