From 09f0f17fcd66aee3fedabe1ba3fd37b22d1aeeb7 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 29 Oct 2021 17:15:32 +0200 Subject: [PATCH] Tolta paginazione SQL dopo aver ottimizzato DB --- .../WebUserControls/mod_adminProgetti.ascx | 4 +- GPW_Data/DS_Applicazione.Designer.cs | 30 +------- GPW_Data/DS_Applicazione.xsd | 68 +++++++++---------- 3 files changed, 36 insertions(+), 66 deletions(-) diff --git a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx index d40bab5..5f34f85 100644 --- a/GPW_Admin/WebUserControls/mod_adminProgetti.ascx +++ b/GPW_Admin/WebUserControls/mod_adminProgetti.ascx @@ -173,7 +173,7 @@ - + @@ -195,8 +195,6 @@ - <%-- - --%> diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index c8dce5c..caa6954 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -24648,8 +24648,6 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjArch", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjZeroH", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@showPrjStar", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FirstRecord", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumRecord", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[1].Connection = this.Connection; this._commandCollection[1].CommandText = "dbo.stp_AP_delete"; @@ -24726,7 +24724,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(DS_Applicazione.AnagProgettiDataTable dataTable, global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo, string gruppo, global::System.Nullable idxCliente, global::System.Nullable showPrjArch, global::System.Nullable showPrjZeroH, global::System.Nullable showPrjStar, global::System.Nullable FirstRecord, global::System.Nullable NumRecord) { + public virtual int Fill(DS_Applicazione.AnagProgettiDataTable dataTable, global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo, string gruppo, global::System.Nullable idxCliente, global::System.Nullable showPrjArch, global::System.Nullable showPrjZeroH, global::System.Nullable showPrjStar) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((idxDipendente.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); @@ -24776,18 +24774,6 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv else { this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; } - if ((FirstRecord.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[9].Value = ((int)(FirstRecord.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((NumRecord.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[10].Value = ((int)(NumRecord.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; - } if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } @@ -24799,7 +24785,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual DS_Applicazione.AnagProgettiDataTable GetData(global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo, string gruppo, global::System.Nullable idxCliente, global::System.Nullable showPrjArch, global::System.Nullable showPrjZeroH, global::System.Nullable showPrjStar, global::System.Nullable FirstRecord, global::System.Nullable NumRecord) { + public virtual DS_Applicazione.AnagProgettiDataTable GetData(global::System.Nullable idxDipendente, global::System.Nullable dataFrom, global::System.Nullable dataTo, string gruppo, global::System.Nullable idxCliente, global::System.Nullable showPrjArch, global::System.Nullable showPrjZeroH, global::System.Nullable showPrjStar) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((idxDipendente.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxDipendente.Value)); @@ -24849,18 +24835,6 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv else { this.Adapter.SelectCommand.Parameters[8].Value = global::System.DBNull.Value; } - if ((FirstRecord.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[9].Value = ((int)(FirstRecord.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[9].Value = global::System.DBNull.Value; - } - if ((NumRecord.HasValue == true)) { - this.Adapter.SelectCommand.Parameters[10].Value = ((int)(NumRecord.Value)); - } - else { - this.Adapter.SelectCommand.Parameters[10].Value = global::System.DBNull.Value; - } DS_Applicazione.AnagProgettiDataTable dataTable = new DS_Applicazione.AnagProgettiDataTable(); this.Adapter.Fill(dataTable); return dataTable; diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd index 46cd561..ece0bdb 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -1349,8 +1349,6 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - - @@ -1434,7 +1432,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - + dbo.stp_AP_Expl_getDataTot @@ -1452,7 +1450,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - + dbo.stp_AP_insertQuery @@ -1465,7 +1463,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - + dbo.stp_AP_updateAttivo @@ -1477,7 +1475,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - + dbo.stp_AP_update @@ -1491,7 +1489,7 @@ SELECT idxCliente, RagSociale, indirizzo, CAP, citta, prov, tel, url, email, pIv - + dbo.stp_AP_updateStarred @@ -3022,7 +3020,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3046,7 +3044,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3103,7 +3101,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3141,7 +3139,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3269,7 +3267,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3369,7 +3367,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3421,7 +3419,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3435,7 +3433,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3485,7 +3483,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3521,7 +3519,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3541,7 +3539,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3562,7 +3560,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3598,7 +3596,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3623,7 +3621,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3639,7 +3637,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3660,7 +3658,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3726,7 +3724,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3783,7 +3781,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3824,7 +3822,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3845,7 +3843,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3854,7 +3852,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3862,7 +3860,7 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - + @@ -3993,12 +3991,12 @@ SELECT DataOra, evento, commento FROM RegistroEventi WHERE (DataOra = @DataOra) - - - - - - + + + + + + \ No newline at end of file