Files
MoonPro.net/MP-MAG/Controllers/ReportConfController.cs
Samuele Locatelli d645bce02b MP-IO:
- correzione metodi gestione apertura/chiusura nuovo PODL
2023-04-11 11:42:46 +02:00

34 lines
999 B
C#

using SteamWare;
using System.Collections.Generic;
using System.Web.Http;
namespace MP_MAG.Controllers
{
public class ReportConfController : ApiController
{
#region Public Methods
/// <summary>
/// Restituisce un array JSon x le conf dei report
/// GET: api/PrintQueueConf
/// </summary>
/// <returns>lista oggetto Json in formato SteamwareSDK.queueConf</returns>
public List<SteamWare.Reports.reportConf> Get()
{
List<SteamWare.Reports.reportConf> answ = MagData.MagDataLayer.man.reportConfJson;
// se vuoto... creo!
if (answ.Count == 0)
{
SteamWare.Reports.reportConf currConf = new SteamWare.Reports.reportConf()
{
name = "none",
template = "none.rdlc"
};
answ.Add(currConf);
}
return answ;
}
#endregion Public Methods
}
}