From ca27b7deb70fba83b4e6d4b8b95193ebc6059fcc Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 18 Jul 2018 11:51:38 +0200 Subject: [PATCH] inserito in IOB metodo x controllo ODL corrente --- MP-IO/Controllers/IOBController.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index a266842c..f21f2fee 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -142,6 +142,28 @@ namespace MP_IO.Controllers return answ; } /// + /// Recupera ODL corrente x macchina: + /// + /// GET: IOB/getCurrODL/5 + /// + /// + /// + /// + public string getCurrODL(string id) + { + string answ = ""; + try + { + answ = DataLayer.currODL(id).ToString(); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore in currODL (get){0}{1}", Environment.NewLine, exc)); + answ = "NO"; + } + return answ; + } + /// /// Recupera COUNTER x macchina: /// /// GET: IOB/getCounter/5