diff --git a/CMS-SC-Data/DS_Applicazione.cs b/CMS-SC-Data/DS_Applicazione.cs new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/CMS-SC-Data/DS_Applicazione.cs @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/CMS-SC-Data/app.config b/CMS-SC-Data/app.config index fbc492e..f2b3755 100644 --- a/CMS-SC-Data/app.config +++ b/CMS-SC-Data/app.config @@ -1,8 +1,49 @@ - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt index 8cf1d62..87b4f8a 100644 --- a/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt +++ b/CMS-SC-Data/obj/Debug/CMS-SC-Data.csproj.FileListAbsolute.txt @@ -121,3 +121,6 @@ C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Deb C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\DnsClient.xml C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\Snappy.NET.xml C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\Crc32C.NET.xml +C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\PdfSharp.dll +C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\PdfSharp.xml +C:\Users\samuele.steamw\Documents\VisualStudioProject\CMS-SC\CMS-SC-Data\bin\Debug\de\PdfSharp.resources.dll diff --git a/CMS-SC-Data/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/CMS-SC-Data/obj/Debug/DesignTimeResolveAssemblyReferences.cache index dc34632..2550a98 100644 Binary files a/CMS-SC-Data/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/CMS-SC-Data/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/CMS_SC/CMS_SC.csproj b/CMS_SC/CMS_SC.csproj index 7508ad0..706a6a8 100644 --- a/CMS_SC/CMS_SC.csproj +++ b/CMS_SC/CMS_SC.csproj @@ -551,6 +551,7 @@ + Web.config diff --git a/CMS_SC/ReportCompleto.aspx b/CMS_SC/ReportCompleto.aspx index ce991e0..5d8e82f 100644 --- a/CMS_SC/ReportCompleto.aspx +++ b/CMS_SC/ReportCompleto.aspx @@ -14,6 +14,7 @@

<%: traduci("ReportCompleto") %>

+ <%: traduci("ReportCompletoAllegati") %>
Fase diff --git a/CMS_SC/ReportCompleto.aspx.cs b/CMS_SC/ReportCompleto.aspx.cs index 0243374..6d34971 100644 --- a/CMS_SC/ReportCompleto.aspx.cs +++ b/CMS_SC/ReportCompleto.aspx.cs @@ -12,17 +12,33 @@ namespace CMS_SC { ddlFase.DataBind(); ddlLingue.DataBind(); - hfIdxDossier.Value = memLayer.ML.QSS("IdxDossier"); + idxDossier = memLayer.ML.QSS("IdxDossier"); // se c'è seleziono fase... - ddlFase.SelectedValue= memLayer.ML.QSS("Fase"); + ddlFase.SelectedValue = memLayer.ML.QSS("Fase"); // fix x revisione... ddlRev.DataBind(); + // fix x button download + lbtExportWithAttach.DataBind(); //mod_reportCompleto.Fase = ddlFase.SelectedValue; //mod_reportCompleto.Lingua = ddlLingue.SelectedValue; fixSelReport(); } } /// + /// Valore dossier salvato nell'hidden input + /// + string idxDossier + { + get + { + return hfIdxDossier.Value; + } + set + { + hfIdxDossier.Value = value; + } + } + /// /// wrapper traduzione /// /// @@ -76,5 +92,24 @@ namespace CMS_SC mod_reportCompleto.Lingua = ddlLingue.SelectedValue; mod_reportCompleto.fixReport(); } + + protected void lbtExportWithAttach_Click(object sender, EventArgs e) + { + // effettua merge Report Completo + allegati + + // step 1: genera directory lavoro + string currPath = $"\\tmp\\{idxDossier}"; + fileMover.obj.setDirectoryMapPath(currPath); + fileMover.obj.checkDir(); + // step 2: esporta pdf collaudo in dir temporanea + + // step 3: colleziona allegati schede e li copia in locale + + // step 4: MERGE di tutti i pdf nell'output + + // step 5 cancellazione documenti collezionati + + // step 6: rimanda a pagina x download nuovo file composto... + } } } \ No newline at end of file diff --git a/CMS_SC/ReportCompleto.aspx.designer.cs b/CMS_SC/ReportCompleto.aspx.designer.cs index 6d478e6..59ec6ce 100644 --- a/CMS_SC/ReportCompleto.aspx.designer.cs +++ b/CMS_SC/ReportCompleto.aspx.designer.cs @@ -7,81 +7,92 @@ // //------------------------------------------------------------------------------ -namespace CMS_SC { - - - public partial class ReportCompleto { - - /// - /// Controllo hfIdxDossier. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.HiddenField hfIdxDossier; - - /// - /// Controllo ddlFase. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlFase; - - /// - /// Controllo odsFase. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsFase; - - /// - /// Controllo ddlRev. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlRev; - - /// - /// Controllo odsRev. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsRev; - - /// - /// Controllo ddlLingue. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.DropDownList ddlLingue; - - /// - /// Controllo odsLingue. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::System.Web.UI.WebControls.ObjectDataSource odsLingue; - - /// - /// Controllo mod_reportCompleto. - /// - /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. - /// - protected global::CMS_SC.WebUserControls.mod_reportCompleto mod_reportCompleto; - } +namespace CMS_SC +{ + + + public partial class ReportCompleto + { + + /// + /// Controllo hfIdxDossier. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.HiddenField hfIdxDossier; + + /// + /// Controllo lbtExportWithAttach. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.LinkButton lbtExportWithAttach; + + /// + /// Controllo ddlFase. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlFase; + + /// + /// Controllo odsFase. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsFase; + + /// + /// Controllo ddlRev. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlRev; + + /// + /// Controllo odsRev. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsRev; + + /// + /// Controllo ddlLingue. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.DropDownList ddlLingue; + + /// + /// Controllo odsLingue. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::System.Web.UI.WebControls.ObjectDataSource odsLingue; + + /// + /// Controllo mod_reportCompleto. + /// + /// + /// Campo generato automaticamente. + /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// + protected global::CMS_SC.WebUserControls.mod_reportCompleto mod_reportCompleto; + } } diff --git a/CMS_SC/tmp/.PlaceHolder.file b/CMS_SC/tmp/.PlaceHolder.file new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/CMS_SC/tmp/.PlaceHolder.file @@ -0,0 +1 @@ + \ No newline at end of file