diff --git a/GMW/WebUserControls/mod_storicoAzioniOperatore.ascx.cs b/GMW/WebUserControls/mod_storicoAzioniOperatore.ascx.cs index 82d5682e..2a2c24db 100644 --- a/GMW/WebUserControls/mod_storicoAzioniOperatore.ascx.cs +++ b/GMW/WebUserControls/mod_storicoAzioniOperatore.ascx.cs @@ -88,7 +88,11 @@ namespace GMW.WebUserControls private void setBtnState() { bool showDelUdc = memLayer.ML.confReadBool("userCanDelUdc") && showDelete; - btnElimina.Visible = false; + btnElimina.Visible = true; + btnStampa.Visible = true; +#if false + btnElimina.Visible = false; +#endif bool abilita = false; string css = "btn btn-default disabled"; // se ho udc selezionato verifico se sia eliminabile @@ -109,7 +113,9 @@ namespace GMW.WebUserControls { showDelUdc = false; } - btnElimina.Visible = showDelUdc; +#if false + btnElimina.Enabled = showDelUdc; +#endif } if (idxEvento > 0 && udcSel != "") { @@ -119,15 +125,19 @@ namespace GMW.WebUserControls css = "btn btn-default"; } } - btnStampa.Enabled = abilita; - btnElimina.Enabled = abilita; btnStampa.CssClass = css; btnElimina.CssClass = css; // se รจ AL NON permetto ristampa (SE consumato) if (udcSel.StartsWith("A")) { - btnStampa.Visible = showDelUdc; + btnStampa.Enabled = showDelUdc; } + else + { + btnStampa.Enabled = abilita; + } + // elimina richeide invece ENTRAMBE le condizioni + btnElimina.Enabled = abilita && showDelUdc; } /// /// indica name della postazione corrente diff --git a/Jenkinsfile b/Jenkinsfile index e01f3d45..189873ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=2082']) { + withEnv(['NEXT_BUILD_NUMBER=2083']) { // impiego numero di build del SINGOLO RAMO // env.versionNumber = VersionNumber(versionNumberString : '3.9.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) // forzo numero di build x tutti rami uguali