docs: fix DrawTitolo -> DrawTitle method name in spec
This commit is contained in:
@@ -42,12 +42,12 @@ Il flag segue lo stesso pattern di `showBranding` e `showDividend`:
|
||||
1. **`CertificateReportData`**: aggiungere `bool ShowNatixis { get; set; } = false;`
|
||||
2. **`ReportController`**: aggiungere `[FromQuery(Name = "natixis")] bool showNatixis = false` a tutti e 3 gli endpoint (`GenerateReport`, `GenerateReportByIsin`, `DownloadReport`) e al metodo helper `GenerateAndReturnPdf`.
|
||||
3. **`IReportOrchestrator` / `ReportOrchestrator.GenerateReportAsync`**: aggiungere parametro `bool showNatixis = false`, propagarlo in `CertificateReportData.ShowNatixis`.
|
||||
4. **Renderer — `DrawTitolo`**: i metodi privati `DrawTitolo` in entrambi i renderer hanno firma `(PdfGraphics g, CertificateInfo info, float w, float y)` e non ricevono `CertificateReportData`. La strategia adottata è **Option A**: aggiungere `bool showNatixis` come parametro aggiuntivo e aggiornare il sito di chiamata in `Render` passando `data.ShowNatixis`.
|
||||
4. **Renderer — `DrawTitle`**: i metodi privati `DrawTitle` in entrambi i renderer hanno firma `(PdfGraphics g, CertificateInfo info, float w, float y)` e non ricevono `CertificateReportData`. La strategia adottata è **Option A**: aggiungere `bool showNatixis` come parametro aggiuntivo e aggiornare il sito di chiamata in `Render` passando `data.ShowNatixis`.
|
||||
```csharp
|
||||
// firma aggiornata
|
||||
private float DrawTitolo(PdfGraphics g, CertificateInfo info, float w, float y, bool showNatixis)
|
||||
private float DrawTitle(PdfGraphics g, CertificateInfo info, float w, float y, bool showNatixis)
|
||||
// call site in Render
|
||||
y = DrawTitolo(g, info, PageW, y, data.ShowNatixis);
|
||||
y = DrawTitle(g, info, PageW, y, data.ShowNatixis);
|
||||
// uso interno
|
||||
string tipologia = showNatixis ? info.Nome : info.Categoria;
|
||||
```
|
||||
@@ -80,7 +80,7 @@ La logica in `ReportOrchestrator` aggiunge `:natixis` a entrambe le chiavi (base
|
||||
| `Controllers/ReportController.cs` | Aggiungere param `natixis` a tutti gli endpoint |
|
||||
| `Services/Interfaces/IServices.cs` | Aggiornare firma `GenerateReportAsync` |
|
||||
| `Services/Implementations/ReportOrchestrator.cs` | Aggiungere param, propagare flag, aggiornare cache key |
|
||||
| `Services/Implementations/AnagraficaSectionRenderer.cs` | Aggiungere Memoria in DrawAnalisi; usare ShowNatixis in DrawTitolo |
|
||||
| `Services/Implementations/AnagraficaSectionRenderer.cs` | Aggiungere Memoria in DrawAnalisi; usare ShowNatixis in DrawTitle |
|
||||
| `Services/Implementations/ExpiredAnagraficaSectionRenderer.cs` | Stesse modifiche |
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user