From 84c5d41a5d8bf9c2fe6e1109f53c9005bfc02235 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sun, 20 Oct 2019 15:27:18 +0200 Subject: [PATCH] sostituzione "|" --> "#" esteso ad altri metodi MP/IO --- Jenkinsfile | 2 +- MP-IO/Controllers/IOBController.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c327dd18..b91fb78e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=1242']) { + withEnv(['NEXT_BUILD_NUMBER=1243']) { // env.versionNumber = VersionNumber(versionNumberString : '6.7.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true) env.versionNumber = VersionNumber(versionNumberString : '6.7.${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-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index c340b8cd..296c823b 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -160,6 +160,8 @@ namespace MP_IO.Controllers /// public string getCurrODL(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); string answ = ""; try { @@ -180,6 +182,8 @@ namespace MP_IO.Controllers /// public string getCurrOdlStart(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); DateTime answ = new DateTime(DateTime.Now.Year - 1, 12, 31); // chiamo metodo redis/db... try @@ -205,6 +209,8 @@ namespace MP_IO.Controllers /// public string getCurrOdlRow(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); string answ = ""; DS_ProdTempi.ODLDataTable currData = null; // chiamo metodo redis/db... @@ -227,6 +233,8 @@ namespace MP_IO.Controllers /// public string getCurrStatoRow(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); string answ = ""; DS_applicazione.StatoMacchineDataTable currData = null; // chiamo metodo redis/db... @@ -249,6 +257,8 @@ namespace MP_IO.Controllers /// public int getIdlePeriod(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); int answ = 0; DS_applicazione.StatoMacchineDataTable currData = null; // chiamo metodo redis/db... @@ -284,6 +294,8 @@ namespace MP_IO.Controllers /// jSon contenente la riga di stato macchina public string getCurrData(string id) { + // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); string answ = ""; // scrivo keep alive!!! (se necessario, altrimenti è in cache...) MapoDb.MapoDb connDb = new MapoDb.MapoDb();