diff --git a/WebSites/WebGIM/mod_dettaglioIntervento.ascx b/WebSites/WebGIM/mod_dettaglioIntervento.ascx
index 1392757..5f09fa7 100644
--- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx
+++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx
@@ -7,7 +7,7 @@
-
-
+
@@ -217,9 +218,9 @@
-
-
+
@@ -422,9 +423,13 @@
+ DataSourceID="ods_full" Width="100%">
+
-
-
<%--
@@ -693,7 +694,7 @@
+ UpdateMethod="sp_updateInterventoFull" OnUpdated="ods_full_Updated">
diff --git a/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs b/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
index a163e10..0987035 100644
--- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
+++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs
@@ -21,6 +21,11 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
{
setupInizialeControlli();
}
+ if (frmView_default.CurrentMode == FormViewMode.ReadOnly)
+ {
+ btnCancel.Visible = false;
+ }
+
}
///
/// setup iniziale e di reset dei controlli
@@ -68,6 +73,7 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
frmView_default.ChangeMode(FormViewMode.Edit);
frmView_default.Visible = true;
frmView_full.Visible = false;
+ btnCancel.Visible = true;
}
///
/// permette editing di tutto
@@ -79,6 +85,9 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
frmView_full.ChangeMode(FormViewMode.Edit);
frmView_full.Visible = true;
frmView_default.Visible = false;
+ btnCancel.Visible = true;
+ frmView_default.DataBind();
+ frmView_full.DataBind();
}
///
/// chiude la parte di editing
@@ -90,6 +99,9 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
frmView_default.ChangeMode(FormViewMode.ReadOnly);
frmView_default.Visible = true;
frmView_full.Visible = false;
+ btnCancel.Visible = false;
+ frmView_default.DataBind();
+ frmView_full.DataBind();
}
///
/// chiude la parte di editing