<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_viewOdette.ascx.cs"
    Inherits="GMW.WebUserControls.mod_viewOdette" %>
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<asp:Button runat="server" ID="btnRistampaOdette" OnClick="btnRistampaOdette_Click" CssClass="btn btn-primary" />
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
    OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
    DataKeyNames="CampoUDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
    OnSorted="grView_Sorted" OnRowUpdating="grView_RowUpdating" OnRowEditing="grView_RowEditing"
    OnRowCancelingEdit="grView_RowCancelingEdit" OnRowDeleted="grView_RowDeleted">
    <RowStyle CssClass="ctrRowStyle" />
    <AlternatingRowStyle CssClass="ctrAltRowStyle" />
    <EditRowStyle CssClass="ctrEditRowStyle" />
    <SelectedRowStyle CssClass="ctrSelRowStyle" />
    <FooterStyle CssClass="ctrFooter" />
    <PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
    <EmptyDataRowStyle CssClass="ctrRowStyle" />
    <EmptyDataTemplate>
        <asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
    </EmptyDataTemplate>
    <Columns>
        <asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
            <HeaderTemplate>
                <asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-sm" Visible="true"><i class="fa fa-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
            </HeaderTemplate>
            <ItemTemplate>
                <div style="white-space: nowrap;">
                    <asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
                        ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Campo15_2" HeaderText="#" SortExpression="Campo15_2" ReadOnly="true" />
        <asp:BoundField DataField="CampoUDC" HeaderText="UDC" SortExpression="CampoUDC" ReadOnly="True" />
        <asp:BoundField DataField="Campo3_2" HeaderText="NumBolla" SortExpression="Campo3_2"
            ReadOnly="True" />
        <asp:BoundField DataField="Campo16_2" HeaderText="Batch" SortExpression="Campo16_2"
            ReadOnly="True" />
        <asp:BoundField DataField="Campo9_2" HeaderText="Qta" SortExpression="Campo9_2" ReadOnly="true" />
        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
            <HeaderTemplate>
                <asp:Button runat="server" ID="btnEmptyOdette" Text='<%# traduci("DeleteAllOdette") %>' CssClass="btn btn-default btn-sm"
                    OnClick="btnEmptyOdette_Click" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:ImageButton ID="imgStampaOdette" runat="server" CausesValidation="False" CommandName="Update" CommandArgument="stampaOdette" ToolTip='<%# traduci("StampaEtichOdette") %>' ImageUrl="~/images/print_s.png" OnClick="img_Click" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
    DeleteMethod="DeleteQuery" SelectMethod="getByCodLista" TypeName="GMW_data.DS_OdetteTableAdapters.OdetteTableAdapter">
    <DeleteParameters>
        <asp:Parameter Name="Original_CampoUDC" Type="String" />
    </DeleteParameters>
    <SelectParameters>
        <asp:SessionParameter DefaultValue="*" Name="CodLista" SessionField="CodListaOd_sel"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
