-
diff --git a/GPW_Admin/gruppi.aspx.cs b/GPW_Admin/gruppi.aspx.cs
index 6daaa33..fdefdae 100644
--- a/GPW_Admin/gruppi.aspx.cs
+++ b/GPW_Admin/gruppi.aspx.cs
@@ -3,8 +3,19 @@ using System;
namespace GPW_Admin
{
- public partial class gruppi : BasePage
+ public partial class gruppi : BasePage, IDisposable
{
+
+ public override void Dispose()
+ {
+ mod_pageSize.eh_nuovaSize -= Mod_pageSize_eh_nuovaSize;
+ cmp_elencoGruppi.eh_doRefresh -= Cmp_elencoGruppi_eh_doRefresh;
+ cmp_elencoGruppi.eh_doReset -= Cmp_elencoGruppi_eh_doReset;
+ cmp_dip2gruppi.eh_addNew -= Cmp_dip2gruppi_eh_addNew;
+ cmp_groupAssignClone.eh_addNew -= Cmp_groupAssignClone_eh_addNew;
+ base.Dispose();
+ }
+
#region Private Methods
private void checkVisib()
@@ -57,6 +68,13 @@ namespace GPW_Admin
cmp_elencoGruppi.eh_doRefresh += Cmp_elencoGruppi_eh_doRefresh;
cmp_elencoGruppi.eh_doReset += Cmp_elencoGruppi_eh_doReset;
cmp_dip2gruppi.eh_addNew += Cmp_dip2gruppi_eh_addNew;
+ cmp_groupAssignClone.eh_addNew += Cmp_groupAssignClone_eh_addNew;
+ }
+
+ private void Cmp_groupAssignClone_eh_addNew(object sender, EventArgs e)
+ {
+ cmp_elencoGruppi.doUpdate();
+ checkVisib();
}
#endregion Protected Methods
diff --git a/GPW_Admin/gruppi.aspx.designer.cs b/GPW_Admin/gruppi.aspx.designer.cs
index f61a3f3..c4d38c3 100644
--- a/GPW_Admin/gruppi.aspx.designer.cs
+++ b/GPW_Admin/gruppi.aspx.designer.cs
@@ -14,6 +14,15 @@ namespace GPW_Admin
public partial class gruppi
{
+ ///
+ /// cmp_groupAssignClone control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::GPW_Admin.WebUserControls.cmp_groupAssignClone cmp_groupAssignClone;
+
///
/// cmp_elencoGruppi control.
///
diff --git a/GPW_Data/DS_Applicazione.Designer.cs b/GPW_Data/DS_Applicazione.Designer.cs
index 03af03a..336db21 100644
--- a/GPW_Data/DS_Applicazione.Designer.cs
+++ b/GPW_Data/DS_Applicazione.Designer.cs
@@ -37726,25 +37726,32 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM Dipendenti2Gruppi\r\n";
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_Dip2Gruppi_delete";
+ this._commandCollection[1].CommandText = "dbo.stp_Dip2Gruppi_clone";
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("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_value", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipFrom", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDipTo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
- this._commandCollection[2].CommandText = "dbo.stp_Dip2Gruppi_insert";
+ this._commandCollection[2].CommandText = "dbo.stp_Dip2Gruppi_delete";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gruppo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDip", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_value", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[3].Connection = this.Connection;
+ this._commandCollection[3].CommandText = "dbo.stp_Dip2Gruppi_insert";
+ this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[3].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[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxDip", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -37803,8 +37810,42 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int delete(string gruppo, global::System.Nullable
Original_value) {
+ public virtual int cloneDip(global::System.Nullable idxDipFrom, global::System.Nullable idxDipTo) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((idxDipFrom.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(idxDipFrom.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((idxDipTo.HasValue == true)) {
+ command.Parameters[2].Value = ((int)(idxDipTo.Value));
+ }
+ else {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int delete(string gruppo, global::System.Nullable Original_value) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
if ((gruppo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -37838,7 +37879,7 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(string gruppo, global::System.Nullable idxDip) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((gruppo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
diff --git a/GPW_Data/DS_Applicazione.xsd b/GPW_Data/DS_Applicazione.xsd
index a2e7c3e..88802b9 100644
--- a/GPW_Data/DS_Applicazione.xsd
+++ b/GPW_Data/DS_Applicazione.xsd
@@ -3233,6 +3233,18 @@ SELECT idxDipendente, gruppo FROM Dipendenti2Gruppi WHERE (gruppo = @gruppo) AND
+
+
+
+ dbo.stp_Dip2Gruppi_clone
+
+
+
+
+
+
+
+
@@ -3796,135 +3808,135 @@ FROM v_AnagTagFasi
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
@@ -4880,11 +4892,11 @@ FROM v_AnagTagFasi
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/GPW_Data/DS_Applicazione.xss b/GPW_Data/DS_Applicazione.xss
index 746cb1a..98237bd 100644
--- a/GPW_Data/DS_Applicazione.xss
+++ b/GPW_Data/DS_Applicazione.xss
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
@@ -29,7 +29,7 @@
-
+