diff --git a/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs b/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs index 55d0347..a948101 100644 --- a/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs +++ b/ETS-WS/ETS-WS/WS/AutoCompletamento.asmx.cs @@ -329,6 +329,45 @@ namespace ETS_WS.WS } return suggerimenti.ToArray(); } + [System.Web.Services.WebMethod] + public string[] elencoRedattoriByDoc(string prefixText, int count, string contextKey) + { + // leggo dalla session utente i valori periodo desiderati... + DateTime inizio = DateTime.Now.AddYears(-1); + DateTime fine = DateTime.Now; + try + { + int charPos = contextKey.IndexOf("#"); + inizio = Convert.ToDateTime(contextKey.Substring(0, charPos)); + fine = Convert.ToDateTime(contextKey.Substring(charPos + 1)); + } + catch + { } + // 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_selRedattoreDataTable tabella = utils.obj.taTDSelRedattore.getByLikeSearch(inizio, fine, prefixText); + // contatore risultati + int i = 0; + // aggiungo ogni riga... + foreach (DS_utils.v_tbDocs_selRedattoreRow riga in tabella) + { + //suggerimenti.Add(riga.label); + suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString())); + // controllo se ho meno risultati di quanti richiesti x filtraggio + if (i == maxResults) + { + suggerimenti.Add(string.Format("+{0}...", tabella.Rows.Count - maxResults)); + break; + } + i++; + } + } + return suggerimenti.ToArray(); + } #endregion diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx index 6981431..a71c12b 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_archivioDocumenti.ascx @@ -133,6 +133,7 @@ + diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx index c585614..c7c72fd 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx @@ -15,7 +15,7 @@
<%--area dx: update + scelta dim pagina--%>
-
+
@@ -26,7 +26,7 @@  / 
- +
@@ -64,9 +64,14 @@
+
+ +
+ +

- +
diff --git a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs index 20b5578..394259c 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.cs @@ -136,8 +136,9 @@ namespace ETS_WS.WebUserControls string fase = utils.obj.StringSessionObj("srcFase"); string fonte = utils.obj.StringSessionObj("srcFonte"); string InOut = utils.obj.StringSessionObj("srcInOut"); + string redattore = utils.obj.StringSessionObj("srcRedattore"); string ricercaLibera = txtSearchAll.Text.Trim(); - lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, commessa, fase, fonte, InOut, ricercaLibera).ToString(); + lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, commessa, fase, fonte, InOut, redattore, ricercaLibera).ToString(); } /// @@ -226,7 +227,27 @@ namespace ETS_WS.WebUserControls } rblInOut.Visible = chkInOut.Checked; updateVisual(); - } + } + /// + /// imposto visibilità campo ricerca da selezione check + /// + /// + /// + protected void chkRedattore_CheckedChanged(object sender, EventArgs e) + { + if (chkRedattore.Checked) + { + tacRedattore.contextKey = string.Format("{0}#{1}", utils.obj.StringSessionObj("_inizio"), utils.obj.StringSessionObj("_fine")); + chkRedattore.Text = "Elimina Filtro Redattore"; + tacRedattore.setFocus(); + } + else + { + chkRedattore.Text = "Filtra Redattore"; + } + tacRedattore.Visible = chkRedattore.Checked; + updateVisual(); + } /// /// selezionata nuova dim pagina /// @@ -279,6 +300,14 @@ namespace ETS_WS.WebUserControls { utils.obj.emptySessionVal("srcInOut"); } + if (chkRedattore.Checked) + { + utils.obj.setSessionVal("srcRedattore", tacRedattore.valore); + } + else + { + utils.obj.emptySessionVal("srcRedattore"); + } } /// /// richiede update valori @@ -303,6 +332,6 @@ namespace ETS_WS.WebUserControls eh_reqSearch(this, new EventArgs()); } } - + } } \ 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 3c139c2..c39bc06 100644 --- a/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs +++ b/ETS-WS/ETS-WS/WebUserControls/mod_filtroRicerca.ascx.designer.cs @@ -129,6 +129,24 @@ namespace ETS_WS.WebUserControls { /// protected global::System.Web.UI.WebControls.RadioButtonList rblInOut; + /// + /// chkRedattore control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkRedattore; + + /// + /// tacRedattore control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacRedattore; + /// /// lblCerca control. /// diff --git a/ETS-WS/ETS-WS/bin/ETS-WS.dll b/ETS-WS/ETS-WS/bin/ETS-WS.dll index 4e457ca..5470697 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 f6826f8..070eb5d 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 56027fe..c1ab676 100644 --- a/ETS_Data/DS_WebScip.Designer.cs +++ b/ETS_Data/DS_WebScip.Designer.cs @@ -5052,6 +5052,7 @@ FROM tbDocumenti"; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redattore", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchAll", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5067,6 +5068,7 @@ FROM tbDocumenti"; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redattore", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchAll", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; @@ -5079,6 +5081,7 @@ FROM tbDocumenti"; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fase", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Fonte", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InOut", global::System.Data.SqlDbType.NVarChar, 3, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Redattore", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchAll", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -5229,7 +5232,7 @@ FROM tbDocumenti"; [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_WebScip.tbDocumentiDataTable getBySearch_paged(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable startRowIndex, global::System.Nullable maximumRows, string SortExpression) { + public virtual DS_WebScip.tbDocumentiDataTable getBySearch_paged(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll, global::System.Nullable startRowIndex, global::System.Nullable maximumRows, string SortExpression) { this.Adapter.SelectCommand = this.CommandCollection[5]; if ((inizio.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(inizio.Value)); @@ -5267,29 +5270,35 @@ FROM tbDocumenti"; else { this.Adapter.SelectCommand.Parameters[6].Value = ((string)(InOut)); } - if ((searchAll == null)) { + if ((Redattore == null)) { this.Adapter.SelectCommand.Parameters[7].Value = global::System.DBNull.Value; } else { - this.Adapter.SelectCommand.Parameters[7].Value = ((string)(searchAll)); + this.Adapter.SelectCommand.Parameters[7].Value = ((string)(Redattore)); } - if ((startRowIndex.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[8].Value = ((int)(startRowIndex.Value)); - } - else { + if ((searchAll == null)) { this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; } - if ((maximumRows.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[9].Value = ((int)(maximumRows.Value)); + else { + this.Adapter.SelectCommand.Parameters[8].Value = ((string)(searchAll)); + } + if ((startRowIndex.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[9].Value = ((int)(startRowIndex.Value)); } else { this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; } - if ((SortExpression == null)) { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + if ((maximumRows.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[10].Value = ((int)(maximumRows.Value)); } else { - this.Adapter.SelectCommand.Parameters[10].Value = ((string)(SortExpression)); + this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; + } + if ((SortExpression == null)) { + this.Adapter.SelectCommand.Parameters[11].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[11].Value = ((string)(SortExpression)); } DS_WebScip.tbDocumentiDataTable dataTable = new DS_WebScip.tbDocumentiDataTable(); this.Adapter.Fill(dataTable); @@ -6305,7 +6314,7 @@ FROM 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 object getBySearch_Count(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll, global::System.Nullable startRowIndex, global::System.Nullable maximumRows, string SortExpression) { + public virtual object getBySearch_Count(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll, global::System.Nullable startRowIndex, global::System.Nullable maximumRows, string SortExpression) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((inizio.HasValue == true)) { command.Parameters[1].Value = ((System.DateTime)(inizio.Value)); @@ -6343,29 +6352,35 @@ FROM tbDocumenti"; else { command.Parameters[6].Value = ((string)(InOut)); } - if ((searchAll == null)) { + if ((Redattore == null)) { command.Parameters[7].Value = global::System.DBNull.Value; } else { - command.Parameters[7].Value = ((string)(searchAll)); + command.Parameters[7].Value = ((string)(Redattore)); } - if ((startRowIndex.HasValue == true)) { - command.Parameters[8].Value = ((int)(startRowIndex.Value)); - } - else { + if ((searchAll == null)) { command.Parameters[8].Value = global::System.DBNull.Value; } - if ((maximumRows.HasValue == true)) { - command.Parameters[9].Value = ((int)(maximumRows.Value)); + else { + command.Parameters[8].Value = ((string)(searchAll)); + } + if ((startRowIndex.HasValue == true)) { + command.Parameters[9].Value = ((int)(startRowIndex.Value)); } else { command.Parameters[9].Value = global::System.DBNull.Value; } - if ((SortExpression == null)) { - command.Parameters[10].Value = global::System.DBNull.Value; + if ((maximumRows.HasValue == true)) { + command.Parameters[10].Value = ((int)(maximumRows.Value)); } else { - command.Parameters[10].Value = ((string)(SortExpression)); + command.Parameters[10].Value = global::System.DBNull.Value; + } + if ((SortExpression == null)) { + command.Parameters[11].Value = global::System.DBNull.Value; + } + else { + command.Parameters[11].Value = ((string)(SortExpression)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) @@ -6393,7 +6408,7 @@ FROM 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 object getBySearch_Count_only(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string searchAll) { + public virtual object getBySearch_Count_only(global::System.Nullable inizio, global::System.Nullable fine, string Commessa, string Fase, string Fonte, string InOut, string Redattore, string searchAll) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((inizio.HasValue == true)) { command.Parameters[1].Value = ((System.DateTime)(inizio.Value)); @@ -6431,11 +6446,17 @@ FROM tbDocumenti"; else { command.Parameters[6].Value = ((string)(InOut)); } - if ((searchAll == null)) { + if ((Redattore == null)) { command.Parameters[7].Value = global::System.DBNull.Value; } else { - command.Parameters[7].Value = ((string)(searchAll)); + command.Parameters[7].Value = ((string)(Redattore)); + } + if ((searchAll == null)) { + command.Parameters[8].Value = global::System.DBNull.Value; + } + else { + command.Parameters[8].Value = ((string)(searchAll)); } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) diff --git a/ETS_Data/DS_WebScip.xsd b/ETS_Data/DS_WebScip.xsd index 81b63fc..9135d49 100644 --- a/ETS_Data/DS_WebScip.xsd +++ b/ETS_Data/DS_WebScip.xsd @@ -388,6 +388,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A + @@ -408,6 +409,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A + @@ -425,6 +427,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A + @@ -459,7 +462,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A - + dbo.stp_tbDocs_updateFile @@ -473,7 +476,7 @@ SELECT idxFile, NomeFile, Nome, fullPath, userId, isRed, NrProtocollo, Numero, A - + dbo.stp_tbDocs_update @@ -724,7 +727,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - + @@ -796,7 +799,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - + @@ -964,7 +967,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - + @@ -992,7 +995,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - + @@ -1006,7 +1009,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - + @@ -1040,8 +1043,8 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i - - + + \ No newline at end of file diff --git a/ETS_Data/DS_utils.Designer.cs b/ETS_Data/DS_utils.Designer.cs index 769c60c..45a84d9 100644 --- a/ETS_Data/DS_utils.Designer.cs +++ b/ETS_Data/DS_utils.Designer.cs @@ -46,6 +46,8 @@ namespace ETS_Data { private AnagSuggestTagsDataTable tableAnagSuggestTags; + private v_tbDocs_selRedattoreDataTable tablev_tbDocs_selRedattore; + private filesDataTable tablefiles; private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; @@ -109,6 +111,9 @@ namespace ETS_Data { if ((ds.Tables["AnagSuggestTags"] != null)) { base.Tables.Add(new AnagSuggestTagsDataTable(ds.Tables["AnagSuggestTags"])); } + if ((ds.Tables["v_tbDocs_selRedattore"] != null)) { + base.Tables.Add(new v_tbDocs_selRedattoreDataTable(ds.Tables["v_tbDocs_selRedattore"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -240,6 +245,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_selRedattoreDataTable v_tbDocs_selRedattore { + get { + return this.tablev_tbDocs_selRedattore; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -350,6 +365,9 @@ namespace ETS_Data { if ((ds.Tables["AnagSuggestTags"] != null)) { base.Tables.Add(new AnagSuggestTagsDataTable(ds.Tables["AnagSuggestTags"])); } + if ((ds.Tables["v_tbDocs_selRedattore"] != null)) { + base.Tables.Add(new v_tbDocs_selRedattoreDataTable(ds.Tables["v_tbDocs_selRedattore"])); + } if ((ds.Tables["files"] != null)) { base.Tables.Add(new filesDataTable(ds.Tables["files"])); } @@ -452,6 +470,12 @@ namespace ETS_Data { this.tableAnagSuggestTags.InitVars(); } } + this.tablev_tbDocs_selRedattore = ((v_tbDocs_selRedattoreDataTable)(base.Tables["v_tbDocs_selRedattore"])); + if ((initTable == true)) { + if ((this.tablev_tbDocs_selRedattore != null)) { + this.tablev_tbDocs_selRedattore.InitVars(); + } + } this.tablefiles = ((filesDataTable)(base.Tables["files"])); if ((initTable == true)) { if ((this.tablefiles != null)) { @@ -490,6 +514,8 @@ namespace ETS_Data { base.Tables.Add(this.tablev_selEmailFornitori); this.tableAnagSuggestTags = new AnagSuggestTagsDataTable(); base.Tables.Add(this.tableAnagSuggestTags); + this.tablev_tbDocs_selRedattore = new v_tbDocs_selRedattoreDataTable(); + base.Tables.Add(this.tablev_tbDocs_selRedattore); this.tablefiles = new filesDataTable(); base.Tables.Add(this.tablefiles); } @@ -560,6 +586,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_selRedattore() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private bool ShouldSerializefiles() { @@ -654,6 +686,9 @@ namespace ETS_Data { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void AnagSuggestTagsRowChangeEventHandler(object sender, AnagSuggestTagsRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public delegate void v_tbDocs_selRedattoreRowChangeEventHandler(object sender, v_tbDocs_selRedattoreRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e); @@ -3608,6 +3643,269 @@ namespace ETS_Data { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class v_tbDocs_selRedattoreDataTable : 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_selRedattoreDataTable() { + this.TableName = "v_tbDocs_selRedattore"; + 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_selRedattoreDataTable(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_selRedattoreDataTable(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_selRedattoreRow this[int index] { + get { + return ((v_tbDocs_selRedattoreRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selRedattoreRowChangeEventHandler v_tbDocs_selRedattoreRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selRedattoreRowChangeEventHandler v_tbDocs_selRedattoreRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selRedattoreRowChangeEventHandler v_tbDocs_selRedattoreRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public event v_tbDocs_selRedattoreRowChangeEventHandler v_tbDocs_selRedattoreRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void Addv_tbDocs_selRedattoreRow(v_tbDocs_selRedattoreRow 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_selRedattoreRow Addv_tbDocs_selRedattoreRow(string value, string label) { + v_tbDocs_selRedattoreRow rowv_tbDocs_selRedattoreRow = ((v_tbDocs_selRedattoreRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + value, + label}; + rowv_tbDocs_selRedattoreRow.ItemArray = columnValuesArray; + this.Rows.Add(rowv_tbDocs_selRedattoreRow); + return rowv_tbDocs_selRedattoreRow; + } + + [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_selRedattoreDataTable cln = ((v_tbDocs_selRedattoreDataTable)(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_selRedattoreDataTable(); + } + + [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 = 50; + this.columnlabel.MaxLength = 50; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public v_tbDocs_selRedattoreRow Newv_tbDocs_selRedattoreRow() { + return ((v_tbDocs_selRedattoreRow)(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_selRedattoreRow(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_selRedattoreRow); + } + + [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_selRedattoreRowChanged != null)) { + this.v_tbDocs_selRedattoreRowChanged(this, new v_tbDocs_selRedattoreRowChangeEvent(((v_tbDocs_selRedattoreRow)(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_selRedattoreRowChanging != null)) { + this.v_tbDocs_selRedattoreRowChanging(this, new v_tbDocs_selRedattoreRowChangeEvent(((v_tbDocs_selRedattoreRow)(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_selRedattoreRowDeleted != null)) { + this.v_tbDocs_selRedattoreRowDeleted(this, new v_tbDocs_selRedattoreRowChangeEvent(((v_tbDocs_selRedattoreRow)(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_selRedattoreRowDeleting != null)) { + this.v_tbDocs_selRedattoreRowDeleting(this, new v_tbDocs_selRedattoreRowChangeEvent(((v_tbDocs_selRedattoreRow)(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_selRedattoreRow(v_tbDocs_selRedattoreRow 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_selRedattoreDataTable"; + 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. /// @@ -4543,6 +4841,77 @@ namespace ETS_Data { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class v_tbDocs_selRedattoreRow : global::System.Data.DataRow { + + private v_tbDocs_selRedattoreDataTable tablev_tbDocs_selRedattore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + internal v_tbDocs_selRedattoreRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tablev_tbDocs_selRedattore = ((v_tbDocs_selRedattoreDataTable)(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_selRedattore.valueColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selRedattore\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selRedattore.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_selRedattore.labelColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selRedattore\' is DBNull.", e); + } + } + set { + this[this.tablev_tbDocs_selRedattore.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_selRedattore.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_selRedattore.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_selRedattore.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_selRedattore.labelColumn] = global::System.Convert.DBNull; + } + } + /// ///Represents strongly named DataRow class. /// @@ -5044,6 +5413,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_selRedattoreRowChangeEvent : global::System.EventArgs { + + private v_tbDocs_selRedattoreRow 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_selRedattoreRowChangeEvent(v_tbDocs_selRedattoreRow 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_selRedattoreRow 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 /// @@ -7349,6 +7752,211 @@ 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_selRedattoreTableAdapter : 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_selRedattoreTableAdapter() { + 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_selRedattore"; + 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_selRedattore"; + 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_Redattore_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("@inizio", 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("@fine", 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("@search", global::System.Data.SqlDbType.NVarChar, 250, 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_selRedattoreDataTable 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_selRedattoreDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_utils.v_tbDocs_selRedattoreDataTable dataTable = new DS_utils.v_tbDocs_selRedattoreDataTable(); + 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_selRedattoreDataTable getByLikeSearch(global::System.Nullable inizio, global::System.Nullable fine, string search) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((inizio.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(inizio.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + if ((fine.HasValue == true)) { + this.Adapter.SelectCommand.Parameters[2].Value = ((System.DateTime)(fine.Value)); + } + else { + this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value; + } + if ((search == null)) { + this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[3].Value = ((string)(search)); + } + DS_utils.v_tbDocs_selRedattoreDataTable dataTable = new DS_utils.v_tbDocs_selRedattoreDataTable(); + 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 91b2502..57ae40b 100644 --- a/ETS_Data/DS_utils.xsd +++ b/ETS_Data/DS_utils.xsd @@ -353,6 +353,37 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom + + + + + + SELECT value, label FROM dbo.v_tbDocs_selRedattore + + + + + + + + + + + + + + dbo.stp_tbDocs_Redattore_likeSearch + + + + + + + + + + + @@ -361,7 +392,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -381,7 +412,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -395,7 +426,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -409,7 +440,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -419,7 +450,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -439,7 +470,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -459,7 +490,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -479,7 +510,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -499,7 +530,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -519,7 +550,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -528,7 +559,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -548,7 +579,7 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom - + @@ -561,6 +592,26 @@ SELECT TagAutocomplete FROM AnagSuggestTags WHERE (TagAutocomplete = @TagAutocom + + + + + + + + + + + + + + + + + + + + diff --git a/ETS_Data/DS_utils.xss b/ETS_Data/DS_utils.xss index 9fc12d7..9f49ac7 100644 --- a/ETS_Data/DS_utils.xss +++ b/ETS_Data/DS_utils.xss @@ -4,20 +4,21 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/ETS_Data/utils.cs b/ETS_Data/utils.cs index 25412de..459769f 100644 --- a/ETS_Data/utils.cs +++ b/ETS_Data/utils.cs @@ -21,6 +21,7 @@ namespace ETS_Data public DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter taTDSelCommesse; public DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter taTDSelFasi; public DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter taTDSelOggetti; + public DS_utilsTableAdapters.v_tbDocs_selRedattoreTableAdapter taTDSelRedattore; public DS_utilsTableAdapters.stp_calcolaProtocolloTableAdapter taCalcProto; public DS_utilsTableAdapters.v_selEmailFornitoriTableAdapter taEmailForn; public DS_utilsTableAdapters.AnagSuggestTagsTableAdapter taAST; @@ -43,6 +44,7 @@ namespace ETS_Data taTDSelCommesse = new DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter(); taTDSelFasi = new DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter(); taTDSelOggetti = new DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter(); + taTDSelRedattore = new DS_utilsTableAdapters.v_tbDocs_selRedattoreTableAdapter(); taCalcProto = new DS_utilsTableAdapters.stp_calcolaProtocolloTableAdapter(); taEmailForn = new DS_utilsTableAdapters.v_selEmailFornitoriTableAdapter(); taAST = new DS_utilsTableAdapters.AnagSuggestTagsTableAdapter(); @@ -67,6 +69,7 @@ namespace ETS_Data taTDSelCommesse.Connection.ConnectionString = connStringETS_WS; taTDSelFasi.Connection.ConnectionString = connStringETS_WS; taTDSelOggetti.Connection.ConnectionString = connStringETS_WS; + taTDSelRedattore.Connection.ConnectionString = connStringETS_WS; taCalcProto.Connection.ConnectionString = connStringETS_WS; taEmailForn.Connection.ConnectionString = connStringETS_WS; taAST.Connection.ConnectionString = connStringETS_WS; @@ -125,7 +128,7 @@ namespace ETS_Data } } /// - /// utente correntemente connesso (Formato Cognome, nome) + /// utente correntemente connesso (Formato Cognome nome) /// public string currUserCognomeNome { @@ -143,7 +146,7 @@ namespace ETS_Data { // cerco user da elenco... DS_Anagrafica.UtentiRow riga = (DS_Anagrafica.UtentiRow)taUtenti.getByKey(currUserAD)[0]; - answ = string.Format("{0} {1}", riga.Cognome.ToUpper(), riga.Nome); + answ = string.Format("{0} {1}", riga.Cognome, riga.Nome); setSessionVal("currUserCognomeNome", answ); } } @@ -153,6 +156,34 @@ namespace ETS_Data } } /// + /// utente correntemente connesso (Formato Nome Cognome) + /// + public string currUserNomeCognome + { + get + { + string answ = "-"; + try + { + // controllo in sessione... + if (isInSessionObject("currUserNomeCognome")) + { + answ = StringSessionObj("currUserNomeCognome"); + } + else + { + // cerco user da elenco... + DS_Anagrafica.UtentiRow riga = (DS_Anagrafica.UtentiRow)taUtenti.getByKey(currUserAD)[0]; + answ = string.Format("{0} {1}", riga.Nome, riga.Cognome); + setSessionVal("currUserNomeCognome", answ); + } + } + catch + { } + return answ; + } + } + /// /// EMAIL utente correntemente connesso /// public string currUserEmail