<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.ProductVariantsLowStockControl"
    CodeBehind="ProductVariantsLowStock.ascx.cs" %>
<div class="section-title">
    <img src="Common/ico-catalog.png" alt="Configuration" />
    Product Variant Low Stock Report
</div>
<asp:GridView ID="gvProductVariants" runat="server" AutoGenerateColumns="False" Width="100%"
    OnPageIndexChanging="gvProductVariants_PageIndexChanging" AllowPaging="true"
    PageSize="15">
    <Columns>
        <asp:BoundField DataField="ProductVariantID" HeaderText="Product variant ID" Visible="False">
        </asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="40%">
            <ItemTemplate>
                <a href="ProductVariantDetails.aspx?ProductVariantID=<%#Eval("ProductVariantID")%>"
                    title="Click to view product variant details">
                    <%#Eval("FullProductName")%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Price" ItemStyle-Width="15%">
            <ItemTemplate>
                <%#((decimal)Eval("Price")).ToString("N")%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="StockQuantity" HeaderText="Stock quantity" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="MinStockQuantity" HeaderText="Min stock quantity" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="15%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="ProductVariantDetails.aspx?ProductVariantID=<%#Eval("ProductVariantID")%>"
                    title="Click to view product variant details">
                    Edit
                </a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        Product stock is okay.
    </EmptyDataTemplate>
</asp:GridView>
