diff --git a/ETS-WS/ETS-WS.suo b/ETS-WS/ETS-WS.suo index 2c8d208..4ede629 100644 Binary files a/ETS-WS/ETS-WS.suo and b/ETS-WS/ETS-WS.suo differ diff --git a/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs b/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs index 823d238..7ae734a 100644 --- a/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs +++ b/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs @@ -20,6 +20,7 @@ namespace ETS_WS.WS [System.Web.Script.Services.ScriptService] public class AutoCompletamento : System.Web.Services.WebService { + #region ricerca dati COMPLETA (tutti) [System.Web.Services.WebMethod] public string[] elencoFonti(string prefixText, int count) @@ -30,7 +31,7 @@ namespace ETS_WS.WS if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete"))) { // elenco candidati - DS_utils.v_selFontiDataTable tabella = utils.obj.taSelFonti.getByLikeSearch(prefixText); + DS_utils.v_selFontiDataTable tabella = utils.obj.taSelFonti.getByLikeSearch(prefixText); // aggiungo ogni riga... foreach (DS_utils.v_selFontiRow riga in tabella) { @@ -79,6 +80,88 @@ namespace ETS_WS.WS return suggerimenti.ToArray(); } + #endregion + + #region ricerca dati FILTRATA (solo x dati presenti in taDocumenti) + + [System.Web.Services.WebMethod] + public string[] elencoFontiByDoc(string prefixText, int count) + { + // inizializzo risposta + List suggerimenti = new List(); + // proseguo SOLO SE min "MinCharAutocomplete" char... + if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete"))) + { + // elenco candidati + DS_utils.v_tbDocs_selFontiDataTable tabella = utils.obj.taTDSelFonti.getByLikeSearch(prefixText); + // aggiungo ogni riga... + foreach (DS_utils.v_tbDocs_selFontiRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value)); + } + } + return suggerimenti.ToArray(); + } + [System.Web.Services.WebMethod] + public string[] elencoCommesseByDoc(string prefixText, int count) + { + // inizializzo risposta + List suggerimenti = new List(); + // proseguo SOLO SE min "MinCharAutocomplete" char... + if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete"))) + { + // elenco candidati + DS_utils.v_tbDocs_selCommesseDataTable tabella = utils.obj.taTDSelCommesse.getByLikeSearch(prefixText); + // aggiungo ogni riga... + foreach (DS_utils.v_tbDocs_selCommesseRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString())); + } + } + return suggerimenti.ToArray(); + } + [System.Web.Services.WebMethod] + public string[] elencoFasiByDoc(string prefixText, int count) + { + // inizializzo risposta + List suggerimenti = new List(); + // proseguo SOLO SE min "MinCharAutocomplete" char... + if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete"))) + { + // elenco candidati + DS_utils.v_tbDocs_selFasiDataTable tabella = utils.obj.taTDSelFasi.getByLikeSearch(prefixText); + // aggiungo ogni riga... + foreach (DS_utils.v_tbDocs_selFasiRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString())); + } + } + return suggerimenti.ToArray(); + } + [System.Web.Services.WebMethod] + public string[] elencoOggettiByDoc(string prefixText, int count) + { + // inizializzo risposta + List suggerimenti = new List(); + // proseguo SOLO SE min "MinCharAutocomplete" char... + if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete"))) + { + // elenco candidati + DS_utils.v_tbDocs_selOggettoDataTable tabella = utils.obj.taTDSelOggetti.getByLikeSearch(prefixText); + // aggiungo ogni riga... + foreach (DS_utils.v_tbDocs_selOggettoRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString())); + } + } + return suggerimenti.ToArray(); + } + + #endregion [System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx index aa2a508..2e47415 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx @@ -21,35 +21,40 @@

+ AutoPostBack="True" Width="15em" />
- <%--
-
+
+
+ ServiceMethod="elencoCommesseByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" + textEmWidht="15" Visible="false" />
-
+
+ ServiceMethod="elencoFasiByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" + textEmWidht="15" Visible="false" />
- +
+ ServiceMethod="elencoFontiByDoc" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char" + textEmWidht="15" Visible="false" />
-
-
- +
+ +
+
-
--%> -
-
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs index 4d8607d..edd650c 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs @@ -25,16 +25,74 @@ namespace ETS_WS.WebUserControls { updateVisual(); } - //tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato); + tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato); + tacFasi.eh_valSelezionato += new EventHandler(tacFasi_eh_valSelezionato); + tacFonti.eh_valSelezionato += new EventHandler(tacFonti_eh_valSelezionato); + tacOggetto.eh_valSelezionato += new EventHandler(tacOggetto_eh_valSelezionato); } /// - /// imposto valori secondari + /// salvo ricerca oggetto + /// + /// + /// + void tacOggetto_eh_valSelezionato(object sender, EventArgs e) + { + if (tacOggetto.valore != "") + { + utils.obj.setSessionVal("srcOggetto", tacOggetto.valore); + } + else + { + utils.obj.emptySessionVal("srcOggetto"); + } + } + /// + /// salvo ricerca fonte + /// + /// + /// + void tacFonti_eh_valSelezionato(object sender, EventArgs e) + { + if (tacFonti.valore != "") + { + utils.obj.setSessionVal("srcFonte", tacFonti.valore); + } + else + { + utils.obj.emptySessionVal("srcFonte"); + } + } + /// + /// salvo ricerca fase + /// + /// + /// + void tacFasi_eh_valSelezionato(object sender, EventArgs e) + { + if (tacFasi.valore != "") + { + utils.obj.setSessionVal("srcFase", tacFasi.valore); + } + else + { + utils.obj.emptySessionVal("srcFase"); + } + } + /// + /// salvo ricerca commessa /// /// /// void tacCommesse_eh_valSelezionato(object sender, EventArgs e) { - updateVisual(); + if (tacCommesse.valore != "") + { + utils.obj.setSessionVal("srcCommessa", tacCommesse.valore); + } + else + { + utils.obj.emptySessionVal("srcCommessa"); + } } /// /// aggiorna tutti i valori visualizzati @@ -112,5 +170,85 @@ namespace ETS_WS.WebUserControls // salvo valore selezionato utils.obj.setSessionVal("srcSearchAll", txtSearchAll.Text.Trim()); } + /// + /// imposto visibilità campo ricerca da selezione check + /// + /// + /// + protected void chkCommessa_CheckedChanged(object sender, EventArgs e) + { + if (chkCommessa.Checked) + { + chkCommessa.Text = "Elimina filtro Commesse (autocomplete)"; + utils.obj.setSessionVal("srcCommessa", tacCommesse.valore); + tacCommesse.setFocus(); + } + else + { + chkCommessa.Text = "Filtra per Commessa"; + utils.obj.emptySessionVal("srcCommessa"); + } + tacCommesse.Visible = chkCommessa.Checked; + } + /// + /// imposto visibilità campo ricerca da selezione check + /// + /// + /// + protected void chkFase_CheckedChanged(object sender, EventArgs e) + { + if (chkFase.Checked) + { + chkFase.Text = "Elimina filtro Fasi (autocomplete)"; + utils.obj.setSessionVal("srcFase", tacFasi.valore); + tacFasi.setFocus(); + } + else + { + chkFase.Text = "Filtra per Fase"; + utils.obj.emptySessionVal("srcFase"); + } + tacFasi.Visible = chkFase.Checked; + } + /// + /// imposto visibilità campo ricerca da selezione check + /// + /// + /// + protected void chkFonte_CheckedChanged(object sender, EventArgs e) + { + if (chkFonte.Checked) + { + chkFonte.Text = "Elimina filtro Fonte (autocomplete)"; + utils.obj.setSessionVal("srcFonte", tacFonti.valore); + tacFonti.setFocus(); + } + else + { + chkFonte.Text = "Filtra per Fonte"; + utils.obj.emptySessionVal("srcFonte"); + } + tacFonti.Visible = chkFonte.Checked; + } + /// + /// imposto visibilità campo ricerca da selezione check + /// + /// + /// + protected void chkOggetto_CheckedChanged(object sender, EventArgs e) + { + if (chkOggetto.Checked) + { + chkOggetto.Text = "Elimina filtro Oggetto (autocomplete)"; + utils.obj.setSessionVal("srcOggetto", tacOggetto.valore); + tacOggetto.setFocus(); + } + else + { + chkOggetto.Text = "Filtra per Oggetto"; + utils.obj.emptySessionVal("srcOggetto"); + } + tacOggetto.Visible = chkOggetto.Checked; + } } } \ 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 index 67f4bc0..0b477b7 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs @@ -31,12 +31,84 @@ namespace ETS_WS.WebUserControls { protected global::System.Web.UI.WebControls.TextBox txtSearchAll; /// - /// btnUpdate control. + /// chkCommessa control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Button btnUpdate; + protected global::System.Web.UI.WebControls.CheckBox chkCommessa; + + /// + /// tacCommesse control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacCommesse; + + /// + /// chkFase control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkFase; + + /// + /// tacFasi control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacFasi; + + /// + /// chkFonte control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkFonte; + + /// + /// tacFonti control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacFonti; + + /// + /// chkOggetto control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkOggetto; + + /// + /// tacOggetto control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacOggetto; + + /// + /// lblFullPath control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblFullPath; } } diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx index e7ee80c..e7ff7ec 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_inputDati.ascx @@ -31,30 +31,30 @@

+ ServiceMethod="elencoCommesse" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char" />

+ ServiceMethod="elencoFasi" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" />
- +

- +
- +  
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_textAutocomplete.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_textAutocomplete.ascx index 159746c..3deb1f3 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_textAutocomplete.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_textAutocomplete.ascx @@ -7,7 +7,8 @@ <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> - + + /// in caso di modifica del solo valore text... a vuoto tipicamente... + ///
+ /// + /// + protected void txtValue_TextChanged(object sender, EventArgs e) + { + if (txtValue.Text.Trim() == "") + { + hiddenFieldID.Text = ""; + _valore = ""; + if (eh_valSelezionato != null) + { + eh_valSelezionato(this, new EventArgs()); + } + } + } + /// + /// larghezza textbox in unità EM + /// + public int textEmWidht + { + set + { + txtValue.Width = Unit.Parse(string.Format("{0}em", value)); + } + } + /// + /// imposta il focus sulal textBox + /// + public void setFocus() + { + txtValue.Focus(); + } } } \ No newline at end of file diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll index d91927c..35da49d 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 84bc1bc..ab2d1ed 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_utils.Designer.cs b/ETS_Data/DS_utils.Designer.cs index 545da92..a082559 100644 --- a/ETS_Data/DS_utils.Designer.cs +++ b/ETS_Data/DS_utils.Designer.cs @@ -36,6 +36,8 @@ namespace ETS_Data { private v_tbDocs_selFontiDataTable tablev_tbDocs_selFonti; + private v_tbDocs_selOggettoDataTable tablev_tbDocs_selOggetto; + private filesDataTable tablefiles; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -84,6 +86,9 @@ namespace ETS_Data { if ((ds.Tables["v_tbDocs_selFonti"] != null)) { base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"])); } + if ((ds.Tables["v_tbDocs_selOggetto"] != null)) { + base.Tables.Add(new v_tbDocs_selOggettoDataTable(ds.Tables["v_tbDocs_selOggetto"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -165,6 +170,16 @@ 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_selOggettoDataTable v_tbDocs_selOggetto { + get { + return this.tablev_tbDocs_selOggetto; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -260,6 +275,9 @@ namespace ETS_Data { if ((ds.Tables["v_tbDocs_selFonti"] != null)) { base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"])); } + if ((ds.Tables["v_tbDocs_selOggetto"] != null)) { + base.Tables.Add(new v_tbDocs_selOggettoDataTable(ds.Tables["v_tbDocs_selOggetto"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -332,6 +350,12 @@ namespace ETS_Data { this.tablev_tbDocs_selFonti.InitVars(); } } + this.tablev_tbDocs_selOggetto = ((v_tbDocs_selOggettoDataTable)(base.Tables["v_tbDocs_selOggetto"])); + if ((initTable == true)) { + if ((this.tablev_tbDocs_selOggetto != null)) { + this.tablev_tbDocs_selOggetto.InitVars(); + } + } this.tablefiles = ((filesDataTable)(base.Tables["files"])); if ((initTable == true)) { if ((this.tablefiles != null)) { @@ -360,6 +384,8 @@ namespace ETS_Data { base.Tables.Add(this.tablev_tbDocs_selFasi); this.tablev_tbDocs_selFonti = new v_tbDocs_selFontiDataTable(); base.Tables.Add(this.tablev_tbDocs_selFonti); + this.tablev_tbDocs_selOggetto = new v_tbDocs_selOggettoDataTable(); + base.Tables.Add(this.tablev_tbDocs_selOggetto); this.tablefiles = new filesDataTable(); base.Tables.Add(this.tablefiles); } @@ -400,6 +426,12 @@ 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_selOggetto() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializefiles() { @@ -479,6 +511,9 @@ namespace ETS_Data { [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 v_tbDocs_selOggettoRowChangeEventHandler(object sender, v_tbDocs_selOggettoRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e); @@ -2092,6 +2127,269 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_tbDocs_selOggettoDataTable : 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_selOggettoDataTable() { + this.TableName = "v_tbDocs_selOggetto"; + 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_selOggettoDataTable(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_selOggettoDataTable(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_selOggettoRow this[int index] { + get { + return ((v_tbDocs_selOggettoRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_tbDocs_selOggettoRow(v_tbDocs_selOggettoRow 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_selOggettoRow Addv_tbDocs_selOggettoRow(string value, string label) { + v_tbDocs_selOggettoRow rowv_tbDocs_selOggettoRow = ((v_tbDocs_selOggettoRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_tbDocs_selOggettoRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_tbDocs_selOggettoRow); + return rowv_tbDocs_selOggettoRow; + } + + [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_selOggettoDataTable cln = ((v_tbDocs_selOggettoDataTable)(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_selOggettoDataTable(); + } + + [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 = 250; + this.columnlabel.MaxLength = 250; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selOggettoRow Newv_tbDocs_selOggettoRow() { + return ((v_tbDocs_selOggettoRow)(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_selOggettoRow(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_selOggettoRow); + } + + [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_selOggettoRowChanged != null)) { + this.v_tbDocs_selOggettoRowChanged(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(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_selOggettoRowChanging != null)) { + this.v_tbDocs_selOggettoRowChanging(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(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_selOggettoRowDeleted != null)) { + this.v_tbDocs_selOggettoRowDeleted(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(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_selOggettoRowDeleting != null)) { + this.v_tbDocs_selOggettoRowDeleting(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(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_selOggettoRow(v_tbDocs_selOggettoRow 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_selOggettoDataTable"; + 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. /// @@ -2739,6 +3037,77 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_tbDocs_selOggettoRow : global::System.Data.DataRow { + + private v_tbDocs_selOggettoDataTable tablev_tbDocs_selOggetto; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selOggettoRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_tbDocs_selOggetto = ((v_tbDocs_selOggettoDataTable)(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_selOggetto.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selOggetto\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selOggetto.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_selOggetto.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selOggetto\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selOggetto.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_selOggetto.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_selOggetto.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_selOggetto.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_selOggetto.labelColumn] = global::System.Convert.DBNull; + } + } + /// ///Represents strongly named DataRow class. /// @@ -3070,6 +3439,40 @@ namespace ETS_Data { } } + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public class v_tbDocs_selOggettoRowChangeEvent : global::System.EventArgs { + + private v_tbDocs_selOggettoRow 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_selOggettoRowChangeEvent(v_tbDocs_selOggettoRow 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_selOggettoRow 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 /// @@ -4015,7 +4418,7 @@ namespace ETS_Data.DS_utilsTableAdapters { 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].CommandText = "dbo.stp_tbDocs_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, "", "", "")); @@ -4254,6 +4657,197 @@ 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_selOggettoTableAdapter : 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_selOggettoTableAdapter() { + 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_selOggetto"; + 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_selOggetto"; + 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_Oggetto_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_selOggettoDataTable 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_selOggettoDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_tbDocs_selOggettoDataTable dataTable = new DS_utils.v_tbDocs_selOggettoDataTable(); + 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_selOggettoDataTable 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_selOggettoDataTable dataTable = new DS_utils.v_tbDocs_selOggettoDataTable(); + 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 82b89cf..e84afd8 100644 --- a/ETS_Data/DS_utils.xsd +++ b/ETS_Data/DS_utils.xsd @@ -141,10 +141,10 @@ ORDER BY value - + - dbo.stp_Fasi_likeSearch + dbo.stp_tbDocs_Fasi_likeSearch @@ -183,6 +183,35 @@ ORDER BY value + + + + + + SELECT value, label FROM dbo.v_tbDocs_selOggetto + + + + + + + + + + + + + + dbo.stp_tbDocs_Oggetto_likeSearch + + + + + + + + + @@ -309,6 +338,26 @@ ORDER BY value + + + + + + + + + + + + + + + + + + + + diff --git a/ETS_Data/DS_utils.xss b/ETS_Data/DS_utils.xss index f48bcaf..7dd8d49 100644 --- a/ETS_Data/DS_utils.xss +++ b/ETS_Data/DS_utils.xss @@ -6,13 +6,14 @@ --> - - - - - + + + + - + + + \ No newline at end of file diff --git a/ETS_Data/utils.cs b/ETS_Data/utils.cs index de909fd..a636c2b 100644 --- a/ETS_Data/utils.cs +++ b/ETS_Data/utils.cs @@ -16,6 +16,10 @@ namespace ETS_Data public DS_utilsTableAdapters.v_selFontiTableAdapter taSelFonti; public DS_utilsTableAdapters.v_selCommesseTableAdapter taSelCommesse; public DS_utilsTableAdapters.v_selFasiTableAdapter taSelFasi; + public DS_utilsTableAdapters.v_tbDocs_selFontiTableAdapter taTDSelFonti; + public DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter taTDSelCommesse; + public DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter taTDSelFasi; + public DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter taTDSelOggetti; public DS_WebScipTableAdapters.tbDocumentiTableAdapter taDoc; @@ -29,6 +33,10 @@ namespace ETS_Data taSelFonti = new DS_utilsTableAdapters.v_selFontiTableAdapter(); taSelCommesse = new DS_utilsTableAdapters.v_selCommesseTableAdapter(); taSelFasi = new DS_utilsTableAdapters.v_selFasiTableAdapter(); + taTDSelFonti = new DS_utilsTableAdapters.v_tbDocs_selFontiTableAdapter(); + taTDSelCommesse = new DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter(); + taTDSelFasi = new DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter(); + taTDSelOggetti = new DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter(); taDoc = new DS_WebScipTableAdapters.tbDocumentiTableAdapter(); } /// @@ -44,6 +52,10 @@ namespace ETS_Data taSelFonti.Connection.ConnectionString = connStringETS_WS; taSelCommesse.Connection.ConnectionString = connStringETS_WS; taSelFasi.Connection.ConnectionString = connStringETS_WS; + taTDSelFonti.Connection.ConnectionString = connStringETS_WS; + taTDSelCommesse.Connection.ConnectionString = connStringETS_WS; + taTDSelFasi.Connection.ConnectionString = connStringETS_WS; + taTDSelOggetti.Connection.ConnectionString = connStringETS_WS; taDoc.Connection.ConnectionString = connStringETS_WS; } @@ -224,6 +236,23 @@ namespace ETS_Data return _done; } + /// + /// svuota una variabile dalla session + /// + /// + public bool emptySessionVal(string nome) + { + bool _done = false; + try + { + HttpContext.Current.Session.Remove(nome); + _done = true; + } + catch + { } + return _done; + } + #endregion #region gestione file config