From e1bdbe80669766558b29f9ed815b5d356def4767 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 15 Feb 2022 15:36:04 +0100 Subject: [PATCH] Update stored x gestione dipendenti con CodHw + mod editing --- .../WebUserControls/mod_adminDipendenti.ascx | 12 +++++ GPW_Data/DS_Applicazione.Designer.cs | 14 ++++-- GPW_Data/DS_Applicazione.xsd | 47 ++++++++++--------- GPW_Data/DS_Applicazione.xss | 32 ++++++------- 4 files changed, 63 insertions(+), 42 deletions(-) diff --git a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx index b393a5c..443e487 100644 --- a/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx +++ b/GPW_Admin/WebUserControls/mod_adminDipendenti.ascx @@ -151,6 +151,17 @@ + + + + + + + + + + +
@@ -320,6 +331,7 @@ + diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs index d599f5c..7fa975a 100644 --- a/GPW_Data/DS_Applicazione.Designer.cs +++ b/GPW_Data/DS_Applicazione.Designer.cs @@ -22934,6 +22934,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataAssunzione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataCessazione", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodHw", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxDipendente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } @@ -24291,6 +24292,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p string gruppo, global::System.Nullable dataAssunzione, global::System.Nullable dataCessazione, + string CodHw, global::System.Nullable Original_idxDipendente) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; if ((matricola == null)) { @@ -24389,11 +24391,17 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p else { command.Parameters[16].Value = global::System.DBNull.Value; } - if ((Original_idxDipendente.HasValue == true)) { - command.Parameters[17].Value = ((int)(Original_idxDipendente.Value)); + if ((CodHw == null)) { + command.Parameters[17].Value = global::System.DBNull.Value; } else { - command.Parameters[17].Value = global::System.DBNull.Value; + command.Parameters[17].Value = ((string)(CodHw)); + } + if ((Original_idxDipendente.HasValue == true)) { + command.Parameters[18].Value = ((int)(Original_idxDipendente.Value)); + } + else { + command.Parameters[18].Value = global::System.DBNull.Value; } global::System.Data.ConnectionState previousConnectionState = command.Connection.State; if (((command.Connection.State & global::System.Data.ConnectionState.Open) diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd index ba540fd..608c9bc 100644 --- a/GPW_Data/DS_Applicazione.xsd +++ b/GPW_Data/DS_Applicazione.xsd @@ -4,8 +4,8 @@ - - + + @@ -1092,6 +1092,7 @@ SELECT idxDipendente, matricola, CF, Cognome, Nome, dataNascita, luogoNascita, p + @@ -3118,7 +3119,7 @@ SELECT gruppo, descrGruppo, codExt, exportEnab FROM AnagGruppi WHERE (gruppo = @ - + dbo.stp_AG_delete @@ -3129,7 +3130,7 @@ SELECT gruppo, descrGruppo, codExt, exportEnab FROM AnagGruppi WHERE (gruppo = @ - + dbo.stp_AG_insert @@ -3209,7 +3210,7 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - + dbo.stp_Dip2Gruppi_delete @@ -3221,7 +3222,7 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - + dbo.stp_Dip2Gruppi_insert @@ -3703,7 +3704,7 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - + @@ -4133,45 +4134,45 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - + - + - + - + - + - + - + - + @@ -4284,14 +4285,14 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND - - - - - - - - + + + + + + + + \ No newline at end of file diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss index 417c017..8321143 100644 --- a/GPW_Data/DS_Applicazione.xss +++ b/GPW_Data/DS_Applicazione.xss @@ -4,32 +4,32 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + - + - - + + - + - - - + + + @@ -44,7 +44,7 @@ - + 1046 @@ -87,11 +87,11 @@ - 330 - 1055 + 332 + 1001 - 330 + 332 962 @@ -108,7 +108,7 @@ - + 286 @@ -124,7 +124,7 @@ - + 428