sostituzione "|" --> "#" esteso ad altri metodi MP/IO

This commit is contained in:
Samuele E. Locatelli
2019-10-20 15:27:18 +02:00
parent 3e579b4dd8
commit 84c5d41a5d
2 changed files with 13 additions and 1 deletions
Vendored
+1 -1
View File
@@ -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'
+12
View File
@@ -160,6 +160,8 @@ namespace MP_IO.Controllers
/// <returns></returns>
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
/// <returns></returns>
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
/// <returns></returns>
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
/// <returns></returns>
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
/// <returns></returns>
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
/// <returns>jSon contenente la riga di stato macchina</returns>
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();