diff --git a/CMS-SC-Data/CMS-SC-Data.csproj b/CMS-SC-Data/CMS-SC-Data.csproj
index 0ac297f..3dc6e14 100644
--- a/CMS-SC-Data/CMS-SC-Data.csproj
+++ b/CMS-SC-Data/CMS-SC-Data.csproj
@@ -50,6 +50,9 @@
+
+ DS_Applicazione.xsd
+
True
True
diff --git a/CMS-SC-Data/DS_Applicazione.Designer.cs b/CMS-SC-Data/DS_Applicazione.Designer.cs
index c1ea8b6..cf99b82 100644
--- a/CMS-SC-Data/DS_Applicazione.Designer.cs
+++ b/CMS-SC-Data/DS_Applicazione.Designer.cs
@@ -11446,7 +11446,7 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagSchede";
@@ -11466,27 +11466,33 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSchedaVers", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
- this._commandCollection[3].CommandText = "dbo.stp_ASC_InsertQuery";
+ this._commandCollection[3].CommandText = "dbo.stp_ASC_getByDossier";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
- this._commandCollection[4].CommandText = "dbo.stp_ASC_UpdateQuery";
+ this._commandCollection[4].CommandText = "dbo.stp_ASC_InsertQuery";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodVisib", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[5].Connection = this.Connection;
+ this._commandCollection[5].CommandText = "dbo.stp_ASC_UpdateQuery";
+ this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodVisib", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -11530,6 +11536,23 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.AnagSchedeDataTable getByDossier(global::System.Nullable IdxDossier) {
+ this.Adapter.SelectCommand = this.CommandCollection[3];
+ if ((IdxDossier.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxDossier.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ DS_Applicazione.AnagSchedeDataTable dataTable = new DS_Applicazione.AnagSchedeDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -11770,7 +11793,7 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)]
public virtual int insertQuery(string CodScheda, global::System.Nullable Vers, string Descrizione, string Path, string FasiEnab) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((CodScheda == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -11823,7 +11846,7 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int updateQuery(string CodScheda, global::System.Nullable Vers, string Descrizione, string Path, string FasiEnab, string CodVisib, string Original_CodScheda, global::System.Nullable Original_Vers) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((CodScheda == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/CMS-SC-Data/DS_Applicazione.cs b/CMS-SC-Data/DS_Applicazione.cs
index 5f28270..34bbe4c 100644
--- a/CMS-SC-Data/DS_Applicazione.cs
+++ b/CMS-SC-Data/DS_Applicazione.cs
@@ -1 +1,15 @@
-
\ No newline at end of file
+namespace CMS_SC_Data
+{
+
+
+ partial class DS_Applicazione
+ {
+ }
+}
+
+namespace CMS_SC_Data.DS_ApplicazioneTableAdapters {
+
+
+ public partial class SchemaCollFamMaccTableAdapter {
+ }
+}
diff --git a/CMS-SC-Data/DS_Applicazione.xsd b/CMS-SC-Data/DS_Applicazione.xsd
index 75c9dea..8d53031 100644
--- a/CMS-SC-Data/DS_Applicazione.xsd
+++ b/CMS-SC-Data/DS_Applicazione.xsd
@@ -318,6 +318,17 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
+
+
+
+ dbo.stp_ASC_getByDossier
+
+
+
+
+
+
+
@@ -1570,7 +1581,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1591,7 +1602,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1629,7 +1640,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1649,7 +1660,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1691,7 +1702,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1740,7 +1751,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1765,7 +1776,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1823,7 +1834,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1870,7 +1881,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -1908,7 +1919,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2003,7 +2014,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2140,7 +2151,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2160,7 +2171,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2180,7 +2191,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2207,7 +2218,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2264,7 +2275,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
+
@@ -2360,16 +2371,16 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll b/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll
index df1ab21..2076f53 100644
Binary files a/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll and b/CMS-SC-Data/obj/Debug/TempPE/DS_Applicazione.Designer.cs.dll differ
diff --git a/CMS_SC/Files/Schede/Cg0005-0.pdf b/CMS_SC/Files/Schede/Cg0005-0.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0005-0.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0216-1.pdf b/CMS_SC/Files/Schede/Cg0216-1.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0216-1.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0266-4.pdf b/CMS_SC/Files/Schede/Cg0266-4.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0266-4.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0320-3.pdf b/CMS_SC/Files/Schede/Cg0320-3.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0320-3.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0330-7.pdf b/CMS_SC/Files/Schede/Cg0330-7.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0330-7.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0340-8.pdf b/CMS_SC/Files/Schede/Cg0340-8.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0340-8.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg0500-2.pdf b/CMS_SC/Files/Schede/Cg0500-2.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg0500-2.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1000-7.pdf b/CMS_SC/Files/Schede/Cg1000-7.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1000-7.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1002-10.pdf b/CMS_SC/Files/Schede/Cg1002-10.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1002-10.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1116-0.pdf b/CMS_SC/Files/Schede/Cg1116-0.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1116-0.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1120-8.pdf b/CMS_SC/Files/Schede/Cg1120-8.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1120-8.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1121-6.pdf b/CMS_SC/Files/Schede/Cg1121-6.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1121-6.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1122-4.pdf b/CMS_SC/Files/Schede/Cg1122-4.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1122-4.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1130-6.pdf b/CMS_SC/Files/Schede/Cg1130-6.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1130-6.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1140-6.pdf b/CMS_SC/Files/Schede/Cg1140-6.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1140-6.pdf differ
diff --git a/CMS_SC/Files/Schede/Cg1141-8.pdf b/CMS_SC/Files/Schede/Cg1141-8.pdf
new file mode 100644
index 0000000..68a8040
Binary files /dev/null and b/CMS_SC/Files/Schede/Cg1141-8.pdf differ
diff --git a/CMS_SC/ReportCompleto.aspx.cs b/CMS_SC/ReportCompleto.aspx.cs
index 6d34971..492747c 100644
--- a/CMS_SC/ReportCompleto.aspx.cs
+++ b/CMS_SC/ReportCompleto.aspx.cs
@@ -1,5 +1,7 @@
-using SteamWare;
+using CMS_SC_Data;
+using SteamWare;
using System;
+using System.Collections.Generic;
using System.Web.UI;
namespace CMS_SC
@@ -12,7 +14,10 @@ namespace CMS_SC
{
ddlFase.DataBind();
ddlLingue.DataBind();
- idxDossier = memLayer.ML.QSS("IdxDossier");
+ string _idxDossier = memLayer.ML.QSS("IdxDossier");
+ int idxReq = 0;
+ int.TryParse(_idxDossier, out idxReq);
+ idxDossier = idxReq;
// se c'è seleziono fase...
ddlFase.SelectedValue = memLayer.ML.QSS("Fase");
// fix x revisione...
@@ -27,15 +32,17 @@ namespace CMS_SC
///
/// Valore dossier salvato nell'hidden input
///
- string idxDossier
+ protected int idxDossier
{
get
{
- return hfIdxDossier.Value;
+ int answ = 0;
+ int.TryParse(hfIdxDossier.Value, out answ);
+ return answ;
}
set
{
- hfIdxDossier.Value = value;
+ hfIdxDossier.Value = value.ToString();
}
}
///
@@ -98,18 +105,33 @@ namespace CMS_SC
// effettua merge Report Completo + allegati
// step 1: genera directory lavoro
- string currPath = $"\\tmp\\{idxDossier}";
- fileMover.obj.setDirectoryMapPath(currPath);
+ string currOutPath = $"\\tmp\\{idxDossier}";
+ fileMover.obj.setDirectoryMapPath(currOutPath);
fileMover.obj.checkDir();
- // step 2: esporta pdf collaudo in dir temporanea
+ // 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 elencoPdf = new List();
+ foreach (var item in tabDati)
+ {
+ pdfInFullPath = "";
+ if (!elencoPdf.Contains(item.Path))
+ {
+ pdfInFullPath = Server.MapPath(string.Format(urlSchede, item.Path));
+ elencoPdf.Add(pdfInFullPath);
+ }
+ }
// 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...
+
}
}
}
\ No newline at end of file