From 3fe9381f948af930f9bde2d87ad838ae66561e61 Mon Sep 17 00:00:00 2001 From: ermanno Date: Tue, 3 Feb 2009 17:19:08 +0000 Subject: [PATCH] modifiche a edit full git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@62 3e04ef4b-3b25-4b6c-be27-bb5389ca777b --- WebSites/WebGIM/mod_dettaglioIntervento.ascx | 72 +++---------------- .../WebGIM/mod_dettaglioIntervento.ascx.cs | 7 ++ 2 files changed, 18 insertions(+), 61 deletions(-) diff --git a/WebSites/WebGIM/mod_dettaglioIntervento.ascx b/WebSites/WebGIM/mod_dettaglioIntervento.ascx index 8d650e9..1392757 100644 --- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx +++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx @@ -68,13 +68,9 @@ - <%----%> - <%----%> @@ -92,7 +88,7 @@ + SelectedValue='<%# Eval("idxImpianto") %>' Enabled="false"> @@ -101,7 +97,7 @@ + Font-Size="8pt" SelectedValue='<%# Eval("idxMacchina") %>' Enabled="false"> @@ -276,14 +272,10 @@   - <%----%>   - <%----%> @@ -301,7 +293,7 @@ + Font-Size="8pt" SelectedValue='<%# Eval("idxImpianto") %>' Enabled="false"> @@ -310,7 +302,7 @@ + Font-Size="8pt" SelectedValue='<%# Eval("idxMacchina") %>' Enabled="false"> @@ -407,15 +399,6 @@ - <%-- idxStato: FARE!!! - - - - --%> - <%----%> @@ -479,7 +462,7 @@ ReadOnly="true" Width="30px" /> - @@ -493,14 +476,10 @@   - <%----%>   - <%----%> @@ -508,11 +487,11 @@ - - @@ -546,8 +525,6 @@ - <%----%> @@ -575,7 +552,7 @@ - @@ -593,7 +570,6 @@ - <%----%> @@ -623,32 +599,6 @@ - <%-- - - - - - - - - - - - - - - - - - - - --%> @@ -691,7 +641,7 @@ Text="Update" />   -
+ <%--



@@ -721,7 +671,7 @@
idxStato: + ReadOnly="true" />--%> @@ -743,7 +693,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 a028989..a163e10 100644 --- a/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs +++ b/WebSites/WebGIM/mod_dettaglioIntervento.ascx.cs @@ -103,4 +103,11 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl eh_chiudi(this, new EventArgs()); } } + protected void ods_full_Updated(object sender, ObjectDataSourceStatusEventArgs e) + { + frmView_default.ChangeMode(FormViewMode.ReadOnly); + frmView_default.Visible = true; + frmView_full.Visible = false; + frmView_default.DataBind(); + } }