115 lines
5.3 KiB
C#

using System;
using System.Linq;
using Consulenza.ReportWriter.Business;
using Consulenza.ReportWriter.Business.OBJ_PDF;
using System.Data;
using Consulenza.ReportCommon;
using Consulenza.ReportWriter.Manager.Integration;
namespace Consulenza.ReportWriter.Manager.Section.Unica.Proposta
{
// <summary>
/// S29.ProgettoUniversitaFigliDettaglioPortafoglioModelloVSAttuale idSezione = 72
/// </summary>
public class S29 : Unica.S29
{
/// <summary>
/// Costruttore
/// </summary>
/// <param name="environmentFacade"></param>
/// <param name="idSection"></param>
public S29(EnvironmentFacade environmentFacade, int idSection)
: base(environmentFacade, idSection)
{
}
//public virtual string getNota3()
//{
// var patrimonioCasa = datiSeiUnico.patrimonioUnit().patrimonioCasa;
// var pianificazione = datiSeiUnico.pianificazioneUnit().pianificazioneVerticale;
// string nota = "";
// string nota1 = "";
// string nota2 = "";
// if (!isAssetClass())
// {
// if (patrimonioCasa.macroAssetClass.distribuzione.coverageCC < 100)
// {
// nota += "(*) Grado di copertura (%) della rappresentazione grafica per macro asset allocation pari a {0}: ";
// nota1 += "non sono considerati i prodotti non rappresentabili ({0} €).";
// nota = string.Format(nota, Helper.FormatDecimal(patrimonioCasa.macroAssetClass.distribuzione.coverageCC.ToString(), 2));
// nota1 = string.Format(nota1, Helper.FormatCurrency(patrimonioCasa.macroAssetClass.distribuzione.totaleNonRappr.ToString()));
// }
// }
// else
// {
// if (patrimonioCasa.assetClass.distribuzione.coverageCC < 100)
// {
// nota += "(*) Grado di copertura (%) della rappresentazione grafica per asset allocation pari a {0}: ";
// nota1 += "non sono considerati i prodotti non rappresentabili ({0} €).";
// nota = string.Format(nota, Helper.FormatDecimal(patrimonioCasa.assetClass.distribuzione.coverageCC.ToString(), 2));
// nota1 = string.Format(nota1, Helper.FormatCurrency(patrimonioCasa.assetClass.distribuzione.totaleNonRappr.ToString()));
// }
// }
// // TO DO aderenza
// // IF controllo su aderenza
// //nota2 += "Portafoglio considerato nel calolo dell'aderenza (%): {0}.";
// // nota2 = string.Format(nota2, Helper.FormatCurrency(patrimonioCasa.macroAssetClass.distribuzione.totaleNonRappr.ToString()));
// return nota + nota1 + nota2;
//}
//public virtual string getNota2()
//{
// // Nota Grado Copertura
// var gradoCopertura = datiSeiUnico.pianificazioneUnit().pianificazioneVerticale.varInfos.stat.copertura;
// string nota = "";
// if (gradoCopertura < 100)
// {
// if (getNota1().Length > 0 && getNota3().Length > 0)
// nota += "(**) Grado di copertura prodotti in termini di Rischio Mercato (VaR): {0}.";
// else
// nota += "(*) Grado di copertura prodotti in termini di Rischio Mercato (VaR): {0}.";
// nota = string.Format(nota, Helper.FormatDecimal(gradoCopertura.ToString(), 2));
// }
// return nota;
//}
//public virtual string getNota1()
//{
// // Nota Portafoglio Consigliato
// var patrimonioCasa = datiSeiUnico.patrimonioUnit().patrimonioCasa;
// var pianificazione = datiSeiUnico.pianificazioneUnit().pianificazioneVerticale;
// string nota = "";
// string nota1 = "";
// if (!isAssetClass())
// {
// if (patrimonioCasa.macroAssetClass.distribuzione.coverageCC < 100)
// {
// nota += "(*) Grado di copertura (%) della rappresentazione grafica per macro asset allocation pari a {0}: ";
// nota1 += "non sono considerati i prodotti non rappresentabili ({0} €).";
// nota = string.Format(nota, Helper.FormatDecimal(patrimonioCasa.macroAssetClass.distribuzione.coverageCC.ToString(), 2));
// nota1 = string.Format(nota1, Helper.FormatCurrency(patrimonioCasa.macroAssetClass.distribuzione.totaleNonRappr.ToString()));
// }
// }
// else
// {
// if (patrimonioCasa.assetClass.distribuzione.coverageCC < 100)
// {
// nota += "(*) Grado di copertura (%) della rappresentazione grafica per asset allocation pari a {0}: ";
// nota1 += "non sono considerati i prodotti non rappresentabili ({0} €).";
// nota = string.Format(nota, Helper.FormatDecimal(patrimonioCasa.assetClass.distribuzione.coverageCC.ToString(), 2));
// nota1 = string.Format(nota1, Helper.FormatCurrency(patrimonioCasa.assetClass.distribuzione.totaleNonRappr.ToString()));
// }
// }
// return nota + nota1;
//}
}
}