fix: Italian column labels + consistent title style in eventi renderer

Changes applied:
1. Updated column names in active certificates (quotazione):
   - "Trigger Cedola" → "Livello Cedola"
   - "Trigger Autocall" → "Livello Richiamo Anticipato"
   - "Valore Autocall" → "Valore Richiamo Anticipato"

2. Updated column names in expired certificates:
   - "Soglia Rimborso" → "Livello Richiamo Anticipato"
   - "Valore Autocall" → "Valore Richiamo Anticipato"

3. Synchronized title style in EventiSectionRenderer with AnagraficaSectionRenderer:
   - Uses AccentBlue color instead of generic SectionTitle
   - Added blue separator line below title (AccentBluePen)
   - Aligned spacing and font sizing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 17:04:28 +01:00
parent 3e52f807a5
commit 9c78b3f852

View File

@@ -31,8 +31,12 @@ public class EventiSectionRenderer : IPdfSectionRenderer
// ── Titolo ───────────────────────────────────────────────────── // ── Titolo ─────────────────────────────────────────────────────
g.DrawString("Lista Eventi", PdfTheme.SectionTitleFont, g.DrawString("Lista Eventi", PdfTheme.SectionTitleFont,
new PdfSolidBrush(PdfTheme.SectionTitle), new RectangleF(0, y, w, 18)); new PdfSolidBrush(PdfTheme.AccentBlue), new RectangleF(0, y, w, 20f));
y += 22; y += 24f;
// Linea separatrice blu
g.DrawLine(PdfTheme.AccentBluePen, 0, y, w, y);
y += 8f;
// ── Griglia ──────────────────────────────────────────────────── // ── Griglia ────────────────────────────────────────────────────
var grid = new PdfGrid(); var grid = new PdfGrid();
@@ -48,12 +52,12 @@ public class EventiSectionRenderer : IPdfSectionRenderer
if (isExpired) if (isExpired)
{ {
// Certificati non in quotazione: senza Ex Date e Record, // Certificati non in quotazione: senza Ex Date e Record,
// rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Soglia Rimborso // rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Livello Richiamo Anticipato
headers = new[] headers = new[]
{ {
"Osservazione", "Pagamento", "Osservazione", "Pagamento",
"Barriera Cedola", "Cedola %", "Pagato", "Memoria", "Barriera Cedola", "Cedola %", "Pagato", "Memoria",
"Importo Pagato", "Soglia Rimborso", "Valore Autocall" "Importo Pagato", "Livello Richiamo Anticipato", "Valore Richiamo Anticipato"
}; };
cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52 }; cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52 };
paidColIndex = 4; paidColIndex = 4;
@@ -63,8 +67,8 @@ public class EventiSectionRenderer : IPdfSectionRenderer
headers = new[] headers = new[]
{ {
"Osservazione", "Ex Date", "Record", "Pagamento", "Osservazione", "Ex Date", "Record", "Pagamento",
"Trigger Cedola", "Cedola %", "Pagato", "Memoria", "Livello Cedola", "Cedola %", "Pagato", "Memoria",
"Importo Pagato", "Trigger Autocall", "Valore Autocall" "Importo Pagato", "Livello Richiamo Anticipato", "Valore Richiamo Anticipato"
}; };
cw = new float[] { 62, 52, 52, 58, 52, 46, 36, 46, 52, 58, 52 }; cw = new float[] { 62, 52, 52, 58, 52, 46, 36, 46, 52, 58, 52 };
paidColIndex = 6; paidColIndex = 6;