<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_paretoUdcBlocco.ascx.cs"
    Inherits="GMW.WebUserControls.mod_paretoUdcBlocco" %>
<%@ Register Src="mod_barPlot.ascx" TagName="mod_barPlot" TagPrefix="uc2" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
    OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
    DataKeyNames="Particolare" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
    OnSorted="grView_Sorted" onrowdatabound="grView_RowDataBound">
    <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:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
                    ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
            <ItemTemplate>
                <asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
            </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="getParetoByMagBlocco" TypeName="GMW_data.DS_magazzinoTableAdapters.V_DettMagPartTableAdapter">
    <SelectParameters>
        <asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
        <asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
        <asp:SessionParameter Name="IdxBlocco" Type="Int32" SessionField="IdxBlocco_sel"
            DefaultValue="MM" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />