Files
NKC/NKC_WF/Controllers/ReportConfController.cs
T
2023-04-07 13:43:08 +02:00

36 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using static NKC_WF.WebUserControls.cmp_OOIL_drawings;
using SteamWare;
namespace NKC_WF.Controllers
{
public class ReportConfController : ApiController
{
/// <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;
}
}
}