Update vari
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
using Newtonsoft.Json;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace MP_API.Controllers
|
||||
{
|
||||
public class PrintQueueConfController : ApiController
|
||||
{
|
||||
/// <summary>
|
||||
/// Restituisce un array JSon x le conf delle code di stampa
|
||||
/// GET: api/PrintQueue
|
||||
/// </summary>
|
||||
/// <returns>lista oggetto Json in formato SteamwareSDK.queueConf</returns>
|
||||
public List<queueConf> Get()
|
||||
{
|
||||
List<queueConf> answ = MagData.MagDataLayer.man.queueConfJson;
|
||||
// se vuoto... creo!
|
||||
if (answ.Count == 0)
|
||||
{
|
||||
queueConf currConf;
|
||||
devInfoParam currDevInfoParam = new devInfoParam()
|
||||
{
|
||||
OutputFormat = "EMF",
|
||||
PageHeight = "297mm",
|
||||
PageWidth = "210mm",
|
||||
MarginBottom = "10mm",
|
||||
MarginLeft = "10mm",
|
||||
MarginRight = "10mm",
|
||||
MarginTop = "10mm"
|
||||
};
|
||||
currConf = new queueConf()
|
||||
{
|
||||
name = "default",
|
||||
template = "missing.rdlc",
|
||||
printerName = "Microsoft Print to PDF",
|
||||
deviceInfoParam = currDevInfoParam
|
||||
};
|
||||
answ.Add(currConf);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user