Fix comportamento buttons SX panel

This commit is contained in:
Samuele E. Locatelli
2018-12-22 11:05:10 +01:00
parent 09e571a8cf
commit 446f71f3d0
2 changed files with 16 additions and 6 deletions
@@ -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;
}
/// <summary>
/// indica name della postazione corrente
Vendored
+1 -1
View File
@@ -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