102 lines
3.1 KiB
C#
102 lines
3.1 KiB
C#
using System;
|
||
using System.Data;
|
||
using System.Configuration;
|
||
using System.Web;
|
||
using System.Web.Security;
|
||
using System.Web.UI;
|
||
using System.Web.UI.WebControls;
|
||
using System.Web.UI.WebControls.WebParts;
|
||
using System.Web.UI.HtmlControls;
|
||
|
||
using System.Collections;
|
||
using PDFGenerator.BusinessLayer.DataSection;
|
||
using PDFGenerator.BusinessLayer;
|
||
using System.Collections.Generic;
|
||
//using it.bancafideuram.nac;
|
||
/// <summary>
|
||
/// Summary description for DSS36ProfiloRischio
|
||
/// </summary>
|
||
public class DSS36ProfiloRischio : IDataSection
|
||
{
|
||
public DSS36ProfiloRischio()
|
||
{
|
||
//
|
||
// TODO: Add constructor logic here
|
||
//
|
||
}
|
||
|
||
#region IDataSection Members
|
||
|
||
public DataSectionResult getDataSection(List<SessionStruct> tabelleSessione, string querySql, DataThread dataThread)
|
||
{
|
||
|
||
try
|
||
{
|
||
DataSectionResult dsr = new DataSectionResult();
|
||
|
||
Random rnd = new Random();
|
||
DataRow dr;
|
||
|
||
DataTable dt = SectionManager.GetDataSection(tabelleSessione, querySql, dataThread);
|
||
|
||
DataSetS36 ds36 = new DataSetS36();
|
||
|
||
if (dataThread.profiloIsAct && dt.Rows.Count > 0)
|
||
{
|
||
int profiloRischioClienteAssegnato = Convert.ToInt32(dt.Rows[0]["codiceProfilo"]);
|
||
|
||
#region Creazione righe datatable profilorischio
|
||
|
||
// Profilo finanziario
|
||
|
||
dr = ds36.ProfiloRischio.NewRow();
|
||
dr["Descrizione"] = "Profilo finanziario";
|
||
dr["Valore"] = dt.Rows[0]["codiceProfilo"].ToString() + " " + dt.Rows[0]["nomeProfilo"].ToString();
|
||
ds36.ProfiloRischio.Rows.Add(dr);
|
||
|
||
// VaR Massimo
|
||
dr = ds36.ProfiloRischio.NewRow();
|
||
dr["Descrizione"] = "VaR massimo";
|
||
dr["Valore"] = dt.Rows[0]["varMassimo"].ToString();
|
||
ds36.ProfiloRischio.Rows.Add(dr);
|
||
|
||
// Data Ultimo Aggiornamento
|
||
dr = ds36.ProfiloRischio.NewRow();
|
||
// FC 09062015
|
||
// Aggiornamneto Label Descrizione
|
||
// New Label Da inserire
|
||
dr["Descrizione"] = "Data inizio validit<69> profilo";
|
||
//dr["Descrizione"] = "Ultimo aggiornamento questionario";
|
||
|
||
|
||
// #region TroncamentoData
|
||
// const char Space = ' ';
|
||
// const char Comma = ',';
|
||
|
||
// char[] delimiters = new char[]
|
||
//{
|
||
// Space,
|
||
// Comma
|
||
//};
|
||
// string str = dataSectionParameter.DatiComuni.Tables["QUESTIONARIOCLIENTE"].Rows[0]["dataInizioValidita"].ToString();
|
||
// string[] strn = str.Split(delimiters);
|
||
// str = strn[0];
|
||
// #endregion
|
||
|
||
dr["Valore"] = dt.Rows[0]["dataInizioValidita"].ToString();
|
||
ds36.ProfiloRischio.Rows.Add(dr);
|
||
}
|
||
#endregion
|
||
|
||
dsr.DatiSezione = ds36;
|
||
|
||
dsr.Esito = ds36.ProfiloRischio.Rows.Count;
|
||
return dsr;
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
throw ex;
|
||
}
|
||
}
|
||
#endregion
|
||
} |