From 59caf3160ccbea9801b9bd8a6dbc036e6732dd1e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 4 Oct 2018 19:34:37 +0200 Subject: [PATCH] Fix controlli x gest doppia tavola... --- Jenkinsfile | 2 +- .../WebUserControls/mod_controlliProd.ascx.cs | 20 ++++++++++++++----- .../WebUserControls/mod_elencoControlli.ascx | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffd49d3f..c1776a08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=847']) { + withEnv(['NEXT_BUILD_NUMBER=848']) { // env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}') env.APP_NAME = 'MAPO' diff --git a/MP-TAB/WebUserControls/mod_controlliProd.ascx.cs b/MP-TAB/WebUserControls/mod_controlliProd.ascx.cs index 28cc1852..1b69c92f 100644 --- a/MP-TAB/WebUserControls/mod_controlliProd.ascx.cs +++ b/MP-TAB/WebUserControls/mod_controlliProd.ascx.cs @@ -1,11 +1,7 @@ using MapoDb; using SteamWare; using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; using System.Web.UI; -using System.Web.UI.WebControls; namespace MoonProTablet.WebUserControls { @@ -68,6 +64,7 @@ namespace MoonProTablet.WebUserControls private void fixSelMacc() { divSelMacc.Visible = isMulti; + fixSelMaccControlli(); } /// /// restituisce css disabled SE odl NON OK... @@ -172,7 +169,7 @@ namespace MoonProTablet.WebUserControls { eh_reset(this, new EventArgs()); } - } + } } /// /// salvo produzione @@ -202,9 +199,22 @@ namespace MoonProTablet.WebUserControls protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e) { subMaccSel = ddlSubMacc.SelectedValue; + fixSelMaccControlli(); checkAll(); } + private void fixSelMaccControlli() + { + if (isMulti) + { + memLayer.ML.setSessionVal("IdxMacchinaControlli", subMaccSel); + } + else + { + memLayer.ML.setSessionVal("IdxMacchinaControlli", idxMacchinaSession); + } + } + protected void ddlSubMacc_DataBound(object sender, EventArgs e) { // se ho in memoria un valore LO REIMPOSTO... diff --git a/MP-TAB/WebUserControls/mod_elencoControlli.ascx b/MP-TAB/WebUserControls/mod_elencoControlli.ascx index 2e5c901f..d934e176 100644 --- a/MP-TAB/WebUserControls/mod_elencoControlli.ascx +++ b/MP-TAB/WebUserControls/mod_elencoControlli.ascx @@ -39,7 +39,7 @@ - +