sostituzione "|" --> "#" esteso ad altri metodi MP/IO
This commit is contained in:
Vendored
+1
-1
@@ -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'
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user