Gestione CIMOLAI:

- Inizio modifica IO x metodi dati PODL
- anag articoli
This commit is contained in:
Samuele Locatelli
2022-10-05 16:07:35 +02:00
parent ea6111dbd1
commit 11e3ef3db3
2 changed files with 32 additions and 2 deletions
+29
View File
@@ -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
View File
@@ -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;