<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listParticolari.ascx.cs"
    Inherits="GMW.WebUserControls.mod_listParticolari" %>
<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"
    OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound" PageSize="10">
    <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">
            <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="btnSelect" 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>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
            <ItemTemplate>
                <asp:Label ID="lblParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="DescParticolare" SortExpression="DescParticolare">
            <ItemTemplate>
                <asp:Label ID="lblDescParticolare" runat="server" Text='<%# Bind("DescParticolare") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="NumUDC" SortExpression="NumUDC">
            <ItemTemplate>
                <asp:Label ID="lblNumUDC" runat="server" Text='<%# Bind("NumUDC") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="TotQta" SortExpression="TotQta">
            <ItemTemplate>
                <asp:Label ID="lblTotQta" runat="server" Text='<%# Bind("TotQta") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="NumInMag" SortExpression="NumInMag">
            <ItemTemplate>
                <asp:Label ID="lblNumInMag" runat="server" Text='<%# Bind("NumInMag") %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="getByParticolareFull" TypeName="GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter"
    OnDataBinding="ods_DataBinding">
    <SelectParameters>
        <asp:SessionParameter Name="searchVal" Type="String" SessionField="FullSearchValue" DefaultValue="PPP" />
        <asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" 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" />