Inserito log delel richieste stampa full
This commit is contained in:
@@ -27,8 +27,17 @@ namespace CMS_SC
|
||||
//mod_reportCompleto.Fase = ddlFase.SelectedValue;
|
||||
//mod_reportCompleto.Lingua = ddlLingue.SelectedValue;
|
||||
fixSelReport();
|
||||
fixFullReportVisibility();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Controllo visibilità button full report: SOLO SE utente ha permesso...
|
||||
/// </summary>
|
||||
private void fixFullReportVisibility()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Valore dossier salvato nell'hidden input
|
||||
/// </summary>
|
||||
@@ -102,36 +111,38 @@ namespace CMS_SC
|
||||
|
||||
protected void lbtExportWithAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
// effettua merge Report Completo + allegati
|
||||
|
||||
// step 1: genera directory lavoro
|
||||
string currOutPath = $"\\tmp\\{idxDossier}";
|
||||
fileMover.obj.setDirectoryMapPath(currOutPath);
|
||||
fileMover.obj.checkDir();
|
||||
// path scehde!
|
||||
string urlSchede = memLayer.ML.CRS("urlSchede");
|
||||
string pdfInFullPath = "";
|
||||
// step 2: esporta pdf collaudo in dir temporanea !!!FARE!!!
|
||||
|
||||
// step 3: colleziona allegati schede e li copia in locale
|
||||
var tabDati = DtProxy.man.taASC.getByDossier(idxDossier);
|
||||
List<string> elencoPdf = new List<string>();
|
||||
foreach (var item in tabDati)
|
||||
// effettua merge Report Completo + allegati: registro in primis la richiesta!
|
||||
var tabDoss = DtProxy.man.taED.getByDossier(idxDossier);
|
||||
if (tabDoss.Count > 0)
|
||||
{
|
||||
pdfInFullPath = "";
|
||||
if (!elencoPdf.Contains(item.Path))
|
||||
var currDoss = tabDoss[0];
|
||||
DtProxy.man.taFRGL.insertQuery(OpAuth.currAuth.email, idxDossier, DateTime.Now, currDoss.Matricola, currDoss.FaseAct, currDoss.RevAct);
|
||||
// step 1: genera directory lavoro
|
||||
string currOutPath = $"\\tmp\\{idxDossier}";
|
||||
fileMover.obj.setDirectoryMapPath(currOutPath);
|
||||
fileMover.obj.checkDir();
|
||||
// path scehde!
|
||||
string urlSchede = memLayer.ML.CRS("urlSchede");
|
||||
string pdfInFullPath = "";
|
||||
List<string> elencoPdf = new List<string>();
|
||||
// step 2: esporta pdf collaudo in dir temporanea come PRIMO file !!!FARE!!!
|
||||
|
||||
// step 3: colleziona allegati schede e li copia in locale
|
||||
var tabDati = DtProxy.man.taASC.getByDossier(idxDossier);
|
||||
foreach (var item in tabDati)
|
||||
{
|
||||
pdfInFullPath = Server.MapPath(string.Format(urlSchede, item.Path));
|
||||
elencoPdf.Add(pdfInFullPath);
|
||||
pdfInFullPath = "";
|
||||
if (!elencoPdf.Contains(item.Path))
|
||||
{
|
||||
pdfInFullPath = Server.MapPath(string.Format(urlSchede, item.Path));
|
||||
elencoPdf.Add(pdfInFullPath);
|
||||
}
|
||||
}
|
||||
// step 4: MERGE di tutti i pdf nel file di output
|
||||
string outFile = $"{Server.MapPath(currOutPath)}\\ReportFull_{idxDossier}.pdf";
|
||||
pdfUtils.mergePdfFiles(outFile, elencoPdf);
|
||||
// step 5: rimanda a pagina x download nuovo file composto...
|
||||
}
|
||||
// step 4: MERGE di tutti i pdf nell'output
|
||||
string outFile = $"{Server.MapPath(currOutPath)}\\FULL_{idxDossier}.pdf";
|
||||
pdfUtils.mergePdfFiles(outFile, elencoPdf);
|
||||
// step 5 cancellazione documenti collezionati
|
||||
|
||||
// step 6: rimanda a pagina x download nuovo file composto...
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user