From b8a4bdb8a53bafd7888ba4ef59743c2b5ba61133 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 Mar 2025 13:36:53 +0100 Subject: [PATCH] Update x gestione padding a 6 zeri dati ODL/PODL --- MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs | 4 ++-- MP-Site/WebUserControls/mod_statoMacchina.ascx.cs | 2 +- MP-TAB/WebUserControls/mod_ODL.ascx.cs | 2 +- MP-TAB/WebUserControls/mod_dettMacchina.ascx | 2 +- MP-TAB/WebUserControls/mod_mappaStato.ascx | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs index 1e9883b9..27ced16d 100644 --- a/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs +++ b/MP-Site/WebUserControls/mod_infoAggiuntive.ascx.cs @@ -78,8 +78,8 @@ namespace MP_SITE.WebUserControls } } dataFrom = rigaOdl.DataInizio; - lblOdl.Text = idxPOdl > 0 ? $"PODL{idxPOdl:00000000} | " : "[NO PODL] "; - lblOdl.Text += $"ODL{idxOdl:00000000}"; + lblOdl.Text = idxPOdl > 0 ? $"PODL{idxPOdl:000000} | " : "[NO PODL] "; + lblOdl.Text += $"ODL{idxOdl:000000}"; lblOdlPer.Text = $"start: {dataFrom:dd/MM/yy HH:mm}"; } catch diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs index a424c639..2bf65653 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs @@ -392,7 +392,7 @@ namespace MP_SITE.WebUserControls // leggo valori da MSE... valMacchina.Text = tabMSE[0].Nome; valCodArticolo.Text = tabMSE[0].CodArticolo; - valPODL.Text = tabMSE[0].idxPODL > 0 ? $"PODL{tabMSE[0].idxPODL:00000000}" : "PODL -"; + valPODL.Text = tabMSE[0].idxPODL > 0 ? $"PODL{tabMSE[0].idxPODL:000000}" : "PODL -"; valODL.Text = tabMSE[0].idxODL > 0 ? $"ODL{tabMSE[0].idxODL}" : "ODL -"; // carico ultimo stato che sia durato almeno 6 sec (0.1 min) int idxStato = 0; diff --git a/MP-TAB/WebUserControls/mod_ODL.ascx.cs b/MP-TAB/WebUserControls/mod_ODL.ascx.cs index df4804c2..dbeb6217 100644 --- a/MP-TAB/WebUserControls/mod_ODL.ascx.cs +++ b/MP-TAB/WebUserControls/mod_ODL.ascx.cs @@ -1209,7 +1209,7 @@ namespace MoonProTablet.WebUserControls var datiODL = DataLayerObj.taODL.getByMacchina(idxMacchinaFix)[0]; string setArtVal = $"{datiODL.CodArticolo}"; string setPzCommVal = $"{datiODL.NumPezzi}"; - string setCommVal = $"ODL{datiODL.IdxODL:00000000}"; + string setCommVal = $"ODL{datiODL.IdxODL:000000}"; // FIXME TODO: scrivere come sotto? testare valvital x linea LASCO DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.startSetup, outData); DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setArt, setArtVal); diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx b/MP-TAB/WebUserControls/mod_dettMacchina.ascx index deab4ed4..84e961c7 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx @@ -21,7 +21,7 @@
- +
diff --git a/MP-TAB/WebUserControls/mod_mappaStato.ascx b/MP-TAB/WebUserControls/mod_mappaStato.ascx index f0ab645a..ee979854 100644 --- a/MP-TAB/WebUserControls/mod_mappaStato.ascx +++ b/MP-TAB/WebUserControls/mod_mappaStato.ascx @@ -23,10 +23,10 @@
- +
- +