From 665a8af41d7b0a45183e607bdbef104501acc7cf Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 15 Mar 2018 16:48:52 +0100 Subject: [PATCH] inizio nuova versioen e tolte chiamate verifica path inutili x disegni... --- Jenkinsfile | 2 +- .../WebUserControls/mod_dettMacchina.ascx.cs | 52 +------------------ 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3dd7abc4..2871396a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=722']) { + withEnv(['NEXT_BUILD_NUMBER=723']) { // env.versionNumber = VersionNumber(versionNumberString : '5.0.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '5.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-Tablet/WebUserControls/mod_dettMacchina.ascx.cs b/MP-Tablet/WebUserControls/mod_dettMacchina.ascx.cs index 3d9a655f..806ac200 100644 --- a/MP-Tablet/WebUserControls/mod_dettMacchina.ascx.cs +++ b/MP-Tablet/WebUserControls/mod_dettMacchina.ascx.cs @@ -140,63 +140,13 @@ namespace MoonProTablet.WebUserControls try { DS_ProdTempi.AnagArticoliRow riga = DataLayer.obj.taAnagArt.getByCod(_codArticolo.ToString())[0]; -#if false - // se disegno presente... - if (docPresente(riga.Disegno)) - { -#endif - outVal = string.Format("~/Files/Disegni/{0}.pdf", riga.Disegno); -#if false + outVal = string.Format("~/Files/Disegni/{0}.pdf", riga.Disegno); } - else - { - logger.lg.scriviLog(string.Format("Errore Articolo {0}: NON ho trovato il disegno {1}", riga.CodArticolo, riga.Disegno), tipoLog.INFO); - } -#endif - } catch (Exception exc) { logger.lg.scriviLog(string.Format("Errore in ricostruzione URL disegno:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); } return outVal; } - - - /// - /// path completo documento su filesystem - /// - /// Nome disegno - /// - protected string docFilePath(string Disegno) - { - string answ = ""; - answ = string.Format(memLayer.ML.confReadString("urlDisegni"), Disegno); - // rimetto ".pdf" finale se non ci fosse... - if (answ.IndexOf(".pdf") < 0) Disegno += ".pdf"; - return answ; - } - /// - /// verifica se il documento sia presente - /// - public bool docPresente(string Disegno) - { - bool answ = false; - try - { - string filePath = docFilePath(Disegno).Replace("~/", ""); - // path SENZA "/" - answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath); - // provo con dir cablata da webconfig se non trovato... - if (!answ) - { - answ = fileMover.obj.fileExist(HttpRuntime.AppDomainAppPath, filePath.Replace("~/", "")); - } - } - catch (Exception exc) - { - logger.lg.scriviLog(string.Format("Errore in verifica docPresente:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION); - } - return answ; - } } } \ No newline at end of file