<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detailParticolari.ascx.cs"
    Inherits="GMW.WebUserControls.mod_detailParticolari" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
    OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
    DataKeyNames="DescStato,Esponente,CodMag,IdxBlocco,CodMagLog" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
    OnSorted="grView_Sorted">
    <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" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <HeaderTemplate>
                <asp:LinkButton ID="btnReset" 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>           
                <asp:LinkButton ID="btnReset" runat="server" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>' CssClass="btn btn-default btn-sm btn-block p-0" Visible="true"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
                <%--<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
                    CommandArgument='<%# Eval("CodMag") %>' ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />--%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="CodMag" SortExpression="CodMag">
            <ItemTemplate>
                <asp:Label ID="lblCodMag" runat="server" Text='<%# Eval("CodMag") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="CodBlocco" SortExpression="CodBlocco">
            <ItemTemplate>
                <asp:Label ID="lblCodBlocco" runat="server" Text='<%# Eval("CodBlocco") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="CodMagLog" SortExpression="CodMagLog">
            <ItemTemplate>
                <asp:Label ID="lblCodMagLog" runat="server" Text='<%# Eval("CodMagLog") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Esponente" SortExpression="Esponente">
            <ItemTemplate>
                <asp:Label ID="lblEsponente" runat="server" Text='<%# Eval("Esponente") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="DescStato" SortExpression="DescStato">
            <ItemTemplate>
                <asp:Label ID="lblDescStato" runat="server" Text='<%# Eval("DescStato") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="NumUDC" SortExpression="NumUDC">
            <ItemTemplate>
                <asp:Label ID="lblNumUDC" runat="server" Text='<%# Eval("NumUDC") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="QtaTotPz" SortExpression="QtaTotPz">
            <ItemTemplate>
                <asp:Label ID="lblQtaTotPz" runat="server" Text='<%# Eval("QtaTotPz") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="DateRange" SortExpression="Oldest">
            <ItemTemplate>
                <asp:Label ID="lblOldest" runat="server" Text='<%# Eval("Oldest","{0:dd/MM/yyyy}") %>' />
                -->
                <asp:Label ID="lblNewest" runat="server" Text='<%# Eval("Newest","{0:dd/MM/yyyy}") %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="getParetoByParticolare" TypeName="GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter">
    <SelectParameters>
        <asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
        <asp:SessionParameter Name="Particolare" Type="String" SessionField="Particolare_sel"
            DefaultValue="PP" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />