40 lines
1.7 KiB
C#
40 lines
1.7 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
using ceTe.DynamicPDF;
|
||
using ceTe.DynamicPDF.PageElements;
|
||
using ceTe.DynamicPDF.Merger;
|
||
using ceTe.DynamicPDF.Text;
|
||
using System.Configuration;
|
||
using System.Globalization;
|
||
|
||
namespace Consulenza.PDFLettera
|
||
{
|
||
class LetteraAccettazioneAttivazioneSeiPosticipata : LetteraBenvenuto{
|
||
|
||
|
||
public LetteraAccettazioneAttivazioneSeiPosticipata (string rete, int id, string testo, string nome, string cognome, string indirizzo, string appellativo,string obj,string firma)
|
||
: base(rete, id, testo, nome, cognome,indirizzo,false,appellativo,obj,firma) {
|
||
this.settaCampi();
|
||
this.nomeLettera = "LetteraAccettazioneAttivazioneSeiPosticipata"+id;
|
||
}
|
||
|
||
protected override void settaCampi() {
|
||
this.cliente.Text = this.appellativo + "\r\n" + nome + " " + cognome + "\r\n" + indirizzo;
|
||
DateTimeFormatInfo dfi = new CultureInfo("it-IT", false).DateTimeFormat;
|
||
this.luogo.Text = "Roma, " + dataGenerazione.ToString("dd MMMM yyyy", new CultureInfo("it-IT", false).DateTimeFormat);
|
||
this.oggetto.Text = this.testoOggetto;
|
||
this.corpo.Text = testo;
|
||
string[] valoriTextArea = ConfigurationManager.AppSettings["OffsetFirmaPostSei"].Split(',');
|
||
this.saluti.Text = this.testoSaluti;
|
||
//if (rete.ToUpper() == "F")
|
||
// this.saluti.Text = "<P align=\"center\"><B>Banca Fideuram S.p.A.</B>\r\nL’Amministratore Delegato e Direttore Generale\r\nMatteo Colafrancesco </P>";
|
||
//else
|
||
// this.saluti.Text = "<P align=\"center\"><B>Sanpaolo Invest S.p.A.</B>\r\nL’Amministratore Delegato e Direttore Generale\r\nMatteo Colafrancesco </P>";
|
||
|
||
|
||
}
|
||
}
|
||
|
||
}
|