Files
2021-04-13 16:52:17 +02:00

109 lines
2.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SteamWare.Reports
{
/// <summary>
/// Corpo risposta alla chiamata
/// </summary>
public class printTask
{
#region Public Properties
/// <summary>
/// Ulteriore messaggio opzionale
/// </summary>
public string message { get; set; } = "";
/// <summary>
/// Stato da impostare sul task : 0 --> DA FARE, 1 --> fatto, -1 --> annullato
/// </summary>
public int newStatus { get; set; } = 0;
/// <summary>
/// Numero di ticket della richeista di stampa (per poter chiudere)
/// </summary>
public string ticketNum { get; set; } = "";
#endregion Public Properties
}
/// <summary>
/// Configuraizone di una coda di stampa (1 coda = 1 tipo di report + stampante)
/// </summary>
public class queueConf
{
#region Public Properties
/// <summary>
/// Configurazione device di stampa
/// </summary>
public devInfoParam deviceInfoParam { get; set; }
/// <summary>
/// Nome coda
/// </summary>
public string name { get; set; } = "default";
/// <summary>
/// Nome stampante (opzionale)
/// </summary>
public string printerName { get; set; } = "Microsoft Print to PDF";
/// <summary>
/// Template report (rdlc)
/// </summary>
public string template { get; set; } = "default.rdlc";
#endregion Public Properties
}
/// <summary>
/// Configuraizone di un report (nom/type --> template)
/// </summary>
public class reportConf
{
#region Public Properties
/// <summary>
/// Nome coda
/// </summary>
public string name { get; set; } = "default";
/// <summary>
/// Template report (rdlc)
/// </summary>
public string template { get; set; } = "default.rdlc";
#endregion Public Properties
}
/// <summary>
/// Istanza dei dati di stampa di un SINGOLO docuemnto (report SSRS)
/// </summary>
public class reportData
{
#region Public Properties
/// <summary>
/// Dictionary degli RDS da impiegare, chiave = nome RDS, valore = tabella RDS
/// </summary>
public Dictionary<string, DataTable> rdsData { get; set; }
/// <summary>
/// Template report (rdlc) della SINGOLA richiesta di stampa (per gestione multi coda), se vuoto --> prendo quello della coda
/// </summary>
public string template { get; set; } = "";
/// <summary>
/// Numero di ticket della richiesta di stampa (per poter chiudere)
/// </summary>
public string ticketNum { get; set; } = "";
#endregion Public Properties
}
}