diff --git a/.gitignore b/.gitignore index 433f482..679dc91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -/ETS-WS/ETS-WS/TempUploads/STEAMWAREWIN.samuele +/ETS-WS/ETS-WS/TempUploads/* /ETS-WS/ETS-WS/obj/Debug /ETS-WS/ETS-WS/obj/Release /ETS-WS/ETS-WS/obj/WinLab @@ -9,4 +9,4 @@ /ETS_Data/obj/Debug /ETS_Data/obj/Release /ETS_Data/obj/WinLab -/ETS_Data/ArchivioDocs/* \ No newline at end of file +/ETS-WS/ETS-WS/ArchivioDocs/* \ No newline at end of file diff --git a/ETS-WS/ETS-WS.suo b/ETS-WS/ETS-WS.suo index 1a3cca1..2c8d208 100644 Binary files a/ETS-WS/ETS-WS.suo and b/ETS-WS/ETS-WS.suo differ diff --git a/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/Motu_828 (2).jpg b/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/Motu_828 (2).jpg deleted file mode 100644 index c15ae5d..0000000 Binary files a/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/Motu_828 (2).jpg and /dev/null differ diff --git a/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/office.png b/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/office.png deleted file mode 100644 index bbb6876..0000000 Binary files a/ETS-WS/ETS-WS/ArchivioDocs/0025-2010/COORDINAMENTO_PER_LA_SICUREZZA_IN_PROGETTAZIONE/Emanuel_Portanova_Architetto_/test_123/office.png and /dev/null differ diff --git a/ETS-WS/ETS-WS/ETS-WS.csproj b/ETS-WS/ETS-WS/ETS-WS.csproj index 529883d..1ea4aec 100644 --- a/ETS-WS/ETS-WS/ETS-WS.csproj +++ b/ETS-WS/ETS-WS/ETS-WS.csproj @@ -282,8 +282,8 @@ + - @@ -379,6 +379,13 @@ mod_fileUpload.ascx + + mod_filtroRicerca.ascx + ASPXCodeBehind + + + mod_filtroRicerca.ascx + mod_gestioneDati.ascx ASPXCodeBehind @@ -386,13 +393,6 @@ mod_gestioneDati.ascx - - mod_gestioneDocumenti.ascx - ASPXCodeBehind - - - mod_gestioneDocumenti.ascx - mod_inputDati.ascx ASPXCodeBehind @@ -486,7 +486,7 @@ False True - 51756 + 54391 / diff --git a/ETS-WS/ETS-WS/GestioneDocumenti.aspx b/ETS-WS/ETS-WS/GestioneDocumenti.aspx index 4778a6c..20121df 100644 --- a/ETS-WS/ETS-WS/GestioneDocumenti.aspx +++ b/ETS-WS/ETS-WS/GestioneDocumenti.aspx @@ -2,18 +2,17 @@ AutoEventWireup="true" CodeBehind="GestioneDocumenti.aspx.cs" Inherits="ETS_WS.GestioneDocumenti" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> -<%@ Register Src="WebUserControls/mod_gestioneDocumenti.ascx" TagName="mod_gestioneDocumenti" - TagPrefix="uc1" %> -<%@ Register Src="WebUserControls/mod_gestioneDati.ascx" TagName="mod_gestioneDati" - TagPrefix="uc2" %> -<%@ Register Src="WebUserControls/mod_fileUpload.ascx" TagName="mod_fileUpload" TagPrefix="uc3" %> + +<%@ Register src="WebUserControls/mod_filtroRicerca.ascx" tagname="mod_filtroRicerca" tagprefix="uc2" %> +<%@ Register src="WebUserControls/mod_archivioDocumenti.ascx" tagname="mod_archivioDocumenti" tagprefix="uc1" %>
- + +
-
+
- +
diff --git a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs index e9964e3..0be44d2 100644 --- a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs +++ b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.cs @@ -14,6 +14,16 @@ namespace ETS_WS if (!Page.IsPostBack) { } + mod_filtroRicerca1.eh_reqSearch += new EventHandler(mod_filtroRicerca1_eh_reqSearch); + } + /// + /// chiesta update x aggiornamento criteri ricerca + /// + /// + /// + void mod_filtroRicerca1_eh_reqSearch(object sender, EventArgs e) + { + mod_archivioDocumenti1.doUpdate(); } } } \ No newline at end of file diff --git a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.designer.cs b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.designer.cs index dc755f5..96771d0 100644 --- a/ETS-WS/ETS-WS/GestioneDocumenti.aspx.designer.cs +++ b/ETS-WS/ETS-WS/GestioneDocumenti.aspx.designer.cs @@ -13,21 +13,21 @@ namespace ETS_WS { public partial class GestioneDocumenti { /// - /// mod_gestioneDati1 control. + /// mod_filtroRicerca1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::ETS_WS.WebUserControls.mod_gestioneDati mod_gestioneDati1; + protected global::ETS_WS.WebUserControls.mod_filtroRicerca mod_filtroRicerca1; /// - /// mod_gestioneDocumenti1 control. + /// mod_archivioDocumenti1 control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::ETS_WS.WebUserControls.mod_gestioneDocumenti mod_gestioneDocumenti1; + protected global::ETS_WS.WebUserControls.mod_archivioDocumenti mod_archivioDocumenti1; } } diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx index db937a6..1eef02c 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx @@ -21,6 +21,7 @@ <%----%> + @@ -28,25 +29,22 @@ - + + Target="_blank" NavigateUrl='<%# filePath(Eval("fullPath"), true) %>' /> - <%----%> - - - + <%----%> - + + + <%----%> - - @@ -65,5 +63,24 @@ --%> - + + + + + + + + + + + + diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs index 955ea9a..16be877 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx.cs @@ -86,12 +86,39 @@ namespace ETS_WS.WebUserControls /// /// accoda 2 oggetti in un unica stringa /// - /// + /// Formato della stringa richiesta (formato x string.format) + /// valori comma delimited /// /// - public string accoda(object obj1, object obj2) + public string accoda(object stringFormat,object[] args) { - return string.Format("{0}{1}", obj1, obj2); + return string.Format(stringFormat.ToString(), args); + } + /// + /// restituisce stringa del path da filesystem completo + /// + /// + /// se true in modalità http (path da webserver) se false path completo da filesystem + /// + public string filePath(object fullPath, object httpMode) + { + string answ = ""; + if (Convert.ToBoolean(httpMode)) + { + answ = string.Format("{0}", fullPath.ToString()); + } + else + { + answ = string.Format("{0}", Server.MapPath(fullPath.ToString())); + } + return answ; + } + /// + /// aggiornamento controllo + /// + public void doUpdate() + { + grView.DataBind(); } } } \ No newline at end of file diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx new file mode 100644 index 0000000..aa2a508 --- /dev/null +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx @@ -0,0 +1,56 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_filtroRicerca.ascx.cs" + Inherits="ETS_WS.WebUserControls.mod_filtroRicerca" %> +<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> +<%@ Register Src="mod_textAutocomplete.ascx" TagName="mod_textAutocomplete" TagPrefix="uc1" %> +<% if (false) + { %> + + + + + +<% } %> +
+
+ gestione filtraggi: (a scomparsa?)
+ ricerca libera
+ filtro x commessa|fase|fonte|oggetto?!? +
+ <%--input dati--%> +
+
+ +
+ <%--
+
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+
+ +
--%> +
+ +
+
+
+
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs new file mode 100644 index 0000000..4d8607d --- /dev/null +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using ETS_Data; + +namespace ETS_WS.WebUserControls +{ + public partial class mod_filtroRicerca : System.Web.UI.UserControl + { + /// + /// evento richiesta salvataggio files + /// + public event EventHandler eh_reqSearch; + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + updateVisual(); + } + //tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato); + } + /// + /// imposto valori secondari + /// + /// + /// + void tacCommesse_eh_valSelezionato(object sender, EventArgs e) + { + updateVisual(); + } + /// + /// aggiorna tutti i valori visualizzati + /// + private void updateVisual() + { + //// verifico attivazione button submin (ovvero ci sono tutti i valori...) + //btnSubmit.Visible = (tacCommesse.valore != "" && tacFasi.valore != "" && tacFonti.label != "" && txtOggetto.Text != ""); + } +#if false + /// + /// fornisce la stringa del path generato dalle selezioni + /// + protected string pathSel + { + get + { + // pulizia char non ammessi... + string commessa = utils.cleanPathName(tacCommesse.valore); + string fase = utils.cleanPathName(tacFasi.valore); + string fonte = utils.cleanPathName(tacFonti.label); + string oggetto = utils.cleanPathName(txtOggetto.Text); + return string.Format("/{0}/{1}/{2}/{3}/", commessa, fase, fonte, oggetto); + } + } +#endif + + /// + /// + /// + /// + /// + protected void txtOggetto_TextChanged(object sender, EventArgs e) + { + updateVisual(); + } + /// + /// richiesta update + /// + /// + /// + protected void btnUpdate_Click(object sender, EventArgs e) + { + //saveMetaData(); + // aggiorno + updateVisual(); + } +#if false + /// + /// salva in sesione i metadati + /// + private void saveMetaData() + { + // salvo i valori dei parametri metadati.. + string commessa = utils.cleanPathName(tacCommesse.valore); + string fase = utils.cleanPathName(tacFasi.valore); + string fonte = utils.cleanPathName(tacFonti.label); + string oggetto = utils.cleanPathName(txtOggetto.Text); + // salvo in sessione i valori selezionati, compreso path complessivo + utils.obj.setSessionVal("metaCommessa", commessa); + utils.obj.setSessionVal("metaFase", fase); + utils.obj.setSessionVal("metaFonte", fonte); + utils.obj.setSessionVal("metaOggetto", oggetto); + utils.obj.setSessionVal("pathFiles2Arch", pathSel); + } +#endif + + /// + /// salvo la ricerca libera... + /// + /// + /// + protected void txtSearchAll_TextChanged(object sender, EventArgs e) + { + // salvo valore selezionato + utils.obj.setSessionVal("srcSearchAll", txtSearchAll.Text.Trim()); + } + } +} \ No newline at end of file diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs new file mode 100644 index 0000000..67f4bc0 --- /dev/null +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ETS_WS.WebUserControls { + + + public partial class mod_filtroRicerca { + + /// + /// lblCerca control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblCerca; + + /// + /// txtSearchAll control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtSearchAll; + + /// + /// btnUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnUpdate; + } +} diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx deleted file mode 100644 index e6d707f..0000000 --- a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx +++ /dev/null @@ -1,14 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneDocumenti.ascx.cs" - Inherits="ETS_WS.WebUserControls.mod_gestioneDocumenti" %> -<%@ Register Src="mod_archivioDocumenti.ascx" TagName="mod_archivioDocumenti" TagPrefix="uc2" %> -<% if (false) - { %> - - - - - -<% } %> -<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> -<%@ Register Src="mod_myTempFile.ascx" TagName="mod_myTempFile" TagPrefix="uc1" %> - diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.cs deleted file mode 100644 index 0b251e7..0000000 --- a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -namespace ETS_WS.WebUserControls -{ - public partial class mod_gestioneDocumenti : System.Web.UI.UserControl - { - protected void Page_Load(object sender, EventArgs e) - { - - } - } -} \ No newline at end of file diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.designer.cs b/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.designer.cs deleted file mode 100644 index 372865a..0000000 --- a/ETS-WS/ETS-WS/WebUserControls/mod_gestioneDocumenti.ascx.designer.cs +++ /dev/null @@ -1,24 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace ETS_WS.WebUserControls { - - - public partial class mod_gestioneDocumenti { - - /// - /// mod_archivioDocumenti1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::ETS_WS.WebUserControls.mod_archivioDocumenti mod_archivioDocumenti1; - } -} diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx index 972a264..e7ee80c 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx @@ -39,7 +39,7 @@ ServiceMethod="elencoFasi" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" />
- +
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs index da36f9a..9e14430 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx.cs @@ -27,6 +27,26 @@ namespace ETS_WS.WebUserControls updateVisual(); } tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato); + tacFasi.eh_valSelezionato += new EventHandler(tacFasi_eh_valSelezionato); + tacFonti.eh_valSelezionato += new EventHandler(tacFonti_eh_valSelezionato); + } + /// + /// imposto valori secondari + /// + /// + /// + void tacFonti_eh_valSelezionato(object sender, EventArgs e) + { + updateVisual(); + } + /// + /// imposto valori secondari + /// + /// + /// + void tacFasi_eh_valSelezionato(object sender, EventArgs e) + { + updateVisual(); } /// /// imposto valori secondari @@ -120,7 +140,7 @@ namespace ETS_WS.WebUserControls // salvo i valori dei parametri metadati.. string commessa = utils.cleanPathName(tacCommesse.valore); string fase = utils.cleanPathName(tacFasi.valore); - string fonte = utils.cleanPathName(tacFonti.valore); + string fonte = utils.cleanPathName(tacFonti.label); string oggetto = utils.cleanPathName(txtOggetto.Text); // salvo in sessione i valori selezionati, compreso path complessivo utils.obj.setSessionVal("metaCommessa", commessa); diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll index 560bfe4..d91927c 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 26c42ea..84bc1bc 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 71b4416..6eaf189 100644 --- a/ETS_Data/DS_WebScip.Designer.cs +++ b/ETS_Data/DS_WebScip.Designer.cs @@ -792,6 +792,8 @@ 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() { @@ -1041,6 +1043,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")] [global::System.ComponentModel.Browsable(false)] @@ -1104,7 +1114,8 @@ namespace ETS_Data { string LegUtente, string NoteSystemManager, int Spunta, - string Num_Fattura) { + string Num_Fattura, + string Commessa) { tbDocumentiRow rowtbDocumentiRow = ((tbDocumentiRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, @@ -1133,7 +1144,8 @@ namespace ETS_Data { LegUtente, NoteSystemManager, Spunta, - Num_Fattura}; + Num_Fattura, + Commessa}; rowtbDocumentiRow.ItemArray = columnValuesArray; this.Rows.Add(rowtbDocumentiRow); return rowtbDocumentiRow; @@ -1190,6 +1202,7 @@ 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()] @@ -1249,6 +1262,8 @@ 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; @@ -1280,6 +1295,8 @@ 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()] @@ -2115,6 +2132,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 bool IsNrProtocolloNull() { @@ -2390,6 +2423,18 @@ 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; + } } /// @@ -3316,225 +3361,8 @@ 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_NumeroCommessa = 1 AND [N" + - "umeroCommessa] IS NULL) OR ([NumeroCommessa] = @Original_NumeroCommessa)) AND ((" + - "@IsNull_AnnoCommessa = 1 AND [AnnoCommessa] IS NULL) OR ([AnnoCommessa] = @Origi" + - "nal_AnnoCommessa)) AND ((@IsNull_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Orig" + - "inal_Fase)) AND ((@IsNull_Fonte = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original" + - "_Fonte)) AND ((@IsNull_Oggetto = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Origi" + - "nal_Oggetto)) AND ((@IsNull_InOut = 1 AND [InOut] IS NULL) OR ([InOut] = @Origin" + - "al_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 [Att" + - "ivita] IS NULL) OR ([Attivita] = @Original_Attivita)) AND ((@IsNull_Autore = 1 A" + - "ND [Autore] IS NULL) OR ([Autore] = @Original_Autore)) AND ((@IsNull_SA = 1 AND " + - "[SA] IS NULL) OR ([SA] = @Original_SA)) AND ((@IsNull_Redattore = 1 AND [Redatto" + - "re] IS NULL) OR ([Redattore] = @Original_Redattore)) AND ((@IsNull_SR = 1 AND [S" + - "R] 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)))"; - 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_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, 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_NumeroCommessa = 1 AND [NumeroCommessa] IS NULL) OR ([N" + - "umeroCommessa] = @Original_NumeroCommessa)) AND ((@IsNull_AnnoCommessa = 1 AND [" + - "AnnoCommessa] IS NULL) OR ([AnnoCommessa] = @Original_AnnoCommessa)) AND ((@IsNu" + - "ll_Fase = 1 AND [Fase] IS NULL) OR ([Fase] = @Original_Fase)) AND ((@IsNull_Font" + - "e = 1 AND [Fonte] IS NULL) OR ([Fonte] = @Original_Fonte)) AND ((@IsNull_Oggetto" + - " = 1 AND [Oggetto] IS NULL) OR ([Oggetto] = @Original_Oggetto)) AND ((@IsNull_In" + - "Out = 1 AND [InOut] IS NULL) OR ([InOut] = @Original_InOut)) AND ((@IsNull_Tipol" + - "ogia = 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 ([Auto" + - "re] = @Original_Autore)) AND ((@IsNull_SA = 1 AND [SA] IS NULL) OR ([SA] = @Orig" + - "inal_SA)) AND ((@IsNull_Redattore = 1 AND [Redattore] IS NULL) OR ([Redattore] =" + - " @Original_Redattore)) AND ((@IsNull_SR = 1 AND [SR] IS NULL) OR ([SR] = @Origin" + - "al_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) O" + - "R ([Num_Fattura] = @Original_Num_Fattura)));\r\nSELECT idxFile, Nome, fullPath, us" + - "erId, NrProtocollo, Numero, Anno, DataRic, DataDoc, NumeroCommessa, AnnoCommessa" + - ", Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Red" + - "attore, 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_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()] @@ -3547,28 +3375,41 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = @"SELECT idxFile, 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 FROM dbo.tbDocumenti"; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM 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; - this._commandCollection[1].CommandText = "dbo.stp_taDocs_insert"; + this._commandCollection[1].CommandText = "dbo.stp_tbDocs_getBySearch"; this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nome", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fullPath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isProtocollo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Numero", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Anno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Commessa", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchAll", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_taDocs_insert"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nome", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fullPath", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userId", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isProtocollo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataRic", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataDoc", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumeroCommessa", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AnnoCommessa", global::System.Data.SqlDbType.NVarChar, 4, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Oggetto", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -3598,949 +3439,67 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat [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_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_NumeroCommessa == 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_NumeroCommessa)); - } - if ((Original_AnnoCommessa == 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_AnnoCommessa)); - } - if ((Original_Fase == 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_Fase)); - } - if ((Original_Fonte == 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_Fonte)); - } - if ((Original_Oggetto == 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_Oggetto)); - } - if ((Original_InOut == 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_InOut)); - } - if ((Original_Tipologia == 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_Tipologia)); - } - if ((Original_Riferimenti == 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_Riferimenti)); - } - if ((Original_Attivita == 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_Attivita)); - } - if ((Original_Autore == 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_Autore)); - } - if ((Original_SA == 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_SA)); - } - if ((Original_Redattore == 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_Redattore)); - } - if ((Original_SR == 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_SR)); - } - if ((Original_LegUtente == 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_LegUtente)); - } - if ((Original_Spunta.HasValue == true)) { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[43].Value = ((int)(Original_Spunta.Value)); - } - else { - this.Adapter.DeleteCommand.Parameters[42].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[43].Value = global::System.DBNull.Value; - } - if ((Original_Num_Fattura == null)) { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(1)); - this.Adapter.DeleteCommand.Parameters[45].Value = global::System.DBNull.Value; - } - else { - this.Adapter.DeleteCommand.Parameters[44].Value = ((object)(0)); - this.Adapter.DeleteCommand.Parameters[45].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; - } + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_WebScip.tbDocumentiDataTable getBySearch(global::System.Nullable Numero, global::System.Nullable Anno, string Commessa, string Fase, string Fonte, string Oggetto, string InOut, string searchAll) { + this.Adapter.SelectCommand = this.CommandCollection[1]; if ((Numero.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Numero.Value)); + this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Numero.Value)); } else { - this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } if ((Anno.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[5].Value = ((int)(Anno.Value)); + this.Adapter.SelectCommand.Parameters[2].Value = ((int)(Anno.Value)); } else { - this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; } - if ((DataRic.HasValue == true)) { - this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(DataRic.Value)); + if ((Commessa == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.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)); + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Commessa)); } if ((Fase == null)) { - this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Fase)); + this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Fase)); } if ((Fonte == null)) { - this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[11].Value = ((string)(Fonte)); + this.Adapter.SelectCommand.Parameters[5].Value = ((string)(Fonte)); } if ((Oggetto == null)) { - this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Oggetto)); + this.Adapter.SelectCommand.Parameters[6].Value = ((string)(Oggetto)); } if ((InOut == null)) { - this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value; + this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[13].Value = ((string)(InOut)); + this.Adapter.SelectCommand.Parameters[7].Value = ((string)(InOut)); } - if ((Tipologia == null)) { - this.Adapter.InsertCommand.Parameters[14].Value = global::System.DBNull.Value; + if ((searchAll == null)) { + this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; } else { - this.Adapter.InsertCommand.Parameters[14].Value = ((string)(Tipologia)); + this.Adapter.SelectCommand.Parameters[8].Value = ((string)(searchAll)); } - 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_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_NumeroCommessa == 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_NumeroCommessa)); - } - if ((Original_AnnoCommessa == 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_AnnoCommessa)); - } - if ((Original_Fase == 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_Fase)); - } - if ((Original_Fonte == 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_Fonte)); - } - if ((Original_Oggetto == 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_Oggetto)); - } - if ((Original_InOut == 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_InOut)); - } - if ((Original_Tipologia == 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_Tipologia)); - } - if ((Original_Riferimenti == 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_Riferimenti)); - } - if ((Original_Attivita == 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_Attivita)); - } - if ((Original_Autore == 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_Autore)); - } - if ((Original_SA == 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_SA)); - } - if ((Original_Redattore == 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_Redattore)); - } - if ((Original_SR == 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_SR)); - } - if ((Original_LegUtente == 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_LegUtente)); - } - if ((Original_Spunta.HasValue == true)) { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[69].Value = ((int)(Original_Spunta.Value)); - } - else { - this.Adapter.UpdateCommand.Parameters[68].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[69].Value = global::System.DBNull.Value; - } - if ((Original_Num_Fattura == null)) { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(1)); - this.Adapter.UpdateCommand.Parameters[71].Value = global::System.DBNull.Value; - } - else { - this.Adapter.UpdateCommand.Parameters[70].Value = ((object)(0)); - this.Adapter.UpdateCommand.Parameters[71].Value = ((string)(Original_Num_Fattura)); - } - this.Adapter.UpdateCommand.Parameters[72].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_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_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); + DS_WebScip.tbDocumentiDataTable dataTable = new DS_WebScip.tbDocumentiDataTable(); + this.Adapter.Fill(dataTable); + 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 insertQuery(string nome, string fullPath, string userId, global::System.Nullable isProtocollo, global::System.Nullable DataRic, global::System.Nullable DataDoc, string NumeroCommessa, string AnnoCommessa, string Fase, string Fonte, string Oggetto, string InOut) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; if ((nome == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -4645,8 +3604,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat private tmpFileUtTableAdapter _tmpFileUtTableAdapter; - private tbDocumentiTableAdapter _tbDocumentiTableAdapter; - private bool _backupDataSetBeforeUpdate; private global::System.Data.IDbConnection _connection; @@ -4676,20 +3633,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat } } - [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 { @@ -4713,10 +3656,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat && (this._tmpFileUtTableAdapter.Connection != null))) { return this._tmpFileUtTableAdapter.Connection; } - if (((this._tbDocumentiTableAdapter != null) - && (this._tbDocumentiTableAdapter.Connection != null))) { - return this._tbDocumentiTableAdapter.Connection; - } return null; } set { @@ -4733,9 +3672,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat if ((this._tmpFileUtTableAdapter != null)) { count = (count + 1); } - if ((this._tbDocumentiTableAdapter != null)) { - count = (count + 1); - } return count; } } @@ -4756,15 +3692,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat 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; } @@ -4783,14 +3710,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat 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; } @@ -4801,14 +3720,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat [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) @@ -4861,11 +3772,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat 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" + @@ -4907,15 +3813,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat 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 ----------- // @@ -4978,10 +3875,6 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat 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 2652212..c9194be 100644 --- a/ETS_Data/DS_WebScip.xsd +++ b/ETS_Data/DS_WebScip.xsd @@ -123,181 +123,14 @@ 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_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, 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 idxFile, 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 FROM dbo.tbDocumenti + + SELECT * +FROM 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_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, NumeroCommessa, AnnoCommessa, Fase, Fonte, Oggetto, InOut, Tipologia, Riferimenti, Attivita, Autore, SA, Redattore, SR, Annotazioni, LegUtente, NoteSystemManager, Spunta, Num_Fattura FROM tbDocumenti WHERE (idxFile = @idxFile) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -328,8 +161,27 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat + + + + + dbo.stp_tbDocs_getBySearch + + + + + + + + + + + + + + @@ -362,7 +214,7 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat - + @@ -434,7 +286,7 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat - + @@ -584,6 +436,13 @@ SELECT idxFile, Nome, fullPath, userId, NrProtocollo, Numero, Anno, DataRic, Dat + + + + + + + diff --git a/ETS_Data/DS_utils.Designer.cs b/ETS_Data/DS_utils.Designer.cs index 7bebe3c..545da92 100644 --- a/ETS_Data/DS_utils.Designer.cs +++ b/ETS_Data/DS_utils.Designer.cs @@ -30,6 +30,12 @@ namespace ETS_Data { private v_selFasiDataTable tablev_selFasi; + private v_tbDocs_selCommesseDataTable tablev_tbDocs_selCommesse; + + private v_tbDocs_selFasiDataTable tablev_tbDocs_selFasi; + + private v_tbDocs_selFontiDataTable tablev_tbDocs_selFonti; + private filesDataTable tablefiles; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -69,6 +75,15 @@ namespace ETS_Data { if ((ds.Tables["v_selFasi"] != null)) { base.Tables.Add(new v_selFasiDataTable(ds.Tables["v_selFasi"])); } + if ((ds.Tables["v_tbDocs_selCommesse"] != null)) { + base.Tables.Add(new v_tbDocs_selCommesseDataTable(ds.Tables["v_tbDocs_selCommesse"])); + } + if ((ds.Tables["v_tbDocs_selFasi"] != null)) { + base.Tables.Add(new v_tbDocs_selFasiDataTable(ds.Tables["v_tbDocs_selFasi"])); + } + if ((ds.Tables["v_tbDocs_selFonti"] != null)) { + base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -120,6 +135,36 @@ namespace ETS_Data { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_tbDocs_selCommesseDataTable v_tbDocs_selCommesse { + get { + return this.tablev_tbDocs_selCommesse; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_tbDocs_selFasiDataTable v_tbDocs_selFasi { + get { + return this.tablev_tbDocs_selFasi; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public v_tbDocs_selFontiDataTable v_tbDocs_selFonti { + get { + return this.tablev_tbDocs_selFonti; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -206,6 +251,15 @@ namespace ETS_Data { if ((ds.Tables["v_selFasi"] != null)) { base.Tables.Add(new v_selFasiDataTable(ds.Tables["v_selFasi"])); } + if ((ds.Tables["v_tbDocs_selCommesse"] != null)) { + base.Tables.Add(new v_tbDocs_selCommesseDataTable(ds.Tables["v_tbDocs_selCommesse"])); + } + if ((ds.Tables["v_tbDocs_selFasi"] != null)) { + base.Tables.Add(new v_tbDocs_selFasiDataTable(ds.Tables["v_tbDocs_selFasi"])); + } + if ((ds.Tables["v_tbDocs_selFonti"] != null)) { + base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -260,6 +314,24 @@ namespace ETS_Data { this.tablev_selFasi.InitVars(); } } + this.tablev_tbDocs_selCommesse = ((v_tbDocs_selCommesseDataTable)(base.Tables["v_tbDocs_selCommesse"])); + if ((initTable == true)) { + if ((this.tablev_tbDocs_selCommesse != null)) { + this.tablev_tbDocs_selCommesse.InitVars(); + } + } + this.tablev_tbDocs_selFasi = ((v_tbDocs_selFasiDataTable)(base.Tables["v_tbDocs_selFasi"])); + if ((initTable == true)) { + if ((this.tablev_tbDocs_selFasi != null)) { + this.tablev_tbDocs_selFasi.InitVars(); + } + } + this.tablev_tbDocs_selFonti = ((v_tbDocs_selFontiDataTable)(base.Tables["v_tbDocs_selFonti"])); + if ((initTable == true)) { + if ((this.tablev_tbDocs_selFonti != null)) { + this.tablev_tbDocs_selFonti.InitVars(); + } + } this.tablefiles = ((filesDataTable)(base.Tables["files"])); if ((initTable == true)) { if ((this.tablefiles != null)) { @@ -282,6 +354,12 @@ namespace ETS_Data { base.Tables.Add(this.tablev_selCommesse); this.tablev_selFasi = new v_selFasiDataTable(); base.Tables.Add(this.tablev_selFasi); + this.tablev_tbDocs_selCommesse = new v_tbDocs_selCommesseDataTable(); + base.Tables.Add(this.tablev_tbDocs_selCommesse); + this.tablev_tbDocs_selFasi = new v_tbDocs_selFasiDataTable(); + base.Tables.Add(this.tablev_tbDocs_selFasi); + this.tablev_tbDocs_selFonti = new v_tbDocs_selFontiDataTable(); + base.Tables.Add(this.tablev_tbDocs_selFonti); this.tablefiles = new filesDataTable(); base.Tables.Add(this.tablefiles); } @@ -304,6 +382,24 @@ namespace ETS_Data { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_tbDocs_selCommesse() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_tbDocs_selFasi() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private bool ShouldSerializev_tbDocs_selFonti() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializefiles() { @@ -374,6 +470,15 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void v_selFasiRowChangeEventHandler(object sender, v_selFasiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_tbDocs_selCommesseRowChangeEventHandler(object sender, v_tbDocs_selCommesseRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_tbDocs_selFasiRowChangeEventHandler(object sender, v_tbDocs_selFasiRowChangeEvent e); + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_tbDocs_selFontiRowChangeEventHandler(object sender, v_tbDocs_selFontiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e); @@ -1196,6 +1301,797 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_tbDocs_selCommesseDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseDataTable() { + this.TableName = "v_tbDocs_selCommesse"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selCommesseDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_tbDocs_selCommesseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseRow this[int index] { + get { + return ((v_tbDocs_selCommesseRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selCommesseRowChangeEventHandler v_tbDocs_selCommesseRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selCommesseRowChangeEventHandler v_tbDocs_selCommesseRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selCommesseRowChangeEventHandler v_tbDocs_selCommesseRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selCommesseRowChangeEventHandler v_tbDocs_selCommesseRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_tbDocs_selCommesseRow(v_tbDocs_selCommesseRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseRow Addv_tbDocs_selCommesseRow(string value, string label) { + v_tbDocs_selCommesseRow rowv_tbDocs_selCommesseRow = ((v_tbDocs_selCommesseRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_tbDocs_selCommesseRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_tbDocs_selCommesseRow); + return rowv_tbDocs_selCommesseRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_tbDocs_selCommesseDataTable cln = ((v_tbDocs_selCommesseDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_tbDocs_selCommesseDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnvalue.ReadOnly = true; + this.columnvalue.MaxLength = 260; + this.columnlabel.ReadOnly = true; + this.columnlabel.MaxLength = 824; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseRow Newv_tbDocs_selCommesseRow() { + return ((v_tbDocs_selCommesseRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_tbDocs_selCommesseRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_tbDocs_selCommesseRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_tbDocs_selCommesseRowChanged != null)) { + this.v_tbDocs_selCommesseRowChanged(this, new v_tbDocs_selCommesseRowChangeEvent(((v_tbDocs_selCommesseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_tbDocs_selCommesseRowChanging != null)) { + this.v_tbDocs_selCommesseRowChanging(this, new v_tbDocs_selCommesseRowChangeEvent(((v_tbDocs_selCommesseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_tbDocs_selCommesseRowDeleted != null)) { + this.v_tbDocs_selCommesseRowDeleted(this, new v_tbDocs_selCommesseRowChangeEvent(((v_tbDocs_selCommesseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_tbDocs_selCommesseRowDeleting != null)) { + this.v_tbDocs_selCommesseRowDeleting(this, new v_tbDocs_selCommesseRowChangeEvent(((v_tbDocs_selCommesseRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_tbDocs_selCommesseRow(v_tbDocs_selCommesseRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_utils ds = new DS_utils(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_tbDocs_selCommesseDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_tbDocs_selFasiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiDataTable() { + this.TableName = "v_tbDocs_selFasi"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selFasiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_tbDocs_selFasiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiRow this[int index] { + get { + return ((v_tbDocs_selFasiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFasiRowChangeEventHandler v_tbDocs_selFasiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFasiRowChangeEventHandler v_tbDocs_selFasiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFasiRowChangeEventHandler v_tbDocs_selFasiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFasiRowChangeEventHandler v_tbDocs_selFasiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_tbDocs_selFasiRow(v_tbDocs_selFasiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiRow Addv_tbDocs_selFasiRow(string value, string label) { + v_tbDocs_selFasiRow rowv_tbDocs_selFasiRow = ((v_tbDocs_selFasiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_tbDocs_selFasiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_tbDocs_selFasiRow); + return rowv_tbDocs_selFasiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_tbDocs_selFasiDataTable cln = ((v_tbDocs_selFasiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_tbDocs_selFasiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnvalue.MaxLength = 100; + this.columnlabel.MaxLength = 100; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiRow Newv_tbDocs_selFasiRow() { + return ((v_tbDocs_selFasiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_tbDocs_selFasiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_tbDocs_selFasiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_tbDocs_selFasiRowChanged != null)) { + this.v_tbDocs_selFasiRowChanged(this, new v_tbDocs_selFasiRowChangeEvent(((v_tbDocs_selFasiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_tbDocs_selFasiRowChanging != null)) { + this.v_tbDocs_selFasiRowChanging(this, new v_tbDocs_selFasiRowChangeEvent(((v_tbDocs_selFasiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_tbDocs_selFasiRowDeleted != null)) { + this.v_tbDocs_selFasiRowDeleted(this, new v_tbDocs_selFasiRowChangeEvent(((v_tbDocs_selFasiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_tbDocs_selFasiRowDeleting != null)) { + this.v_tbDocs_selFasiRowDeleting(this, new v_tbDocs_selFasiRowChangeEvent(((v_tbDocs_selFasiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_tbDocs_selFasiRow(v_tbDocs_selFasiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_utils ds = new DS_utils(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_tbDocs_selFasiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_tbDocs_selFontiDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnvalue; + + private global::System.Data.DataColumn columnlabel; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiDataTable() { + this.TableName = "v_tbDocs_selFonti"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selFontiDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected v_tbDocs_selFontiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn valueColumn { + get { + return this.columnvalue; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn labelColumn { + get { + return this.columnlabel; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiRow this[int index] { + get { + return ((v_tbDocs_selFontiRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFontiRowChangeEventHandler v_tbDocs_selFontiRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFontiRowChangeEventHandler v_tbDocs_selFontiRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFontiRowChangeEventHandler v_tbDocs_selFontiRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selFontiRowChangeEventHandler v_tbDocs_selFontiRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_tbDocs_selFontiRow(v_tbDocs_selFontiRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiRow Addv_tbDocs_selFontiRow(string value, string label) { + v_tbDocs_selFontiRow rowv_tbDocs_selFontiRow = ((v_tbDocs_selFontiRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_tbDocs_selFontiRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_tbDocs_selFontiRow); + return rowv_tbDocs_selFontiRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public override global::System.Data.DataTable Clone() { + v_tbDocs_selFontiDataTable cln = ((v_tbDocs_selFontiDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new v_tbDocs_selFontiDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal void InitVars() { + this.columnvalue = base.Columns["value"]; + this.columnlabel = base.Columns["label"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitClass() { + this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnvalue); + this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnlabel); + this.columnvalue.MaxLength = 100; + this.columnlabel.MaxLength = 100; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiRow Newv_tbDocs_selFontiRow() { + return ((v_tbDocs_selFontiRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new v_tbDocs_selFontiRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(v_tbDocs_selFontiRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.v_tbDocs_selFontiRowChanged != null)) { + this.v_tbDocs_selFontiRowChanged(this, new v_tbDocs_selFontiRowChangeEvent(((v_tbDocs_selFontiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.v_tbDocs_selFontiRowChanging != null)) { + this.v_tbDocs_selFontiRowChanging(this, new v_tbDocs_selFontiRowChangeEvent(((v_tbDocs_selFontiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.v_tbDocs_selFontiRowDeleted != null)) { + this.v_tbDocs_selFontiRowDeleted(this, new v_tbDocs_selFontiRowChangeEvent(((v_tbDocs_selFontiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.v_tbDocs_selFontiRowDeleting != null)) { + this.v_tbDocs_selFontiRowDeleting(this, new v_tbDocs_selFontiRowChangeEvent(((v_tbDocs_selFontiRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Removev_tbDocs_selFontiRow(v_tbDocs_selFontiRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_utils ds = new DS_utils(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "v_tbDocs_selFontiDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents the strongly named DataTable class. /// @@ -1630,6 +2526,219 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_tbDocs_selCommesseRow : global::System.Data.DataRow { + + private v_tbDocs_selCommesseDataTable tablev_tbDocs_selCommesse; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selCommesseRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_tbDocs_selCommesse = ((v_tbDocs_selCommesseDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + try { + return ((string)(this[this.tablev_tbDocs_selCommesse.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selCommesse\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selCommesse.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_tbDocs_selCommesse.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selCommesse\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selCommesse.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsvalueNull() { + return this.IsNull(this.tablev_tbDocs_selCommesse.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetvalueNull() { + this[this.tablev_tbDocs_selCommesse.valueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_tbDocs_selCommesse.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_tbDocs_selCommesse.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_tbDocs_selFasiRow : global::System.Data.DataRow { + + private v_tbDocs_selFasiDataTable tablev_tbDocs_selFasi; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selFasiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_tbDocs_selFasi = ((v_tbDocs_selFasiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + try { + return ((string)(this[this.tablev_tbDocs_selFasi.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selFasi\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selFasi.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_tbDocs_selFasi.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selFasi\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selFasi.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsvalueNull() { + return this.IsNull(this.tablev_tbDocs_selFasi.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetvalueNull() { + this[this.tablev_tbDocs_selFasi.valueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_tbDocs_selFasi.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_tbDocs_selFasi.labelColumn] = global::System.Convert.DBNull; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class v_tbDocs_selFontiRow : global::System.Data.DataRow { + + private v_tbDocs_selFontiDataTable tablev_tbDocs_selFonti; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selFontiRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_tbDocs_selFonti = ((v_tbDocs_selFontiDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string value { + get { + try { + return ((string)(this[this.tablev_tbDocs_selFonti.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selFonti\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selFonti.valueColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public string label { + get { + try { + return ((string)(this[this.tablev_tbDocs_selFonti.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selFonti\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selFonti.labelColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsvalueNull() { + return this.IsNull(this.tablev_tbDocs_selFonti.valueColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetvalueNull() { + this[this.tablev_tbDocs_selFonti.valueColumn] = global::System.Convert.DBNull; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IslabelNull() { + return this.IsNull(this.tablev_tbDocs_selFonti.labelColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetlabelNull() { + this[this.tablev_tbDocs_selFonti.labelColumn] = global::System.Convert.DBNull; + } + } + /// ///Represents strongly named DataRow class. /// @@ -1859,6 +2968,108 @@ namespace ETS_Data { } } + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_tbDocs_selCommesseRowChangeEvent : global::System.EventArgs { + + private v_tbDocs_selCommesseRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseRowChangeEvent(v_tbDocs_selCommesseRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_tbDocs_selFasiRowChangeEvent : global::System.EventArgs { + + private v_tbDocs_selFasiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiRowChangeEvent(v_tbDocs_selFasiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_tbDocs_selFontiRowChangeEvent : global::System.EventArgs { + + private v_tbDocs_selFontiRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiRowChangeEvent(v_tbDocs_selFontiRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + /// ///Row event argument class /// @@ -2470,6 +3681,579 @@ namespace ETS_Data.DS_utilsTableAdapters { } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_tbDocs_selCommesseTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selCommesseTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_tbDocs_selCommesse"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_tbDocs_selCommesse"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_tbDocs_Commesse_likeSearch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_utils.v_tbDocs_selCommesseDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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.Select, true)] + public virtual DS_utils.v_tbDocs_selCommesseDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_tbDocs_selCommesseDataTable dataTable = new DS_utils.v_tbDocs_selCommesseDataTable(); + this.Adapter.Fill(dataTable); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_utils.v_tbDocs_selCommesseDataTable getByLikeSearch(string search) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((search == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(search)); + } + DS_utils.v_tbDocs_selCommesseDataTable dataTable = new DS_utils.v_tbDocs_selCommesseDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_tbDocs_selFasiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFasiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_tbDocs_selFasi"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_tbDocs_selFasi"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_Fasi_likeSearch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_utils.v_tbDocs_selFasiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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.Select, true)] + public virtual DS_utils.v_tbDocs_selFasiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_tbDocs_selFasiDataTable dataTable = new DS_utils.v_tbDocs_selFasiDataTable(); + this.Adapter.Fill(dataTable); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_utils.v_tbDocs_selFasiDataTable getByLikeSearch(string search) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((search == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(search)); + } + DS_utils.v_tbDocs_selFasiDataTable dataTable = new DS_utils.v_tbDocs_selFasiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class v_tbDocs_selFontiTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selFontiTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "v_tbDocs_selFonti"; + tableMapping.ColumnMappings.Add("value", "value"); + tableMapping.ColumnMappings.Add("label", "label"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_tbDocs_selFonti"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_tbDocs_Fonti_likeSearch"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [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.Fill, true)] + public virtual int Fill(DS_utils.v_tbDocs_selFontiDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [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.Select, true)] + public virtual DS_utils.v_tbDocs_selFontiDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_tbDocs_selFontiDataTable dataTable = new DS_utils.v_tbDocs_selFontiDataTable(); + this.Adapter.Fill(dataTable); + 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")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_utils.v_tbDocs_selFontiDataTable getByLikeSearch(string search) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((search == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(search)); + } + DS_utils.v_tbDocs_selFontiDataTable dataTable = new DS_utils.v_tbDocs_selFontiDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/ETS_Data/DS_utils.xsd b/ETS_Data/DS_utils.xsd index f522c0b..82b89cf 100644 --- a/ETS_Data/DS_utils.xsd +++ b/ETS_Data/DS_utils.xsd @@ -96,6 +96,93 @@ ORDER BY value + + + + + + SELECT value, label FROM dbo.v_tbDocs_selCommesse + + + + + + + + + + + + + + dbo.stp_tbDocs_Commesse_likeSearch + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_tbDocs_selFasi + + + + + + + + + + + + + + dbo.stp_Fasi_likeSearch + + + + + + + + + + + + + + + SELECT value, label FROM dbo.v_tbDocs_selFonti + + + + + + + + + + + + + + dbo.stp_tbDocs_Fonti_likeSearch + + + + + + + + + @@ -104,7 +191,7 @@ ORDER BY value - + @@ -124,7 +211,7 @@ ORDER BY value - + @@ -138,7 +225,7 @@ ORDER BY value - + @@ -152,7 +239,7 @@ ORDER BY value - + @@ -162,6 +249,66 @@ ORDER BY value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ETS_Data/DS_utils.xss b/ETS_Data/DS_utils.xss index 3412797..f48bcaf 100644 --- a/ETS_Data/DS_utils.xss +++ b/ETS_Data/DS_utils.xss @@ -6,10 +6,13 @@ --> - - - - + + + + + + + \ No newline at end of file