Gestione CIMOLAI:
- Inizio modifica IO x metodi dati PODL - anag articoli
This commit is contained in:
@@ -423,6 +423,35 @@ namespace MP_IO.Controllers
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Recupera DATI PODL correnti x macchina:
|
||||
///
|
||||
/// GET: IOB/getCurrPODL/SIMUL_03
|
||||
/// </summary>
|
||||
/// <param name="id">id macchina, se "" oppure * mostra tutto</param>
|
||||
/// <returns>Json contenente lista oggetti PODL serializzati</returns>
|
||||
public string getCurrPODL(string id)
|
||||
{
|
||||
// attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il
|
||||
// carattere "|" che poi trasformiamo ora in "#"
|
||||
id = id.Replace("|", "#");
|
||||
string answ = "";
|
||||
|
||||
// init obj DataLayer
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
try
|
||||
{
|
||||
// recupero dati macchina...
|
||||
var elencoOdl = DataLayerObj.taPODL.getByMaccArt(id, "", "", true);
|
||||
var righeOdl = elencoOdl.Rows;
|
||||
answ = JsonConvert.SerializeObject(righeOdl);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Recupera ODL corrente x macchina:
|
||||
///
|
||||
|
||||
+3
-2
@@ -1,5 +1,6 @@
|
||||
using MapoSDK;
|
||||
using Newtonsoft.Json;
|
||||
using PdfSharp.Charting;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -1388,7 +1389,7 @@ namespace MapoDb
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}");
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItems{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
return actValues;
|
||||
@@ -1420,7 +1421,7 @@ namespace MapoDb
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}");
|
||||
logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItemsPendigWrite{Environment.NewLine}{exc}");
|
||||
}
|
||||
}
|
||||
return writeValues;
|
||||
|
||||
Reference in New Issue
Block a user