using System; using System.Collections.Generic; using System.Text; using System.Globalization; using PDFGenerator.Presentation.Section; using PDFGenerator.BusinessLayer.DataSection; using System.Data; using DataAccessLayer; using System.Data.SqlClient; using System.Data.Common; namespace PDFGenerator.BusinessLayer { public class DataThread : DataThreadModel { public DataThread(DBProvider dbProvider) { Agente = ""; Area = ""; AreaEstesa = ""; CapAgente = ""; CittaAgente = ""; CodiceFiscale = ""; CognomeAgente = ""; CognomeCliente = ""; IndirizzoAgente = ""; Intermediario = ""; NomeAgente = ""; NomeCliente = ""; NomeRete = ""; Rete = ""; TelefonoAgente = ""; TipoReport = ""; ReportsType = new List(); DocumentPDF = null; Data = null; SezioneReport = null; VaRRisorseNonAssociate = 0; CoperturaRisorseNonAssociate = 0; PatrimonioTerziContoCorrente = 0; DataAccess = new DataAccessDE(dbProvider); } public ReportType ReportType() { return ReportsType.Find( delegate (ReportType r) { return r.Descrizione.ToUpper() == TipoReport.ToUpper(); } ); } public DataTable getDataTable(string tableName) { //sp_getColors return new DataTable(); } } }