55 lines
1.9 KiB
C#
55 lines
1.9 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
using System.Collections;
|
|
using ceTe.DynamicPDF;
|
|
using ceTe.DynamicPDF.Text;
|
|
using PDFGenerator.Presentation.Section.Tables;
|
|
using PDFGenerator.BusinessLayer.DataSection;
|
|
using PDFGenerator.BusinessLayer;
|
|
using System.Threading;
|
|
using System.Globalization;
|
|
|
|
namespace PDFGenerator.Presentation.Section
|
|
{
|
|
class S139
|
|
{
|
|
public void writeSezione(DataThread dataThread)
|
|
{
|
|
|
|
DocumentPDF document = dataThread.DocumentPDF;
|
|
DataSetS139 set = (DataSetS139)dataThread.Data.DatiSezione;
|
|
DatiTabella datiTabella = new DatiTabella(set.Scadenze);
|
|
|
|
document.setSezTitolo(dataThread.SezioneReport.Titolo);
|
|
document.setChapterHeader(dataThread.SezioneReport.TestoIntroduttivo.Replace("/$Banca$/", dataThread.NomeRete).Replace("Sanpaolo Invest", "Fideuram S.p.A., commercializzati tramite la rete di private banker Sanpaolo Invest"), 0, 520, 8);
|
|
|
|
|
|
|
|
#region TABLE SCADENZE
|
|
|
|
Tabella tabellaDati = new Tabella(document.getMargineLeft(), document.getLastPos());
|
|
tabellaDati.HeaderFont = 8;
|
|
tabellaDati.Header = true;
|
|
|
|
tabellaDati.Colonne.Add(new Colonna("DESPROD", "Strumento", 171, TipoAllineamento.SINISTRA, false, 7, false));
|
|
tabellaDati.Colonne.Add(new Colonna("TIPMOV", "Tipo Movimento", 171, TipoAllineamento.DESTRA, false, 7, false));
|
|
tabellaDati.Colonne.Add(new Colonna("DTSCAD", "Scadenza", 170, TipoAllineamento.DESTRA, false, 7, false));
|
|
|
|
tabellaDati.Draw(new DatiTabella(set.Scadenze), document);
|
|
#endregion
|
|
|
|
|
|
document.setLastPos(tabellaDati.AltezzaTabella);
|
|
|
|
|
|
}
|
|
}
|
|
}
|