diff --git a/ETS-WS/ETS-WS.suo b/ETS-WS/ETS-WS.suo
index c2dc58c..d90ce9b 100644
Binary files a/ETS-WS/ETS-WS.suo and b/ETS-WS/ETS-WS.suo differ
diff --git a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs
index 0be44d2..ec71dfb 100644
--- a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs
+++ b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using ETS_Data;
namespace ETS_WS
{
@@ -15,6 +16,16 @@ namespace ETS_WS
{
}
mod_filtroRicerca1.eh_reqSearch += new EventHandler(mod_filtroRicerca1_eh_reqSearch);
+ mod_filtroRicerca1.eh_pageResize += new EventHandler(mod_filtroRicerca1_eh_pageResize);
+ }
+ ///
+ /// aggiornamento page size
+ ///
+ ///
+ ///
+ void mod_filtroRicerca1_eh_pageResize(object sender, EventArgs e)
+ {
+ mod_archivioDocumenti1.pageSize = utils.obj.IntSessionObj("srcPageSize");
}
///
/// chiesta update x aggiornamento criteri ricerca
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs
index eda0cbe..a01aacc 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs
@@ -114,21 +114,11 @@ namespace ETS_WS.WebUserControls
}
return answ;
}
- ///
- /// dimensione pagina richiesta
- ///
public int pageSize
{
- get
+ set
{
- int answ = 15;
- try
- {
- answ = utils.obj.IntSessionObj("srcPageSize");
- }
- catch
- { }
- return answ;
+ grView.PageSize = value;
}
}
///
@@ -136,7 +126,6 @@ namespace ETS_WS.WebUserControls
///
public void doUpdate()
{
- grView.PageSize = pageSize;
grView.DataBind();
}
}
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx
index fd9f846..d061593 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx
@@ -55,10 +55,10 @@
-
-
-
-
+
+
+
+
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs
index 9bf1295..9ae260c 100644
--- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs
+++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs
@@ -15,6 +15,10 @@ namespace ETS_WS.WebUserControls
///
public event EventHandler eh_reqSearch;
///
+ /// evento richiesta update page size
+ ///
+ public event EventHandler eh_pageResize;
+ ///
/// caricamento pagina
///
///
@@ -208,9 +212,9 @@ namespace ETS_WS.WebUserControls
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
utils.obj.setSessionVal("srcPageSize", ddlPageSize.SelectedValue);
- if (eh_reqSearch != null)
+ if (eh_pageResize != null)
{
- eh_reqSearch(this, new EventArgs());
+ eh_pageResize(this, new EventArgs());
}
}
}
diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll
index a98cb7f..b908b44 100644
Binary files a/ETS-WS/ETS-WS/bin/ETS-WS.dll and b/ETS-WS/ETS-WS/bin/ETS-WS.dll differ
diff --git a/ETS-WS/ETS-WS/bin/ETS_Data.dll b/ETS-WS/ETS-WS/bin/ETS_Data.dll
index c239779..f0328de 100644
Binary files a/ETS-WS/ETS-WS/bin/ETS_Data.dll and b/ETS-WS/ETS-WS/bin/ETS_Data.dll differ
diff --git a/ETS_Data/DS_WebScip.Designer.cs b/ETS_Data/DS_WebScip.Designer.cs
index 791a097..8489c3e 100644
--- a/ETS_Data/DS_WebScip.Designer.cs
+++ b/ETS_Data/DS_WebScip.Designer.cs
@@ -756,6 +756,8 @@ namespace ETS_Data {
private global::System.Data.DataColumn columnDataDoc;
+ private global::System.Data.DataColumn columnCommessa;
+
private global::System.Data.DataColumn columnNumeroCommessa;
private global::System.Data.DataColumn columnAnnoCommessa;
@@ -792,8 +794,6 @@ namespace ETS_Data {
private global::System.Data.DataColumn columnNum_Fattura;
- private global::System.Data.DataColumn columnCommessa;
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public tbDocumentiDataTable() {
@@ -899,6 +899,14 @@ namespace ETS_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CommessaColumn {
+ get {
+ return this.columnCommessa;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn NumeroCommessaColumn {
@@ -1043,14 +1051,6 @@ namespace ETS_Data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public global::System.Data.DataColumn CommessaColumn {
- get {
- return this.columnCommessa;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -1097,6 +1097,7 @@ namespace ETS_Data {
int Anno,
System.DateTime DataRic,
System.DateTime DataDoc,
+ string Commessa,
string NumeroCommessa,
string AnnoCommessa,
string Fase,
@@ -1114,8 +1115,7 @@ namespace ETS_Data {
string LegUtente,
string NoteSystemManager,
int Spunta,
- string Num_Fattura,
- string Commessa) {
+ string Num_Fattura) {
tbDocumentiRow rowtbDocumentiRow = ((tbDocumentiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -1127,6 +1127,7 @@ namespace ETS_Data {
Anno,
DataRic,
DataDoc,
+ Commessa,
NumeroCommessa,
AnnoCommessa,
Fase,
@@ -1144,8 +1145,7 @@ namespace ETS_Data {
LegUtente,
NoteSystemManager,
Spunta,
- Num_Fattura,
- Commessa};
+ Num_Fattura};
rowtbDocumentiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowtbDocumentiRow);
return rowtbDocumentiRow;
@@ -1184,6 +1184,7 @@ namespace ETS_Data {
this.columnAnno = base.Columns["Anno"];
this.columnDataRic = base.Columns["DataRic"];
this.columnDataDoc = base.Columns["DataDoc"];
+ this.columnCommessa = base.Columns["Commessa"];
this.columnNumeroCommessa = base.Columns["NumeroCommessa"];
this.columnAnnoCommessa = base.Columns["AnnoCommessa"];
this.columnFase = base.Columns["Fase"];
@@ -1202,7 +1203,6 @@ namespace ETS_Data {
this.columnNoteSystemManager = base.Columns["NoteSystemManager"];
this.columnSpunta = base.Columns["Spunta"];
this.columnNum_Fattura = base.Columns["Num_Fattura"];
- this.columnCommessa = base.Columns["Commessa"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1226,6 +1226,8 @@ namespace ETS_Data {
base.Columns.Add(this.columnDataRic);
this.columnDataDoc = new global::System.Data.DataColumn("DataDoc", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDataDoc);
+ this.columnCommessa = new global::System.Data.DataColumn("Commessa", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCommessa);
this.columnNumeroCommessa = new global::System.Data.DataColumn("NumeroCommessa", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumeroCommessa);
this.columnAnnoCommessa = new global::System.Data.DataColumn("AnnoCommessa", typeof(string), null, global::System.Data.MappingType.Element);
@@ -1262,8 +1264,6 @@ namespace ETS_Data {
base.Columns.Add(this.columnSpunta);
this.columnNum_Fattura = new global::System.Data.DataColumn("Num_Fattura", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNum_Fattura);
- this.columnCommessa = new global::System.Data.DataColumn("Commessa", typeof(string), null, global::System.Data.MappingType.Element);
- base.Columns.Add(this.columnCommessa);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidxFile}, true));
this.columnidxFile.AutoIncrement = true;
@@ -1278,9 +1278,11 @@ namespace ETS_Data {
this.columnfullPath.MaxLength = 500;
this.columnuserId.AllowDBNull = false;
this.columnuserId.MaxLength = 50;
+ this.columnCommessa.ReadOnly = true;
+ this.columnCommessa.MaxLength = 9;
this.columnNumeroCommessa.MaxLength = 4;
this.columnAnnoCommessa.MaxLength = 4;
- this.columnFase.MaxLength = 50;
+ this.columnFase.MaxLength = 250;
this.columnFonte.MaxLength = 100;
this.columnOggetto.MaxLength = 250;
this.columnInOut.MaxLength = 3;
@@ -1295,8 +1297,6 @@ namespace ETS_Data {
this.columnLegUtente.MaxLength = 25;
this.columnNoteSystemManager.MaxLength = 1073741823;
this.columnNum_Fattura.MaxLength = 50;
- this.columnCommessa.ReadOnly = true;
- this.columnCommessa.MaxLength = 260;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -1844,6 +1844,22 @@ namespace ETS_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string Commessa {
+ get {
+ try {
+ return ((string)(this[this.tabletbDocumenti.CommessaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'Commessa\' in table \'tbDocumenti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tabletbDocumenti.CommessaColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string NumeroCommessa {
@@ -2132,22 +2148,6 @@ namespace ETS_Data {
}
}
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public string Commessa {
- get {
- try {
- return ((string)(this[this.tabletbDocumenti.CommessaColumn]));
- }
- catch (global::System.InvalidCastException e) {
- throw new global::System.Data.StrongTypingException("The value for column \'Commessa\' in table \'tbDocumenti\' is DBNull.", e);
- }
- }
- set {
- this[this.tabletbDocumenti.CommessaColumn] = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsNrProtocolloNull() {
@@ -2208,6 +2208,18 @@ namespace ETS_Data {
this[this.tabletbDocumenti.DataDocColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool IsCommessaNull() {
+ return this.IsNull(this.tabletbDocumenti.CommessaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void SetCommessaNull() {
+ this[this.tabletbDocumenti.CommessaColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsNumeroCommessaNull() {
@@ -2423,18 +2435,6 @@ namespace ETS_Data {
public void SetNum_FatturaNull() {
this[this.tabletbDocumenti.Num_FatturaColumn] = global::System.Convert.DBNull;
}
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public bool IsCommessaNull() {
- return this.IsNull(this.tabletbDocumenti.CommessaColumn);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
- public void SetCommessaNull() {
- this[this.tabletbDocumenti.CommessaColumn] = global::System.Convert.DBNull;
- }
}
///
@@ -3343,6 +3343,7 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
tableMapping.ColumnMappings.Add("Anno", "Anno");
tableMapping.ColumnMappings.Add("DataRic", "DataRic");
tableMapping.ColumnMappings.Add("DataDoc", "DataDoc");
+ tableMapping.ColumnMappings.Add("Commessa", "Commessa");
tableMapping.ColumnMappings.Add("NumeroCommessa", "NumeroCommessa");
tableMapping.ColumnMappings.Add("AnnoCommessa", "AnnoCommessa");
tableMapping.ColumnMappings.Add("Fase", "Fase");
@@ -3361,8 +3362,232 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
tableMapping.ColumnMappings.Add("NoteSystemManager", "NoteSystemManager");
tableMapping.ColumnMappings.Add("Spunta", "Spunta");
tableMapping.ColumnMappings.Add("Num_Fattura", "Num_Fattura");
- tableMapping.ColumnMappings.Add("Commessa", "Commessa");
this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[tbDocumenti] WHERE (([idxFile] = @Original_idxFile) AND ([Nome" +
+ "] = @Original_Nome) AND ([fullPath] = @Original_fullPath) AND ([userId] = @Origi" +
+ "nal_userId) AND ((@IsNull_NrProtocollo = 1 AND [NrProtocollo] IS NULL) OR ([NrPr" +
+ "otocollo] = @Original_NrProtocollo)) AND ((@IsNull_Numero = 1 AND [Numero] IS NU" +
+ "LL) OR ([Numero] = @Original_Numero)) AND ((@IsNull_Anno = 1 AND [Anno] IS NULL)" +
+ " OR ([Anno] = @Original_Anno)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) " +
+ "OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS N" +
+ "ULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_Commessa = 1 AND [Commess" +
+ "a] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_NumeroCommessa =" +
+ " 1 AND [NumeroCommessa] IS NULL) OR ([NumeroCommessa] = @Original_NumeroCommessa" +
+ ")) AND ((@IsNull_AnnoCommessa = 1 AND [AnnoCommessa] IS NULL) OR ([AnnoCommessa]" +
+ " = @Original_AnnoCommessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase" +
+ "] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = " +
+ "@Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto]" +
+ " = @Original_Oggetto)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] " +
+ "= @Original_InOut)) AND ((@IsNull_Tipologia = 1 AND [Tipologia] IS NULL) OR ([Ti" +
+ "pologia] = @Original_Tipologia)) AND ((@IsNull_Riferimenti = 1 AND [Riferimenti]" +
+ " IS NULL) OR ([Riferimenti] = @Original_Riferimenti)) AND ((@IsNull_Attivita = 1" +
+ " AND [Attivita] IS NULL) OR ([Attivita] = @Original_Attivita)) AND ((@IsNull_Aut" +
+ "ore = 1 AND [Autore] IS NULL) OR ([Autore] = @Original_Autore)) AND ((@IsNull_SA" +
+ " = 1 AND [SA] IS NULL) OR ([SA] = @Original_SA)) AND ((@IsNull_Redattore = 1 AND" +
+ " [Redattore] IS NULL) OR ([Redattore] = @Original_Redattore)) AND ((@IsNull_SR =" +
+ " 1 AND [SR] IS NULL) OR ([SR] = @Original_SR)) AND ((@IsNull_LegUtente = 1 AND [" +
+ "LegUtente] IS NULL) OR ([LegUtente] = @Original_LegUtente)) AND ((@IsNull_Spunta" +
+ " = 1 AND [Spunta] IS NULL) OR ([Spunta] = @Original_Spunta)) AND ((@IsNull_Num_F" +
+ "attura = 1 AND [Num_Fattura] IS NULL) OR ([Num_Fattura] = @Original_Num_Fattura)" +
+ "))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFile", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFile", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fullPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fullPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataDoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Commessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumeroCommessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_AnnoCommessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fonte", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Oggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tipologia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tipologia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Riferimenti", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Riferimenti", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attivita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Autore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Autore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Redattore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Redattore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LegUtente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LegUtente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Num_Fattura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num_Fattura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.InsertCommand.Connection = this.Connection;
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbDocumenti] ([Nome], [fullPath], [userId], [NrProtocollo], [Numero], [Anno], [DataRic], [DataDoc], [NumeroCommessa], [AnnoCommessa], [Fase], [Fonte], [Oggetto], [InOut], [Tipologia], [Riferimenti], [Attivita], [Autore], [SA], [Redattore], [SR], [Annotazioni], [LegUtente], [NoteSystemManager], [Spunta], [Num_Fattura]) VALUES (@Nome, @fullPath, @userId, @NrProtocollo, @Numero, @Anno, @DataRic, @DataDoc, @NumeroCommessa, @AnnoCommessa, @Fase, @Fonte, @Oggetto, @InOut, @Tipologia, @Riferimenti, @Attivita, @Autore, @SA, @Redattore, @SR, @Annotazioni, @LegUtente, @NoteSystemManager, @Spunta, @Num_Fattura);
+SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM tbDocumenti WHERE (idxFile = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fullPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fullPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipologia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Riferimenti", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Autore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redattore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Annotazioni", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Annotazioni", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LegUtente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NoteSystemManager", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NoteSystemManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num_Fattura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.UpdateCommand.Connection = this.Connection;
+ this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[tbDocumenti] SET [Nome] = @Nome, [fullPath] = @fullPath, [userId] =" +
+ " @userId, [NrProtocollo] = @NrProtocollo, [Numero] = @Numero, [Anno] = @Anno, [D" +
+ "ataRic] = @DataRic, [DataDoc] = @DataDoc, [NumeroCommessa] = @NumeroCommessa, [A" +
+ "nnoCommessa] = @AnnoCommessa, [Fase] = @Fase, [Fonte] = @Fonte, [Oggetto] = @Ogg" +
+ "etto, [InOut] = @InOut, [Tipologia] = @Tipologia, [Riferimenti] = @Riferimenti, " +
+ "[Attivita] = @Attivita, [Autore] = @Autore, [SA] = @SA, [Redattore] = @Redattore" +
+ ", [SR] = @SR, [Annotazioni] = @Annotazioni, [LegUtente] = @LegUtente, [NoteSyste" +
+ "mManager] = @NoteSystemManager, [Spunta] = @Spunta, [Num_Fattura] = @Num_Fattura" +
+ " WHERE (([idxFile] = @Original_idxFile) AND ([Nome] = @Original_Nome) AND ([full" +
+ "Path] = @Original_fullPath) AND ([userId] = @Original_userId) AND ((@IsNull_NrPr" +
+ "otocollo = 1 AND [NrProtocollo] IS NULL) OR ([NrProtocollo] = @Original_NrProtoc" +
+ "ollo)) AND ((@IsNull_Numero = 1 AND [Numero] IS NULL) OR ([Numero] = @Original_N" +
+ "umero)) AND ((@IsNull_Anno = 1 AND [Anno] IS NULL) OR ([Anno] = @Original_Anno))" +
+ " AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_Data" +
+ "Ric)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original" +
+ "_DataDoc)) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @" +
+ "Original_Commessa)) AND ((@IsNull_NumeroCommessa = 1 AND [NumeroCommessa] IS NUL" +
+ "L) OR ([NumeroCommessa] = @Original_NumeroCommessa)) AND ((@IsNull_AnnoCommessa " +
+ "= 1 AND [AnnoCommessa] IS NULL) OR ([AnnoCommessa] = @Original_AnnoCommessa)) AN" +
+ "D ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@Is" +
+ "Null_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNul" +
+ "l_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@" +
+ "IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsN" +
+ "ull_Tipologia = 1 AND [Tipologia] IS NULL) OR ([Tipologia] = @Original_Tipologia" +
+ ")) AND ((@IsNull_Riferimenti = 1 AND [Riferimenti] IS NULL) OR ([Riferimenti] = " +
+ "@Original_Riferimenti)) AND ((@IsNull_Attivita = 1 AND [Attivita] IS NULL) OR ([" +
+ "Attivita] = @Original_Attivita)) AND ((@IsNull_Autore = 1 AND [Autore] IS NULL) " +
+ "OR ([Autore] = @Original_Autore)) AND ((@IsNull_SA = 1 AND [SA] IS NULL) OR ([SA" +
+ "] = @Original_SA)) AND ((@IsNull_Redattore = 1 AND [Redattore] IS NULL) OR ([Red" +
+ "attore] = @Original_Redattore)) AND ((@IsNull_SR = 1 AND [SR] IS NULL) OR ([SR] " +
+ "= @Original_SR)) AND ((@IsNull_LegUtente = 1 AND [LegUtente] IS NULL) OR ([LegUt" +
+ "ente] = @Original_LegUtente)) AND ((@IsNull_Spunta = 1 AND [Spunta] IS NULL) OR " +
+ "([Spunta] = @Original_Spunta)) AND ((@IsNull_Num_Fattura = 1 AND [Num_Fattura] I" +
+ "S NULL) OR ([Num_Fattura] = @Original_Num_Fattura)));\r\nSELECT idxFile, Nome, ful" +
+ "lPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCom" +
+ "messa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivi" +
+ "ta, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta" +
+ ", Num_Fattura FROM tbDocumenti WHERE (idxFile = @idxFile)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fullPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fullPath", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipologia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Riferimenti", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attivita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Autore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redattore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Annotazioni", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Annotazioni", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@LegUtente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NoteSystemManager", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NoteSystemManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Num_Fattura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxFile", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idxFile", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Nome", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Nome", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_fullPath", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "fullPath", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_userId", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "userId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NrProtocollo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NrProtocollo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Numero", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Numero", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Anno", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Anno", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataRic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataRic", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataRic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataDoc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataDoc", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataDoc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Commessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Commessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Commessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_NumeroCommessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NumeroCommessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_AnnoCommessa", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AnnoCommessa", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fase", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fase", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fase", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Fonte", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Fonte", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Fonte", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Oggetto", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Oggetto", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_InOut", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InOut", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InOut", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Tipologia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Tipologia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Tipologia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Riferimenti", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Riferimenti", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Riferimenti", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Attivita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Attivita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Attivita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Autore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Autore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Autore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SA", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SA", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SA", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Redattore", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Redattore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Redattore", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_SR", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SR", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SR", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_LegUtente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_LegUtente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "LegUtente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Spunta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Spunta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Num_Fattura", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Num_Fattura", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Num_Fattura", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFile", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idxFile", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3378,7 +3603,7 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT *\r\nFROM tbDocumenti";
+ this._commandCollection[0].CommandText = @"SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM dbo.tbDocumenti";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -3604,6 +3829,966 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_WebScip.tbDocumentiDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(DS_WebScip dataSet) {
+ return this.Adapter.Update(dataSet, "tbDocumenti");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(
+ int Original_idxFile,
+ string Original_Nome,
+ string Original_fullPath,
+ string Original_userId,
+ global::System.Nullable Original_NrProtocollo,
+ global::System.Nullable Original_Numero,
+ global::System.Nullable Original_Anno,
+ global::System.Nullable Original_DataRic,
+ global::System.Nullable Original_DataDoc,
+ string Original_Commessa,
+ string Original_NumeroCommessa,
+ string Original_AnnoCommessa,
+ string Original_Fase,
+ string Original_Fonte,
+ string Original_Oggetto,
+ string Original_InOut,
+ string Original_Tipologia,
+ string Original_Riferimenti,
+ string Original_Attivita,
+ string Original_Autore,
+ string Original_SA,
+ string Original_Redattore,
+ string Original_SR,
+ string Original_LegUtente,
+ global::System.Nullable Original_Spunta,
+ string Original_Num_Fattura) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idxFile));
+ if ((Original_Nome == null)) {
+ throw new global::System.ArgumentNullException("Original_Nome");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Nome));
+ }
+ if ((Original_fullPath == null)) {
+ throw new global::System.ArgumentNullException("Original_fullPath");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_fullPath));
+ }
+ if ((Original_userId == null)) {
+ throw new global::System.ArgumentNullException("Original_userId");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_userId));
+ }
+ if ((Original_NrProtocollo.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_NrProtocollo.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Numero.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_Numero.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Anno.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((int)(Original_Anno.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Original_DataRic.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((System.DateTime)(Original_DataRic.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ if ((Original_DataDoc.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((System.DateTime)(Original_DataDoc.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Commessa == null)) {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[15].Value = ((string)(Original_Commessa));
+ }
+ if ((Original_NumeroCommessa == null)) {
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[17].Value = ((string)(Original_NumeroCommessa));
+ }
+ if ((Original_AnnoCommessa == null)) {
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[19].Value = ((string)(Original_AnnoCommessa));
+ }
+ if ((Original_Fase == null)) {
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[21].Value = ((string)(Original_Fase));
+ }
+ if ((Original_Fonte == null)) {
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[23].Value = ((string)(Original_Fonte));
+ }
+ if ((Original_Oggetto == null)) {
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_Oggetto));
+ }
+ if ((Original_InOut == null)) {
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[27].Value = ((string)(Original_InOut));
+ }
+ if ((Original_Tipologia == null)) {
+ this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[29].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[29].Value = ((string)(Original_Tipologia));
+ }
+ if ((Original_Riferimenti == null)) {
+ this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[31].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[31].Value = ((string)(Original_Riferimenti));
+ }
+ if ((Original_Attivita == null)) {
+ this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[33].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[33].Value = ((string)(Original_Attivita));
+ }
+ if ((Original_Autore == null)) {
+ this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[35].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[34].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[35].Value = ((string)(Original_Autore));
+ }
+ if ((Original_SA == null)) {
+ this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[37].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[37].Value = ((string)(Original_SA));
+ }
+ if ((Original_Redattore == null)) {
+ this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[39].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[38].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[39].Value = ((string)(Original_Redattore));
+ }
+ if ((Original_SR == null)) {
+ this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[41].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[40].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[41].Value = ((string)(Original_SR));
+ }
+ if ((Original_LegUtente == null)) {
+ this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[43].Value = ((string)(Original_LegUtente));
+ }
+ if ((Original_Spunta.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[45].Value = ((int)(Original_Spunta.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Num_Fattura == null)) {
+ this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[46].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[47].Value = ((string)(Original_Num_Fattura));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(
+ string Nome,
+ string fullPath,
+ string userId,
+ global::System.Nullable NrProtocollo,
+ global::System.Nullable Numero,
+ global::System.Nullable Anno,
+ global::System.Nullable DataRic,
+ global::System.Nullable DataDoc,
+ string NumeroCommessa,
+ string AnnoCommessa,
+ string Fase,
+ string Fonte,
+ string Oggetto,
+ string InOut,
+ string Tipologia,
+ string Riferimenti,
+ string Attivita,
+ string Autore,
+ string SA,
+ string Redattore,
+ string SR,
+ string Annotazioni,
+ string LegUtente,
+ string NoteSystemManager,
+ global::System.Nullable Spunta,
+ string Num_Fattura) {
+ if ((Nome == null)) {
+ throw new global::System.ArgumentNullException("Nome");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Nome));
+ }
+ if ((fullPath == null)) {
+ throw new global::System.ArgumentNullException("fullPath");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(fullPath));
+ }
+ if ((userId == null)) {
+ throw new global::System.ArgumentNullException("userId");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(userId));
+ }
+ if ((NrProtocollo.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((int)(NrProtocollo.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Numero.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Numero.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Anno.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Anno.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((DataRic.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(DataRic.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((DataDoc.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(DataDoc.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((NumeroCommessa == null)) {
+ this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[8].Value = ((string)(NumeroCommessa));
+ }
+ if ((AnnoCommessa == null)) {
+ this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[9].Value = ((string)(AnnoCommessa));
+ }
+ if ((Fase == null)) {
+ this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Fase));
+ }
+ if ((Fonte == null)) {
+ this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Fonte));
+ }
+ if ((Oggetto == null)) {
+ this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Oggetto));
+ }
+ if ((InOut == null)) {
+ this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[13].Value = ((string)(InOut));
+ }
+ if ((Tipologia == null)) {
+ this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[14].Value = ((string)(Tipologia));
+ }
+ if ((Riferimenti == null)) {
+ this.Adapter.InsertCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[15].Value = ((string)(Riferimenti));
+ }
+ if ((Attivita == null)) {
+ this.Adapter.InsertCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[16].Value = ((string)(Attivita));
+ }
+ if ((Autore == null)) {
+ this.Adapter.InsertCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[17].Value = ((string)(Autore));
+ }
+ if ((SA == null)) {
+ this.Adapter.InsertCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[18].Value = ((string)(SA));
+ }
+ if ((Redattore == null)) {
+ this.Adapter.InsertCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[19].Value = ((string)(Redattore));
+ }
+ if ((SR == null)) {
+ this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[20].Value = ((string)(SR));
+ }
+ if ((Annotazioni == null)) {
+ this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[21].Value = ((string)(Annotazioni));
+ }
+ if ((LegUtente == null)) {
+ this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[22].Value = ((string)(LegUtente));
+ }
+ if ((NoteSystemManager == null)) {
+ this.Adapter.InsertCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[23].Value = ((string)(NoteSystemManager));
+ }
+ if ((Spunta.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[24].Value = ((int)(Spunta.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value;
+ }
+ if ((Num_Fattura == null)) {
+ this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[25].Value = ((string)(Num_Fattura));
+ }
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string Nome,
+ string fullPath,
+ string userId,
+ global::System.Nullable NrProtocollo,
+ global::System.Nullable Numero,
+ global::System.Nullable Anno,
+ global::System.Nullable DataRic,
+ global::System.Nullable DataDoc,
+ string NumeroCommessa,
+ string AnnoCommessa,
+ string Fase,
+ string Fonte,
+ string Oggetto,
+ string InOut,
+ string Tipologia,
+ string Riferimenti,
+ string Attivita,
+ string Autore,
+ string SA,
+ string Redattore,
+ string SR,
+ string Annotazioni,
+ string LegUtente,
+ string NoteSystemManager,
+ global::System.Nullable Spunta,
+ string Num_Fattura,
+ int Original_idxFile,
+ string Original_Nome,
+ string Original_fullPath,
+ string Original_userId,
+ global::System.Nullable Original_NrProtocollo,
+ global::System.Nullable Original_Numero,
+ global::System.Nullable Original_Anno,
+ global::System.Nullable Original_DataRic,
+ global::System.Nullable Original_DataDoc,
+ string Original_Commessa,
+ string Original_NumeroCommessa,
+ string Original_AnnoCommessa,
+ string Original_Fase,
+ string Original_Fonte,
+ string Original_Oggetto,
+ string Original_InOut,
+ string Original_Tipologia,
+ string Original_Riferimenti,
+ string Original_Attivita,
+ string Original_Autore,
+ string Original_SA,
+ string Original_Redattore,
+ string Original_SR,
+ string Original_LegUtente,
+ global::System.Nullable Original_Spunta,
+ string Original_Num_Fattura,
+ int idxFile) {
+ if ((Nome == null)) {
+ throw new global::System.ArgumentNullException("Nome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Nome));
+ }
+ if ((fullPath == null)) {
+ throw new global::System.ArgumentNullException("fullPath");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(fullPath));
+ }
+ if ((userId == null)) {
+ throw new global::System.ArgumentNullException("userId");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(userId));
+ }
+ if ((NrProtocollo.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(NrProtocollo.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Numero.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Numero.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Anno.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Anno.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ if ((DataRic.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(DataRic.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ if ((DataDoc.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((System.DateTime)(DataDoc.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ if ((NumeroCommessa == null)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(NumeroCommessa));
+ }
+ if ((AnnoCommessa == null)) {
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(AnnoCommessa));
+ }
+ if ((Fase == null)) {
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Fase));
+ }
+ if ((Fonte == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Fonte));
+ }
+ if ((Oggetto == null)) {
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Oggetto));
+ }
+ if ((InOut == null)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(InOut));
+ }
+ if ((Tipologia == null)) {
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Tipologia));
+ }
+ if ((Riferimenti == null)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Riferimenti));
+ }
+ if ((Attivita == null)) {
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Attivita));
+ }
+ if ((Autore == null)) {
+ this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Autore));
+ }
+ if ((SA == null)) {
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(SA));
+ }
+ if ((Redattore == null)) {
+ this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Redattore));
+ }
+ if ((SR == null)) {
+ this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(SR));
+ }
+ if ((Annotazioni == null)) {
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Annotazioni));
+ }
+ if ((LegUtente == null)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(LegUtente));
+ }
+ if ((NoteSystemManager == null)) {
+ this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(NoteSystemManager));
+ }
+ if ((Spunta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[24].Value = ((int)(Spunta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
+ }
+ if ((Num_Fattura == null)) {
+ this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Num_Fattura));
+ }
+ this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_idxFile));
+ if ((Original_Nome == null)) {
+ throw new global::System.ArgumentNullException("Original_Nome");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Nome));
+ }
+ if ((Original_fullPath == null)) {
+ throw new global::System.ArgumentNullException("Original_fullPath");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((string)(Original_fullPath));
+ }
+ if ((Original_userId == null)) {
+ throw new global::System.ArgumentNullException("Original_userId");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_userId));
+ }
+ if ((Original_NrProtocollo.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_NrProtocollo.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Numero.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_Numero.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Anno.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_Anno.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
+ }
+ if ((Original_DataRic.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(Original_DataRic.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
+ }
+ if ((Original_DataDoc.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_DataDoc.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Commessa == null)) {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_Commessa));
+ }
+ if ((Original_NumeroCommessa == null)) {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_NumeroCommessa));
+ }
+ if ((Original_AnnoCommessa == null)) {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_AnnoCommessa));
+ }
+ if ((Original_Fase == null)) {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[47].Value = ((string)(Original_Fase));
+ }
+ if ((Original_Fonte == null)) {
+ this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_Fonte));
+ }
+ if ((Original_Oggetto == null)) {
+ this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_Oggetto));
+ }
+ if ((Original_InOut == null)) {
+ this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_InOut));
+ }
+ if ((Original_Tipologia == null)) {
+ this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_Tipologia));
+ }
+ if ((Original_Riferimenti == null)) {
+ this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_Riferimenti));
+ }
+ if ((Original_Attivita == null)) {
+ this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[59].Value = ((string)(Original_Attivita));
+ }
+ if ((Original_Autore == null)) {
+ this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[61].Value = ((string)(Original_Autore));
+ }
+ if ((Original_SA == null)) {
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[63].Value = ((string)(Original_SA));
+ }
+ if ((Original_Redattore == null)) {
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[65].Value = ((string)(Original_Redattore));
+ }
+ if ((Original_SR == null)) {
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[67].Value = ((string)(Original_SR));
+ }
+ if ((Original_LegUtente == null)) {
+ this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[69].Value = ((string)(Original_LegUtente));
+ }
+ if ((Original_Spunta.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[71].Value = ((int)(Original_Spunta.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Num_Fattura == null)) {
+ this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[73].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[72].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[73].Value = ((string)(Original_Num_Fattura));
+ }
+ this.Adapter.UpdateCommand.Parameters[74].Value = ((int)(idxFile));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(
+ string Nome,
+ string fullPath,
+ string userId,
+ global::System.Nullable NrProtocollo,
+ global::System.Nullable Numero,
+ global::System.Nullable Anno,
+ global::System.Nullable DataRic,
+ global::System.Nullable DataDoc,
+ string NumeroCommessa,
+ string AnnoCommessa,
+ string Fase,
+ string Fonte,
+ string Oggetto,
+ string InOut,
+ string Tipologia,
+ string Riferimenti,
+ string Attivita,
+ string Autore,
+ string SA,
+ string Redattore,
+ string SR,
+ string Annotazioni,
+ string LegUtente,
+ string NoteSystemManager,
+ global::System.Nullable Spunta,
+ string Num_Fattura,
+ int Original_idxFile,
+ string Original_Nome,
+ string Original_fullPath,
+ string Original_userId,
+ global::System.Nullable Original_NrProtocollo,
+ global::System.Nullable Original_Numero,
+ global::System.Nullable Original_Anno,
+ global::System.Nullable Original_DataRic,
+ global::System.Nullable Original_DataDoc,
+ string Original_Commessa,
+ string Original_NumeroCommessa,
+ string Original_AnnoCommessa,
+ string Original_Fase,
+ string Original_Fonte,
+ string Original_Oggetto,
+ string Original_InOut,
+ string Original_Tipologia,
+ string Original_Riferimenti,
+ string Original_Attivita,
+ string Original_Autore,
+ string Original_SA,
+ string Original_Redattore,
+ string Original_SR,
+ string Original_LegUtente,
+ global::System.Nullable Original_Spunta,
+ string Original_Num_Fattura) {
+ return this.Update(Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura, Original_idxFile, Original_Nome, Original_fullPath, Original_userId, Original_NrProtocollo, Original_Numero, Original_Anno, Original_DataRic, Original_DataDoc, Original_Commessa, Original_NumeroCommessa, Original_AnnoCommessa, Original_Fase, Original_Fonte, Original_Oggetto, Original_InOut, Original_Tipologia, Original_Riferimenti, Original_Attivita, Original_Autore, Original_SA, Original_Redattore, Original_SR, Original_LegUtente, Original_Spunta, Original_Num_Fattura, Original_idxFile);
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
@@ -3807,6 +4992,8 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
private tmpFileUtTableAdapter _tmpFileUtTableAdapter;
+ private tbDocumentiTableAdapter _tbDocumentiTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -3836,6 +5023,20 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public tbDocumentiTableAdapter tbDocumentiTableAdapter {
+ get {
+ return this._tbDocumentiTableAdapter;
+ }
+ set {
+ this._tbDocumentiTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -3859,6 +5060,10 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
&& (this._tmpFileUtTableAdapter.Connection != null))) {
return this._tmpFileUtTableAdapter.Connection;
}
+ if (((this._tbDocumentiTableAdapter != null)
+ && (this._tbDocumentiTableAdapter.Connection != null))) {
+ return this._tbDocumentiTableAdapter.Connection;
+ }
return null;
}
set {
@@ -3875,6 +5080,9 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
if ((this._tmpFileUtTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._tbDocumentiTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -3895,6 +5103,15 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._tbDocumentiTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.tbDocumenti.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._tbDocumentiTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -3913,6 +5130,14 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._tbDocumentiTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.tbDocumenti.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._tbDocumentiTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -3923,6 +5148,14 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_WebScip dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._tbDocumentiTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.tbDocumenti.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._tbDocumentiTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -3975,6 +5208,11 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._tbDocumentiTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._tbDocumentiTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -4016,6 +5254,15 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
adaptersWithAcceptChangesDuringUpdate.Add(this._tmpFileUtTableAdapter.Adapter);
}
}
+ if ((this._tbDocumentiTableAdapter != null)) {
+ revertConnections.Add(this._tbDocumentiTableAdapter, this._tbDocumentiTableAdapter.Connection);
+ this._tbDocumentiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._tbDocumentiTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._tbDocumentiTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._tbDocumentiTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._tbDocumentiTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -4078,6 +5325,10 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
this._tmpFileUtTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tmpFileUtTableAdapter]));
this._tmpFileUtTableAdapter.Transaction = null;
}
+ if ((this._tbDocumentiTableAdapter != null)) {
+ this._tbDocumentiTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbDocumentiTableAdapter]));
+ this._tbDocumentiTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/ETS_Data/DS_WebScip.xsd b/ETS_Data/DS_WebScip.xsd
index 84aaec1..dc664ab 100644
--- a/ETS_Data/DS_WebScip.xsd
+++ b/ETS_Data/DS_WebScip.xsd
@@ -123,14 +123,185 @@ SELECT idxFile, tempName, fullName, userId, DataRic, DataDoc, NumeroCommessa, An
-
+
+
+
+ DELETE FROM [dbo].[tbDocumenti] WHERE (([idxFile] = @Original_idxFile) AND ([Nome] = @Original_Nome) AND ([fullPath] = @Original_fullPath) AND ([userId] = @Original_userId) AND ((@IsNull_NrProtocollo = 1 AND [NrProtocollo] IS NULL) OR ([NrProtocollo] = @Original_NrProtocollo)) AND ((@IsNull_Numero = 1 AND [Numero] IS NULL) OR ([Numero] = @Original_Numero)) AND ((@IsNull_Anno = 1 AND [Anno] IS NULL) OR ([Anno] = @Original_Anno)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_NumeroCommessa = 1 AND [NumeroCommessa] IS NULL) OR ([NumeroCommessa] = @Original_NumeroCommessa)) AND ((@IsNull_AnnoCommessa = 1 AND [AnnoCommessa] IS NULL) OR ([AnnoCommessa] = @Original_AnnoCommessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_Tipologia = 1 AND [Tipologia] IS NULL) OR ([Tipologia] = @Original_Tipologia)) AND ((@IsNull_Riferimenti = 1 AND [Riferimenti] IS NULL) OR ([Riferimenti] = @Original_Riferimenti)) AND ((@IsNull_Attivita = 1 AND [Attivita] IS NULL) OR ([Attivita] = @Original_Attivita)) AND ((@IsNull_Autore = 1 AND [Autore] IS NULL) OR ([Autore] = @Original_Autore)) AND ((@IsNull_SA = 1 AND [SA] IS NULL) OR ([SA] = @Original_SA)) AND ((@IsNull_Redattore = 1 AND [Redattore] IS NULL) OR ([Redattore] = @Original_Redattore)) AND ((@IsNull_SR = 1 AND [SR] IS NULL) OR ([SR] = @Original_SR)) AND ((@IsNull_LegUtente = 1 AND [LegUtente] IS NULL) OR ([LegUtente] = @Original_LegUtente)) AND ((@IsNull_Spunta = 1 AND [Spunta] IS NULL) OR ([Spunta] = @Original_Spunta)) AND ((@IsNull_Num_Fattura = 1 AND [Num_Fattura] IS NULL) OR ([Num_Fattura] = @Original_Num_Fattura)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[tbDocumenti] ([Nome], [fullPath], [userId], [NrProtocollo], [Numero], [Anno], [DataRic], [DataDoc], [NumeroCommessa], [AnnoCommessa], [Fase], [Fonte], [Oggetto], [InOut], [Tipologia], [Riferimenti], [Attivita], [Autore], [SA], [Redattore], [SR], [Annotazioni], [LegUtente], [NoteSystemManager], [Spunta], [Num_Fattura]) VALUES (@Nome, @fullPath, @userId, @NrProtocollo, @Numero, @Anno, @DataRic, @DataDoc, @NumeroCommessa, @AnnoCommessa, @Fase, @Fonte, @Oggetto, @InOut, @Tipologia, @Riferimenti, @Attivita, @Autore, @SA, @Redattore, @SR, @Annotazioni, @LegUtente, @NoteSystemManager, @Spunta, @Num_Fattura);
+SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM tbDocumenti WHERE (idxFile = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- SELECT *
-FROM tbDocumenti
+
+ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM dbo.tbDocumenti
+
+
+ UPDATE [dbo].[tbDocumenti] SET [Nome] = @Nome, [fullPath] = @fullPath, [userId] = @userId, [NrProtocollo] = @NrProtocollo, [Numero] = @Numero, [Anno] = @Anno, [DataRic] = @DataRic, [DataDoc] = @DataDoc, [NumeroCommessa] = @NumeroCommessa, [AnnoCommessa] = @AnnoCommessa, [Fase] = @Fase, [Fonte] = @Fonte, [Oggetto] = @Oggetto, [InOut] = @InOut, [Tipologia] = @Tipologia, [Riferimenti] = @Riferimenti, [Attivita] = @Attivita, [Autore] = @Autore, [SA] = @SA, [Redattore] = @Redattore, [SR] = @SR, [Annotazioni] = @Annotazioni, [LegUtente] = @LegUtente, [NoteSystemManager] = @NoteSystemManager, [Spunta] = @Spunta, [Num_Fattura] = @Num_Fattura WHERE (([idxFile] = @Original_idxFile) AND ([Nome] = @Original_Nome) AND ([fullPath] = @Original_fullPath) AND ([userId] = @Original_userId) AND ((@IsNull_NrProtocollo = 1 AND [NrProtocollo] IS NULL) OR ([NrProtocollo] = @Original_NrProtocollo)) AND ((@IsNull_Numero = 1 AND [Numero] IS NULL) OR ([Numero] = @Original_Numero)) AND ((@IsNull_Anno = 1 AND [Anno] IS NULL) OR ([Anno] = @Original_Anno)) AND ((@IsNull_DataRic = 1 AND [DataRic] IS NULL) OR ([DataRic] = @Original_DataRic)) AND ((@IsNull_DataDoc = 1 AND [DataDoc] IS NULL) OR ([DataDoc] = @Original_DataDoc)) AND ((@IsNull_Commessa = 1 AND [Commessa] IS NULL) OR ([Commessa] = @Original_Commessa)) AND ((@IsNull_NumeroCommessa = 1 AND [NumeroCommessa] IS NULL) OR ([NumeroCommessa] = @Original_NumeroCommessa)) AND ((@IsNull_AnnoCommessa = 1 AND [AnnoCommessa] IS NULL) OR ([AnnoCommessa] = @Original_AnnoCommessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_Tipologia = 1 AND [Tipologia] IS NULL) OR ([Tipologia] = @Original_Tipologia)) AND ((@IsNull_Riferimenti = 1 AND [Riferimenti] IS NULL) OR ([Riferimenti] = @Original_Riferimenti)) AND ((@IsNull_Attivita = 1 AND [Attivita] IS NULL) OR ([Attivita] = @Original_Attivita)) AND ((@IsNull_Autore = 1 AND [Autore] IS NULL) OR ([Autore] = @Original_Autore)) AND ((@IsNull_SA = 1 AND [SA] IS NULL) OR ([SA] = @Original_SA)) AND ((@IsNull_Redattore = 1 AND [Redattore] IS NULL) OR ([Redattore] = @Original_Redattore)) AND ((@IsNull_SR = 1 AND [SR] IS NULL) OR ([SR] = @Original_SR)) AND ((@IsNull_LegUtente = 1 AND [LegUtente] IS NULL) OR ([LegUtente] = @Original_LegUtente)) AND ((@IsNull_Spunta = 1 AND [Spunta] IS NULL) OR ([Spunta] = @Original_Spunta)) AND ((@IsNull_Num_Fattura = 1 AND [Num_Fattura] IS NULL) OR ([Num_Fattura] = @Original_Num_Fattura)));
+SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, DataDoc, Commessa, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM tbDocumenti WHERE (idxFile = @idxFile)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -143,6 +314,7 @@ FROM tbDocumenti
+
@@ -161,7 +333,6 @@ FROM tbDocumenti
-
@@ -182,7 +353,7 @@ FROM tbDocumenti
-
+
dbo.stp_tbDocs_getBySearch_Count
@@ -224,7 +395,7 @@ FROM tbDocumenti
-
+
dbo.stp_taDocs_insert
@@ -256,7 +427,7 @@ FROM tbDocumenti
-
+
@@ -328,7 +499,7 @@ FROM tbDocumenti
-
+
@@ -358,6 +529,13 @@ FROM tbDocumenti
+
+
+
+
+
+
+
@@ -375,7 +553,7 @@ FROM tbDocumenti
-
+
@@ -478,13 +656,6 @@ FROM tbDocumenti
-
-
-
-
-
-
-