private TheSite.StampaRapportiPDF.Schemixsd.DatasetReport riempiDatasetDownload()
        {
            AgganciaDatalayer    io_db         = new AgganciaDatalayer();
            S_ControlsCollection clDatiRicerca = new S_ControlsCollection();


            S_Object Cursor = new S_Object();

            Cursor.ParameterName = "RSCursor";
            Cursor.DbType        = CustomDBType.Cursor;
            Cursor.Direction     = ParameterDirection.Output;
            Cursor.Index         = 0;
            clDatiRicerca.Add(Cursor);


            io_db.NameProcedureDb = "rapportipdf.get_Download_Reports";
            DataSet dsDatiRicerca = io_db.GetData(clDatiRicerca).Copy();

            TheSite.StampaRapportiPDF.Schemixsd.DatasetReport DsTipizzato = new TheSite.StampaRapportiPDF.Schemixsd.DatasetReport();
            int i = 0;

            for (i = 0; i <= dsDatiRicerca.Tables[0].Rows.Count - 1; i++)
            {
                DsTipizzato.Tables["DownloadFile"].ImportRow(dsDatiRicerca.Tables[0].Rows[i]);
            }

            if (i == 0)
            {
            }
            return(DsTipizzato);
        }
 private void riempiSchedaDettaglio(TheSite.StampaRapportiPDF.Schemixsd.DatasetReport ds)
 {
     lblDataDiCreazione.Text           = ds.Tables["DownloadFile"].Rows[0]["data_created"].ToString();
     lblTipologiaReport.Text           = ds.Tables["DownloadFile"].Rows[0]["tipologia_report"].ToString();
     lblEdificio.Text                  = ds.Tables["DownloadFile"].Rows[0]["edificio"].ToString();
     lblComune.Text                    = ds.Tables["DownloadFile"].Rows[0]["comune"].ToString();
     lblDitta.Text                     = ds.Tables["DownloadFile"].Rows[0]["ditta"].ToString();
     lblCategoria.Text                 = ds.Tables["DownloadFile"].Rows[0]["categoria"].ToString();
     lblAddetto.Text                   = ds.Tables["DownloadFile"].Rows[0]["addetto"].ToString();
     lblSoloNonCompletate.Text         = ds.Tables["DownloadFile"].Rows[0]["solo_non_completate"].ToString();
     lblSoloCompletate.Text            = ds.Tables["DownloadFile"].Rows[0]["solo_completate"].ToString();
     lblSoloCompletateConFiltro.Text   = ds.Tables["DownloadFile"].Rows[0]["data_di_completamento"].ToString();
     lblDimensioneFilePdf.Text         = ds.Tables["DownloadFile"].Rows[0]["dimensione_file"].ToString();
     lblDimensioneFileZip.Text         = ds.Tables["DownloadFile"].Rows[0]["dimensione_file_zip"].ToString();
     lblDataAssegnazioneIniziale.Text  = ds.Tables["DownloadFile"].Rows[0]["data_assegnazione_init"].ToString();
     lblDataAssegnazioneFinale.Text    = ds.Tables["DownloadFile"].Rows[0]["data_assegnazione_end"].ToString();
     lblDataCompletamentoIniziale.Text = ds.Tables["DownloadFile"].Rows[0]["data_completamento_init"].ToString();
     lblDataCompletamentoFinale.Text   = ds.Tables["DownloadFile"].Rows[0]["data_completamento_end"].ToString();
 }