feat: add Barriera/Rimborso Capitale columns to Eventi section

Append CapitalTrigger/CapitalValue columns (already read from
rpt_Events_CFT_ISIN) to both active and expired event tables.
Trim horizontal cell padding so all columns fit the page width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 10:33:40 +02:00
parent 9b938ef93d
commit 04b291a7ef

View File

@@ -40,7 +40,7 @@ public class EventiSectionRenderer : IPdfSectionRenderer
// ── Griglia ────────────────────────────────────────────────────
var grid = new PdfGrid();
grid.Style.CellPadding = new PdfPaddings(3, 3, 2, 2);
grid.Style.CellPadding = new PdfPaddings(1.5f, 1.5f, 2, 2);
bool isExpired = !string.IsNullOrEmpty(data.Info.Stato) && data.Info.Stato != "Quotazione";
@@ -57,9 +57,10 @@ public class EventiSectionRenderer : IPdfSectionRenderer
{
"Osservazione", "Pagamento",
"Barriera Cedola", "Cedola %", "Pagato", "Memoria",
"Importo Pagato", "Soglia Rimborso", "Valore Richiamo Anticipato"
"Importo Pagato", "Soglia Rimborso", "Valore Richiamo Anticipato",
"Barriera Capitale", "Rimborso Capitale"
};
cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52 };
cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52, 52, 52 };
paidColIndex = 4;
}
else
@@ -68,9 +69,10 @@ public class EventiSectionRenderer : IPdfSectionRenderer
{
"Osservazione", "Data Stacco", "Record", "Pagamento",
"Livello Cedola", "Cedola %", "Pagato", "Memoria",
"Importo Pagato", "Livello Richiamo Anticipato", "Valore Richiamo Anticipato"
"Importo Pagato", "Livello Richiamo Anticipato", "Valore Richiamo Anticipato",
"Barriera Capitale", "Rimborso Capitale"
};
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, 52, 52 };
paidColIndex = 6;
}
@@ -113,6 +115,8 @@ public class EventiSectionRenderer : IPdfSectionRenderer
row.Cells[6].Value = evt.AmountPaid;
row.Cells[7].Value = evt.AutocallTrigger;
row.Cells[8].Value = evt.AutocallValue;
row.Cells[9].Value = evt.CapitalTrigger;
row.Cells[10].Value = evt.CapitalValue;
}
else
{
@@ -127,6 +131,8 @@ public class EventiSectionRenderer : IPdfSectionRenderer
row.Cells[8].Value = evt.AmountPaid;
row.Cells[9].Value = evt.AutocallTrigger;
row.Cells[10].Value = evt.AutocallValue;
row.Cells[11].Value = evt.CapitalTrigger;
row.Cells[12].Value = evt.CapitalValue;
}
foreach (var cell in row.Cells.OfType<PdfGridCell>())