diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx
index 773273d9..e0f1b1a5 100644
--- a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx
+++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx
@@ -15,7 +15,7 @@
-
+
@@ -29,36 +29,36 @@
<%----%>
- <%----%>
- <%----%>
-
-
+
<%----%>
-
+
<%----%>
-
-
+
+
-
-
-
+
+
+
<%----%>
+
+
+
-
+
@@ -67,6 +67,12 @@
+
+
+
+
+
+
diff --git a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs
index dc1657f1..12c3e37b 100644
--- a/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs
+++ b/MP-ADM/WebUserControls/cmp_TechSheetDetail.ascx.cs
@@ -40,6 +40,11 @@ namespace MP_ADM.WebUserControls
#region Protected Methods
+ protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
+ {
+ raiseNewVal();
+ }
+
protected void lbtAddTemplate_Click(object sender, EventArgs e)
{
// recupero argomento...
diff --git a/MapoDb/DS_SheetTech.Designer.cs b/MapoDb/DS_SheetTech.Designer.cs
index e1393055..6dae41e4 100644
--- a/MapoDb/DS_SheetTech.Designer.cs
+++ b/MapoDb/DS_SheetTech.Designer.cs
@@ -4536,7 +4536,7 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT DescGruppo, DescTipo, IdxST, Label, Oggetto, Num, CodGruppo, CodTip" +
@@ -4584,6 +4584,15 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[7].Connection = this.Connection;
+ this._commandCollection[7].CommandText = "dbo.stp_ST_AR_UpdateVal";
+ this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxST", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Label", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Oggetto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Value", 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()]
@@ -5111,6 +5120,52 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
}
return returnValue;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int UpdateVal(global::System.Nullable Original_IdxST, string Original_Label, global::System.Nullable Original_Oggetto, string Value) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
+ if ((Original_IdxST.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(Original_IdxST.Value));
+ }
+ else {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((Original_Label == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(Original_Label));
+ }
+ if ((Original_Oggetto.HasValue == true)) {
+ command.Parameters[3].Value = ((int)(Original_Oggetto.Value));
+ }
+ else {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ if ((Value == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(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;
+ }
}
///
diff --git a/MapoDb/DS_SheetTech.xsd b/MapoDb/DS_SheetTech.xsd
index 19b850d3..f8185dd6 100644
--- a/MapoDb/DS_SheetTech.xsd
+++ b/MapoDb/DS_SheetTech.xsd
@@ -234,6 +234,20 @@ SELECT IdxST, Label, Oggetto, Num, CodGruppo, CodTipo, Value, CheckType, Require
+
+
+
+ dbo.stp_ST_AR_UpdateVal
+
+
+
+
+
+
+
+
+
+
diff --git a/MapoDb/DS_SheetTech.xss b/MapoDb/DS_SheetTech.xss
index 71edf1a3..6608bf0c 100644
--- a/MapoDb/DS_SheetTech.xss
+++ b/MapoDb/DS_SheetTech.xss
@@ -7,7 +7,7 @@
-
+