fix bug x cui eprdeva filtraggio amcchine (da macchine e reparti con dettaglio macchine) andando in edit

This commit is contained in:
Samuele E. Locatelli
2013-12-04 16:25:44 +01:00
parent 0f1f60256a
commit 5570fc6a84
9 changed files with 18 additions and 7 deletions
Binary file not shown.
Binary file not shown.
@@ -1,16 +1,15 @@
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="mod_macchine" Codebehind="mod_macchine.ascx.cs" %>
Inherits="mod_macchine" CodeBehind="mod_macchine.ascx.cs" %>
<%@ Register Src="~/WebUserControls/mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/WebUserControls/mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc2" %>
<uc2:mod_filtro ID="mod_filtroImpianti" runat="server" css="txtMini" changeCheckEnabled="true" />
<asp:ObjectDataSource ID="odsImpianti" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter">
</asp:ObjectDataSource>
SelectMethod="GetData" TypeName="GIM_data.DS_utilityTableAdapters.v_selImpiantiTableAdapter"></asp:ObjectDataSource>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="idxMacchina" DataSourceID="ods" OnRowDataBound="grView_RowDataBound"
OnRowUpdating="grView_RowUpdating" onpageindexchanged="grView_PageIndexChanged" onsorted="grView_Sorted">
OnRowUpdating="grView_RowUpdating" OnPageIndexChanged="grView_PageIndexChanged" OnSorted="grView_Sorted" OnRowCancelingEdit="grView_RowCancelingEdit" OnRowEditing="grView_RowEditing">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -188,7 +187,7 @@
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>'
Visible='<%# isWritable() %>' />
Visible='<%# isWritable() %>' />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
@@ -217,7 +216,7 @@
<asp:GridView ID="grViewShort" Visible="false" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged"
OnDataBound="grViewShort_DataBound" DataKeyNames="idxMacchina" DataSourceID="ods"
OnRowDataBound="grView_RowDataBound" OnRowUpdating="grView_RowUpdating">
OnRowDataBound="grView_RowDataBound" OnRowUpdating="grView_RowUpdating" >
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -604,4 +604,15 @@ public partial class mod_macchine : ApplicationUserControl
}
#endregion
protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
{
doUpdate();
}
protected void grView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
doUpdate();
}
}
@@ -7,7 +7,8 @@ using SteamWare;
public partial class mod_mtzPrevPending : ApplicationUserControl
{
public event EventHandler eh_resetSelezione;
//public event EventHandler eh_resetSelezione;
/// <summary>
/// evento dati associati a controllo
/// </summary>
Binary file not shown.
Binary file not shown.
Binary file not shown.