modifiche per pulsanti cancel e update
git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@66 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div style="float: left; margin: 2px;">
|
||||
<asp:LinkButton ID="btnElenco" runat="server" OnClick="btnElenco_Click" />
|
||||
</div>
|
||||
<div style="float: right; margin: 2px;">
|
||||
<div style="float: right;">
|
||||
<asp:Button ID="btnCancel" runat="server" Width="150px" OnClick="btnCancel_Click" />
|
||||
</div>
|
||||
<div style="margin: 2px;">
|
||||
@@ -15,7 +15,8 @@
|
||||
<asp:Button ID="btnEditFull" runat="server" Width="150px" OnClick="btnEditFull_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<asp:FormView ID="frmView_default" runat="server" DataKeyNames="numIntMtz" DataSourceID="ods_default">
|
||||
<asp:FormView ID="frmView_default" runat="server" DataKeyNames="numIntMtz" DataSourceID="ods_default"
|
||||
Width="100%">
|
||||
<ItemTemplate>
|
||||
<div id="divReadOnly">
|
||||
<div id="divUp" style="background-color: Silver; padding-bottom: 10px;">
|
||||
@@ -217,9 +218,9 @@
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<div id="divEditDefault">
|
||||
<div style="float: right; margin: 2px;">
|
||||
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
|
||||
Text="Update" />
|
||||
<div style="float: right;">
|
||||
<asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
|
||||
Text="Update" Width="150px" />
|
||||
</div>
|
||||
<div id="divUp" style="background-color: Silver; padding-bottom: 10px;">
|
||||
<table>
|
||||
@@ -422,9 +423,13 @@
|
||||
</EditItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:FormView ID="frmView_full" runat="server" DataKeyNames="numIntMtz" Visible="False"
|
||||
DataSourceID="ods_full">
|
||||
DataSourceID="ods_full" Width="100%">
|
||||
<EditItemTemplate>
|
||||
<div id="divEditFull">
|
||||
<div id="btnCancel" style="float:right;">
|
||||
<asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
|
||||
Text="Update" Width="150px" />
|
||||
</div>
|
||||
<div id="divUp" style="background-color: Silver; padding-bottom: 10px;">
|
||||
<table>
|
||||
<tr>
|
||||
@@ -637,10 +642,6 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
|
||||
Text="Update" />
|
||||
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
|
||||
CommandName="Cancel" Text="Cancel" />
|
||||
<%--<br />
|
||||
<br />
|
||||
<br />
|
||||
@@ -693,7 +694,7 @@
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="ods_full" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByIdx" TypeName="DS_applicazioneTableAdapters.v_intervExpTableAdapter"
|
||||
UpdateMethod="sp_updateInterventoFull" onupdated="ods_full_Updated">
|
||||
UpdateMethod="sp_updateInterventoFull" OnUpdated="ods_full_Updated">
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_numIntMtz" Type="Int32" />
|
||||
<asp:Parameter Name="idxStato" Type="Int32" />
|
||||
|
||||
@@ -21,6 +21,11 @@ public partial class mod_dettaglioIntervento : System.Web.UI.UserControl
|
||||
{
|
||||
setupInizialeControlli();
|
||||
}
|
||||
if (frmView_default.CurrentMode == FormViewMode.ReadOnly)
|
||||
{
|
||||
btnCancel.Visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 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;
|
||||
}
|
||||
/// <summary>
|
||||
/// 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();
|
||||
}
|
||||
/// <summary>
|
||||
/// 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();
|
||||
}
|
||||
/// <summary>
|
||||
/// chiude la parte di editing
|
||||
|
||||
Reference in New Issue
Block a user